james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthieu Baechler (JIRA)" <server-...@james.apache.org>
Subject [jira] [Commented] (MPT-9) JPA tests are broken
Date Wed, 21 Oct 2015 07:44:27 GMT

    [ https://issues.apache.org/jira/browse/MPT-9?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14966379#comment-14966379
] 

Matthieu Baechler commented on MPT-9:
-------------------------------------

Could you check this on current trunk ? it works for me

> JPA tests are broken
> --------------------
>
>                 Key: MPT-9
>                 URL: https://issues.apache.org/jira/browse/MPT-9
>             Project: James MPT
>          Issue Type: Bug
>            Reporter: Tellier Benoit
>
> The Host System fails to create the entity manager.
> Here is the stack trace I get : 
> com.google.inject.CreationException: Guice creation errors:
> 1) Error in custom provider, <openjpa-2.2.1-r422266:1396819 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: This configuration disallows runtime optimization,
but the following listed types were not enhanced at build time or at class load time with
a javaagent: "
> org.apache.james.mailbox.jpa.mail.model.JPAMailbox
> org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage
> org.apache.james.mailbox.jpa.mail.model.JPAUserFlag
> org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage
> org.apache.james.mailbox.jpa.mail.model.JPAProperty
> org.apache.james.mailbox.jpa.user.model.JPASubscription".
>   at org.apache.james.mpt.imapmailbox.jpa.JpaMailboxTestModule.provideHostSystem(JpaMailboxTestModule.java:37)
>   at org.apache.james.mpt.imapmailbox.jpa.JpaMailboxTestModule.provideHostSystem(JpaMailboxTestModule.java:37)
>   while locating org.apache.james.mpt.api.HostSystem
>     for field at org.apache.james.mpt.imapmailbox.suite.AuthenticatedState.system(AuthenticatedState.java:37)
> 1 error
> 	at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:435)
> 	at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:175)
> 	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:109)
> 	at com.google.inject.Guice.createInjector(Guice.java:95)
> 	at com.google.inject.Guice.createInjector(Guice.java:72)
> 	at org.apache.onami.test.OnamiRunner.createInjector(OnamiRunner.java:281)
> 	at org.apache.onami.test.OnamiRunner.run(OnamiRunner.java:220)
> 	at org.junit.runners.Suite.runChild(Suite.java:128)
> 	at org.apache.onami.test.OnamiSuite.runChild(OnamiSuite.java:244)
> 	at org.apache.onami.test.OnamiSuite.runChild(OnamiSuite.java:126)
> 	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
> 	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
> 	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
> 	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
> 	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
> 	at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
> 	at org.apache.onami.test.OnamiSuite.run(OnamiSuite.java:207)
> 	at org.junit.runner.JUnitCore.run(JUnitCore.java:157)
> 	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
> 	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
> 	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
> Caused by: <openjpa-2.2.1-r422266:1396819 nonfatal user error> org.apache.openjpa.persistence.ArgumentException:
This configuration disallows runtime optimization, but the following listed types were not
enhanced at build time or at class load time with a javaagent: "
> org.apache.james.mailbox.jpa.mail.model.JPAMailbox
> org.apache.james.mailbox.jpa.mail.model.openjpa.JPAMessage
> org.apache.james.mailbox.jpa.mail.model.JPAUserFlag
> org.apache.james.mailbox.jpa.mail.model.openjpa.AbstractJPAMessage
> org.apache.james.mailbox.jpa.mail.model.JPAProperty
> org.apache.james.mailbox.jpa.user.model.JPASubscription".
> 	at org.apache.openjpa.enhance.ManagedClassSubclasser.prepareUnenhancedClasses(ManagedClassSubclasser.java:115)
> 	at org.apache.openjpa.kernel.AbstractBrokerFactory.loadPersistentTypes(AbstractBrokerFactory.java:314)
> 	at org.apache.openjpa.kernel.AbstractBrokerFactory.initializeBroker(AbstractBrokerFactory.java:238)
> 	at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:212)
> 	at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:156)
> 	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:227)
> 	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:154)
> 	at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:60)
> 	at org.apache.james.mailbox.jpa.JPAMailboxSessionMapperFactory.createEntityManager(JPAMailboxSessionMapperFactory.java:73)
> 	at org.apache.james.mailbox.jpa.JPAMailboxSessionMapperFactory.<init>(JPAMailboxSessionMapperFactory.java:49)
> 	at org.apache.james.mpt.imapmailbox.jpa.host.JPAHostSystem.<init>(JPAHostSystem.java:114)
> 	at org.apache.james.mpt.imapmailbox.jpa.host.JPAHostSystem.build(JPAHostSystem.java:61)
> 	at org.apache.james.mpt.imapmailbox.jpa.JpaMailboxTestModule.provideHostSystem(JpaMailboxTestModule.java:37)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at com.google.inject.internal.ProviderMethod.get(ProviderMethod.java:104)
> 	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
> 	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
> 	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
> 	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
> 	at com.google.inject.Scopes$1$1.get(Scopes.java:65)
> 	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
> 	at com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
> 	at com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:116)
> 	at com.google.inject.internal.InjectionRequestProcessor$StaticInjection$1.call(InjectionRequestProcessor.java:110)
> 	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
> 	at com.google.inject.internal.InjectionRequestProcessor$StaticInjection.injectMembers(InjectionRequestProcessor.java:110)
> 	at com.google.inject.internal.InjectionRequestProcessor.injectMembers(InjectionRequestProcessor.java:78)
> 	at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:170)
> 	... 24 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message