tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thiago Veronezi <thi...@veronezi.org>
Subject unit tests are not running - extra eyes to see where is the problem
Date Mon, 08 Nov 2010 20:53:10 GMT
Hi Devs,
Guys... I dont know whats happening. I'm pretty sure thats a really silly
thing... :O) but I can't get my unit tests to run.
For some reason openjpa is not creating the DB tables. I did try with
hibernate but with no success (same thing). I've ran the jpa/hibernate
example, and its running fine there. So the problem is not on the jpa
provider, neither on the openejb server. It will be really nice if you could
take a look on the code here and say to me what am I missing...

to check it out do...
*svn co https://boto.servebeer.com/svn_public/public/trunk/demo/*
*
*
add the certificate...
*Error validating server certificate for 'https://boto.servebeer.com:443':*
* - The certificate is not issued by a trusted authority. Use the*
*   fingerprint to validate the certificate manually!*
* - The certificate hostname does not match.*
*Certificate information:*
* - Hostname: svnserver*
* - Valid: from Sat, 06 Nov 2010 21:45:13 GMT until Tue, 03 Nov 2020
21:45:13 GMT*
* - Issuer: svnserver*
* - Fingerprint: 9a:7e:37:df:f6:aa:c4:32:48:15:c5:83:3c:c2:1d:c8:40:cf:9d:83
*
*(R)eject, accept (t)emporarily or accept (p)ermanently?*

go to the demo folder...
*cd demo*
*
*
and run...
*mvn clean test*

thanks a lot!
Thiago.
Ps.: the actual log...

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   root
[INFO]   application-ejb
[INFO]
------------------------------------------------------------------------
[INFO] Building root
[INFO]    task-segment: [clean, test]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] No goals needed for project - skipping
[INFO]
------------------------------------------------------------------------
[INFO] Building application-ejb
[INFO]    task-segment: [clean, test]
[INFO]
------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Deleting directory
C:\Users\t-tveronezi\test\demo\application-ejb\target
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 17 source files to
C:\Users\t-tveronezi\test\demo\application-ejb\target\classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 3 source files to
C:\Users\t-tveronezi\test\demo\application-ejb\target\test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory:
C:\Users\t-tveronezi\test\demo\application-ejb\target\surefire-reports

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running embedded.applicationejb.UserServiceTest
Nov 8, 2010 3:50:21 PM org.apache.openejb.cdi.CdiBuilder <init>
INFO: Created new singletonService
org.apache.openejb.cdi.ThreadSingletonServiceImpl@6b4da8f4
Nov 8, 2010 3:50:21 PM org.apache.openejb.cdi.CdiBuilder <init>
INFO: succeeded in installing singleton service
Apache OpenEJB 3.2-SNAPSHOT    build: 20101103-04:32
http://openejb.apache.org/
INFO - openejb.home = C:\Users\t-tveronezi\test\demo\application-ejb
INFO - openejb.base = C:\Users\t-tveronezi\test\demo\application-ejb
INFO - Configuring Service(id=Default Security Service,
type=SecurityService, provider-id=Default Security Service)
INFO - Configuring Service(id=Default Transaction Manager,
type=TransactionManager, provider-id=Default Transaction Manager)
INFO - Configuring Service(id=myDatabaseUnmanaged, type=Resource,
provider-id=Default JDBC Database)
INFO - Configuring Service(id=myDatabase, type=Resource, provider-id=Default
JDBC Database)
INFO - Found EjbModule in classpath:
C:\Users\t-tveronezi\test\demo\application-ejb\target\classes
INFO - Beginning load:
C:\Users\t-tveronezi\test\demo\application-ejb\target\classes
INFO - Configuring enterprise application: classpath.ear
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to
a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [org.apache.openejb.core.TempClassLoader@606e1dec] whereas
object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
[sun.misc.Launcher$AppClassLoader@35a16869].
log4j:ERROR Could not instantiate appender named "AConsole".
INFO - Configuring Service(id=Default Singleton Container, type=Container,
provider-id=Default Singleton Container)
INFO - Auto-creating a container for bean ApplicationImpl:
Container(type=SINGLETON, id=Default Singleton Container)
INFO - Configuring Service(id=Default Stateless Container, type=Container,
provider-id=Default Stateless Container)
INFO - Auto-creating a container for bean UserImpl:
Container(type=STATELESS, id=Default Stateless Container)
INFO - Configuring PersistenceUnit(name=embeddedPU)
INFO - Enterprise application "classpath.ear" loaded.
INFO - Assembling app: classpath.ear
INFO - PersistenceUnit(name=embeddedPU,
provider=org.apache.openjpa.persistence.PersistenceProviderImpl)
76  embeddedPU  INFO   [main] openjpa.Enhance - You have enabled runtime
enhancement, but have not specified the set of persistent classes.  OpenJPA
must look for metadata for every loaded class, which might increase class
load times significantly.
ERROR - JAVA AGENT NOT INSTALLED. The JPA Persistence Provider requested
installation of a ClassFileTransformer which requires a JavaAgent.  See
http://openejb.apache.org/3.0/javaagent.html
INFO - Jndi(name=ApplicationImplLocal) -->
Ejb(deployment-id=ApplicationImpl)
INFO - Jndi(name=UserImplLocal) --> Ejb(deployment-id=UserImpl)
INFO - Jndi(name=RoleEAOLocal) --> Ejb(deployment-id=RoleEAO)
INFO - Jndi(name=UserEAOLocal) --> Ejb(deployment-id=UserEAO)
Nov 8, 2010 3:50:22 PM org.apache.openejb.cdi.CdiBuilder createApplication
INFO: existing thread singleton service in SystemInstance()
org.apache.openejb.cdi.ThreadSingletonServiceImpl@6b4da8f4
Nov 8, 2010 3:50:22 PM org.apache.openejb.cdi.OpenEJBLifecycle initialize
INFO: OpenWebBeans Container is starting...
Nov 8, 2010 3:50:22 PM org.apache.webbeans.plugins.PluginLoader
startApplication
INFO: Adding OpenWebBeansPlugin : [CdiPlugin]
Nov 8, 2010 3:50:23 PM org.apache.openejb.cdi.BeansDeployer startApplication
INFO: All injection points were validated successfully.
Nov 8, 2010 3:50:23 PM org.apache.openejb.cdi.OpenEJBLifecycle initialize
INFO: OpenWebBeans Container has started, it took [131] ms.
INFO - Created Ejb(deployment-id=RoleEAO, ejb-name=RoleEAO,
container=Default Stateless Container)
INFO - Created Ejb(deployment-id=UserEAO, ejb-name=UserEAO,
container=Default Stateless Container)
INFO - Created Ejb(deployment-id=UserImpl, ejb-name=UserImpl,
container=Default Stateless Container)
INFO - Created Ejb(deployment-id=ApplicationImpl, ejb-name=ApplicationImpl,
container=Default Singleton Container)
INFO - Started Ejb(deployment-id=RoleEAO, ejb-name=RoleEAO,
container=Default Stateless Container)
INFO - Started Ejb(deployment-id=UserEAO, ejb-name=UserEAO,
container=Default Stateless Container)
INFO - Started Ejb(deployment-id=UserImpl, ejb-name=UserImpl,
container=Default Stateless Container)
574  embeddedPU  INFO   [main] openjpa.Runtime - Starting OpenJPA 2.0.1
923  embeddedPU  INFO   [main] openjpa.jdbc.JDBC - Using dictionary class
"org.apache.openjpa.jdbc.sql.HSQLDictionary" (HSQL Database Engine 1.8.0
,HSQL Database Engine Driver 1.8.0).
ERROR - The bean instance business method encountered a system exception:
The transaction has been marked rollback only because the bean encountered a
non-application exception :javax.ejb.EJBTransactionRolledbackException : The
transaction has been marked rollback only because the bean encountered a
non-application exception :org.apache.openjpa.persistence.ArgumentException
: An error occurred while parsing the query filter "SELECT u FROM User u
WHERE u.account = :paccount". Error message: The name "User" is not a
recognized entity or identifier. Known entity names: []
javax.ejb.EJBTransactionRolledbackException: The transaction has been marked
rollback only because the bean encountered a non-application exception
:javax.ejb.EJBTransactionRolledbackException : The transaction has been
marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:333)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:279)
at $Proxy41.findByAccount(Unknown Source)
at
embedded.applicationejb.ejb.service.ApplicationImpl.applicationInitialization(ApplicationImpl.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$LifecycleInvocation.invoke(ReflectionInvocationContext.java:214)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:174)
at
org.apache.openejb.monitoring.StatsInterceptor.PostConstruct(StatsInterceptor.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:125)
at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1176)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.createInstance(SingletonInstanceManager.java:173)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.access$100(SingletonInstanceManager.java:65)
at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:114)
at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:112)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.getInstance(SingletonInstanceManager.java:123)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.initialize(SingletonInstanceManager.java:89)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.start(SingletonInstanceManager.java:80)
at
org.apache.openejb.core.singleton.SingletonContainer.start(SingletonContainer.java:119)
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:673)
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:461)
at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:371)
at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:283)
at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:130)
at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:63)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:276)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at
embedded.applicationejb.UserServiceTest.testGetUser(UserServiceTest.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: javax.ejb.EJBTransactionRolledbackException: The transaction has
been marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:333)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:279)
at $Proxy42.findByAccount(Unknown Source)
at
embedded.applicationejb.ejb.service.impl.user.UserImpl.findByAccount(UserImpl.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:174)
at
org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:132)
at org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:46)
at org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:64)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:125)
at
org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:224)
at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:176)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:249)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:232)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:89)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:274)
... 76 more
Caused by: <openjpa-2.0.1-r422266:989424 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: An error occurred while
parsing the query filter "SELECT u FROM User u WHERE u.account = :paccount".
Error message: The name "User" is not a recognized entity or identifier.
Known entity names: []
at
org.apache.openjpa.kernel.exps.AbstractExpressionBuilder.parseException(AbstractExpressionBuilder.java:119)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:197)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:167)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:242)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:212)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:205)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$200(JPQLExpressionBuilder.java:81)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:2387)
at org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:61)
at
org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:154)
at org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:671)
at
org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:652)
at
org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:618)
at
org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:680)
at org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:587)
at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:986)
at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:972)
at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:100)
at
org.apache.openejb.persistence.JtaEntityManager.createQuery(JtaEntityManager.java:253)
at
embedded.applicationejb.persistence.execution.AbstractDb.createQuery(AbstractDb.java:167)
at
embedded.applicationejb.persistence.execution.AbstractDb.findUniqueByQuery(AbstractDb.java:124)
at
embedded.applicationejb.persistence.execution.specialized.UserEAO.findByAccount(UserEAO.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:174)
at
org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:132)
at org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:46)
at org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:64)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:125)
at
org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:224)
at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:176)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:249)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:232)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:89)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:274)
... 111 more
ERROR - The bean instance ApplicationImpl threw a system
exception:org.apache.openejb.InvalidateReferenceException:
java.rmi.RemoteException: The bean encountered a non-application exception;
nested exception is:
javax.ejb.EJBTransactionRolledbackException: The transaction has been marked
rollback only because the bean encountered a non-application exception
:javax.ejb.EJBTransactionRolledbackException : The transaction has been
marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []: The bean encountered a
non-application exception; nested exception is:
javax.ejb.EJBTransactionRolledbackException: The transaction has been marked
rollback only because the bean encountered a non-application exception
:javax.ejb.EJBTransactionRolledbackException : The transaction has been
marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
org.apache.openejb.InvalidateReferenceException: java.rmi.RemoteException:
The bean encountered a non-application exception; nested exception is:
javax.ejb.EJBTransactionRolledbackException: The transaction has been marked
rollback only because the bean encountered a non-application exception
:javax.ejb.EJBTransactionRolledbackException : The transaction has been
marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []: The bean encountered a
non-application exception; nested exception is:
javax.ejb.EJBTransactionRolledbackException: The transaction has been marked
rollback only because the bean encountered a non-application exception
:javax.ejb.EJBTransactionRolledbackException : The transaction has been
marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
at
org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:153)
at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1179)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.createInstance(SingletonInstanceManager.java:173)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.access$100(SingletonInstanceManager.java:65)
at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:114)
at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:112)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.getInstance(SingletonInstanceManager.java:123)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.initialize(SingletonInstanceManager.java:89)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.start(SingletonInstanceManager.java:80)
at
org.apache.openejb.core.singleton.SingletonContainer.start(SingletonContainer.java:119)
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:673)
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:461)
at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:371)
at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:283)
at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:130)
at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:63)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:276)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at
embedded.applicationejb.UserServiceTest.testGetUser(UserServiceTest.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: java.rmi.RemoteException: The bean encountered a non-application
exception; nested exception is:
javax.ejb.EJBTransactionRolledbackException: The transaction has been marked
rollback only because the bean encountered a non-application exception
:javax.ejb.EJBTransactionRolledbackException : The transaction has been
marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
at
org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:152)
... 58 more
Caused by: javax.ejb.EJBTransactionRolledbackException: The transaction has
been marked rollback only because the bean encountered a non-application
exception :javax.ejb.EJBTransactionRolledbackException : The transaction has
been marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:333)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:279)
at $Proxy41.findByAccount(Unknown Source)
at
embedded.applicationejb.ejb.service.ApplicationImpl.applicationInitialization(ApplicationImpl.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$LifecycleInvocation.invoke(ReflectionInvocationContext.java:214)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:174)
at
org.apache.openejb.monitoring.StatsInterceptor.PostConstruct(StatsInterceptor.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:125)
at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1176)
... 57 more
Caused by: javax.ejb.EJBTransactionRolledbackException: The transaction has
been marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:333)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:279)
at $Proxy42.findByAccount(Unknown Source)
at
embedded.applicationejb.ejb.service.impl.user.UserImpl.findByAccount(UserImpl.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:174)
at
org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:132)
at org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:46)
at org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:64)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:125)
at
org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:224)
at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:176)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:249)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:232)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:89)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:274)
... 76 more
Caused by: <openjpa-2.0.1-r422266:989424 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: An error occurred while
parsing the query filter "SELECT u FROM User u WHERE u.account = :paccount".
Error message: The name "User" is not a recognized entity or identifier.
Known entity names: []
at
org.apache.openjpa.kernel.exps.AbstractExpressionBuilder.parseException(AbstractExpressionBuilder.java:119)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:197)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:167)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:242)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:212)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:205)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$200(JPQLExpressionBuilder.java:81)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:2387)
at org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:61)
at
org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:154)
at org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:671)
at
org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:652)
at
org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:618)
at
org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:680)
at org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:587)
at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:986)
at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:972)
at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:100)
at
org.apache.openejb.persistence.JtaEntityManager.createQuery(JtaEntityManager.java:253)
at
embedded.applicationejb.persistence.execution.AbstractDb.createQuery(AbstractDb.java:167)
at
embedded.applicationejb.persistence.execution.AbstractDb.findUniqueByQuery(AbstractDb.java:124)
at
embedded.applicationejb.persistence.execution.specialized.UserEAO.findByAccount(UserEAO.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:174)
at
org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:132)
at org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:46)
at org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:64)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:125)
at
org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:224)
at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:176)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:249)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:232)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:89)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:274)
... 111 more
INFO - Undeploying app: classpath.ear
ERROR - Application could not be deployed:  classpath.ear
org.apache.openejb.OpenEJBException: Creating application failed:
classpath.ear: Error starting 'ApplicationImpl'.  Exception: class
org.apache.openejb.OpenEJBException: Singleton startup failed:
ApplicationImpl: javax.ejb.NoSuchEJBException: Singleton failed to
initialize: Singleton failed to initialize: Singleton startup failed:
ApplicationImpl: javax.ejb.NoSuchEJBException: Singleton failed to
initialize: Singleton failed to initialize
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:752)
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:461)
at
org.apache.openejb.assembler.classic.Assembler.buildContainerSystem(Assembler.java:371)
at org.apache.openejb.assembler.classic.Assembler.build(Assembler.java:283)
at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:130)
at org.apache.openejb.OpenEJB$Instance.<init>(OpenEJB.java:63)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:276)
at org.apache.openejb.OpenEJB.init(OpenEJB.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.openejb.loader.OpenEJBInstance.init(OpenEJBInstance.java:36)
at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:71)
at
org.apache.openejb.client.LocalInitialContextFactory.init(LocalInitialContextFactory.java:53)
at
org.apache.openejb.client.LocalInitialContextFactory.getInitialContext(LocalInitialContextFactory.java:42)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at javax.naming.InitialContext.init(InitialContext.java:223)
at javax.naming.InitialContext.<init>(InitialContext.java:197)
at
embedded.applicationejb.UserServiceTest.testGetUser(UserServiceTest.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:154)
at junit.framework.TestCase.runBare(TestCase.java:127)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
Caused by: org.apache.openejb.OpenEJBException: Error starting
'ApplicationImpl'.  Exception: class org.apache.openejb.OpenEJBException:
Singleton startup failed: ApplicationImpl: javax.ejb.NoSuchEJBException:
Singleton failed to initialize: Singleton failed to initialize: Singleton
startup failed: ApplicationImpl: javax.ejb.NoSuchEJBException: Singleton
failed to initialize: Singleton failed to initialize
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:676)
... 46 more
Caused by: org.apache.openejb.OpenEJBException: Singleton startup failed:
ApplicationImpl: javax.ejb.NoSuchEJBException: Singleton failed to
initialize: Singleton failed to initialize
at
org.apache.openejb.core.singleton.SingletonInstanceManager.initialize(SingletonInstanceManager.java:94)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.start(SingletonInstanceManager.java:80)
at
org.apache.openejb.core.singleton.SingletonContainer.start(SingletonContainer.java:119)
at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:673)
... 46 more
Caused by: org.apache.openejb.ApplicationException:
javax.ejb.NoSuchEJBException: Singleton failed to initialize: Singleton
failed to initialize
at
org.apache.openejb.core.singleton.SingletonInstanceManager.createInstance(SingletonInstanceManager.java:204)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.access$100(SingletonInstanceManager.java:65)
at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:114)
at
org.apache.openejb.core.singleton.SingletonInstanceManager$1.call(SingletonInstanceManager.java:112)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.getInstance(SingletonInstanceManager.java:123)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.initialize(SingletonInstanceManager.java:89)
... 49 more
Caused by: javax.ejb.NoSuchEJBException: Singleton failed to initialize
... 57 more
Caused by: org.apache.openejb.InvalidateReferenceException:
java.rmi.RemoteException: The bean encountered a non-application exception;
nested exception is:
javax.ejb.EJBTransactionRolledbackException: The transaction has been marked
rollback only because the bean encountered a non-application exception
:javax.ejb.EJBTransactionRolledbackException : The transaction has been
marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []: The bean encountered a
non-application exception; nested exception is:
javax.ejb.EJBTransactionRolledbackException: The transaction has been marked
rollback only because the bean encountered a non-application exception
:javax.ejb.EJBTransactionRolledbackException : The transaction has been
marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
at
org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:153)
at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1179)
at
org.apache.openejb.core.singleton.SingletonInstanceManager.createInstance(SingletonInstanceManager.java:173)
... 56 more
Caused by: java.rmi.RemoteException: The bean encountered a non-application
exception; nested exception is:
javax.ejb.EJBTransactionRolledbackException: The transaction has been marked
rollback only because the bean encountered a non-application exception
:javax.ejb.EJBTransactionRolledbackException : The transaction has been
marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
at
org.apache.openejb.core.transaction.EjbTransactionUtil.handleSystemException(EjbTransactionUtil.java:152)
... 58 more
Caused by: javax.ejb.EJBTransactionRolledbackException: The transaction has
been marked rollback only because the bean encountered a non-application
exception :javax.ejb.EJBTransactionRolledbackException : The transaction has
been marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:333)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:279)
at $Proxy41.findByAccount(Unknown Source)
at
embedded.applicationejb.ejb.service.ApplicationImpl.applicationInitialization(ApplicationImpl.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$LifecycleInvocation.invoke(ReflectionInvocationContext.java:214)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:174)
at
org.apache.openejb.monitoring.StatsInterceptor.PostConstruct(StatsInterceptor.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:125)
at org.apache.openejb.BeanContext.newInstance(BeanContext.java:1176)
... 57 more
Caused by: javax.ejb.EJBTransactionRolledbackException: The transaction has
been marked rollback only because the bean encountered a non-application
exception :org.apache.openjpa.persistence.ArgumentException : An error
occurred while parsing the query filter "SELECT u FROM User u WHERE
u.account = :paccount". Error message: The name "User" is not a recognized
entity or identifier. Known entity names: []
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.convertException(BaseEjbProxyHandler.java:333)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:279)
at $Proxy42.findByAccount(Unknown Source)
at
embedded.applicationejb.ejb.service.impl.user.UserImpl.findByAccount(UserImpl.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:174)
at
org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:132)
at org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:46)
at org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:64)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:125)
at
org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:224)
at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:176)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:249)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:232)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:89)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:274)
... 76 more
Caused by: <openjpa-2.0.1-r422266:989424 nonfatal user error>
org.apache.openjpa.persistence.ArgumentException: An error occurred while
parsing the query filter "SELECT u FROM User u WHERE u.account = :paccount".
Error message: The name "User" is not a recognized entity or identifier.
Known entity names: []
at
org.apache.openjpa.kernel.exps.AbstractExpressionBuilder.parseException(AbstractExpressionBuilder.java:119)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getClassMetaData(JPQLExpressionBuilder.java:197)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.resolveClassMetaData(JPQLExpressionBuilder.java:167)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:242)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateMetaData(JPQLExpressionBuilder.java:212)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.getCandidateType(JPQLExpressionBuilder.java:205)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder.access$200(JPQLExpressionBuilder.java:81)
at
org.apache.openjpa.kernel.jpql.JPQLExpressionBuilder$ParsedJPQL.populate(JPQLExpressionBuilder.java:2387)
at org.apache.openjpa.kernel.jpql.JPQLParser.populate(JPQLParser.java:61)
at
org.apache.openjpa.kernel.ExpressionStoreQuery.populateFromCompilation(ExpressionStoreQuery.java:154)
at org.apache.openjpa.kernel.QueryImpl.newCompilation(QueryImpl.java:671)
at
org.apache.openjpa.kernel.QueryImpl.compilationFromCache(QueryImpl.java:652)
at
org.apache.openjpa.kernel.QueryImpl.compileForCompilation(QueryImpl.java:618)
at
org.apache.openjpa.kernel.QueryImpl.compileForExecutor(QueryImpl.java:680)
at org.apache.openjpa.kernel.QueryImpl.compile(QueryImpl.java:587)
at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:986)
at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:972)
at
org.apache.openjpa.persistence.EntityManagerImpl.createQuery(EntityManagerImpl.java:100)
at
org.apache.openejb.persistence.JtaEntityManager.createQuery(JtaEntityManager.java:253)
at
embedded.applicationejb.persistence.execution.AbstractDb.createQuery(AbstractDb.java:167)
at
embedded.applicationejb.persistence.execution.AbstractDb.findUniqueByQuery(AbstractDb.java:124)
at
embedded.applicationejb.persistence.execution.specialized.UserEAO.findByAccount(UserEAO.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:174)
at
org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:132)
at org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:46)
at org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:64)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor$ScopeActivator.call(CdiInterceptor.java:97)
at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:182)
at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:164)
at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:125)
at
org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:224)
at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:176)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.synchronizedBusinessMethod(EjbObjectProxyHandler.java:249)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler.businessMethod(EjbObjectProxyHandler.java:232)
at
org.apache.openejb.core.ivm.EjbObjectProxyHandler._invoke(EjbObjectProxyHandler.java:89)
at
org.apache.openejb.core.ivm.BaseEjbProxyHandler.invoke(BaseEjbProxyHandler.java:274)
... 111 more
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.185 sec
<<< FAILURE!

Results :

Tests in error:
  testGetUser(embedded.applicationejb.UserServiceTest)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] There are test failures.

Please refer to
C:\Users\t-tveronezi\test\demo\application-ejb\target\surefire-reports for
the individual test results.
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Mon Nov 08 15:50:24 EST 2010
[INFO] Final Memory: 54M/250M
[INFO]
------------------------------------------------------------------------

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message