Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Follow setup instructions in TOMEE-3140. Then run:
./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.jpa.core.enums.Client#setgetFlushModeEntityManagerTest_from_stateless3
At the time this issue was filed, the test failed with the following in target/logs/javatest.log
04-11-2021 20:43:17: SVR-TRACE: Key:porting.ts.deploy.class.1, value:[org.apache.openejb.cts.deploy.StandardDeployment14] 04-11-2021 20:43:17: SVR-TRACE: Key:bin.dir, value:[] 04-11-2021 20:43:17: SVR-TRACE: Key:harness.log.port, value:[53127] 04-11-2021 20:43:17: SVR-TRACE: Key:orb.host, value:[localhost] 04-11-2021 20:43:17: SVR-TRACE: Key:persistence.unit.name, value:[CTS-EM] 04-11-2021 20:43:17: SVR-TRACE: Key:porting.ts.url.class.2, value:[com.sun.ts.lib.implementation.sun.common.SunRIURL] 04-11-2021 20:43:17: SVR-TRACE: Key:porting.ts.url.class.1, value:[org.apache.openejb.cts.URLImpl] 04-11-2021 20:43:17: SVR-TRACE: Key:porting.ts.HttpsURLConnection.class.2, value:[com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection] 04-11-2021 20:43:17: SVR-TRACE: Key:porting.ts.jms.class.2, value:[com.sun.ts.lib.implementation.sun.javaee.SunRIJMSAdmin] 04-11-2021 20:43:17: SVR-TRACE: Key:porting.ts.HttpsURLConnection.class.1, value:[org.apache.openejb.cts.HTTPSURLConnectionImpl] 04-11-2021 20:43:17: SVR-TRACE: Key:porting.ts.jms.class.1, value:[org.apache.openejb.cts.JMSAdminImpl] 04-11-2021 20:43:17: SVR-TRACE: Key:testName, value:[setgetFlushModeEntityManagerTest] 04-11-2021 20:43:17: SVR-TRACE: Key:jakarta.persistence.jdbc.user, value:[cts] 04-11-2021 20:43:17: SVR-TRACE: Key:vehicle_archive_name, value:[jpa_core_enums_vehicles] 04-11-2021 20:43:17: SVR-TRACE: Key:finder, value:[cts] 04-11-2021 20:43:17: SVR-TRACE: Key:all.props, value:[false] 04-11-2021 20:43:17: SVR-TRACE: Key:porting.ts.deploy2.class.2, value:[com.sun.ts.lib.implementation.sun.javaee.SunRIDeployment2] 04-11-2021 20:43:17: SVR-TRACE: INVOKED SETUP METHOD! 04-11-2021 20:43:17: SVR-TRACE: ABOUT TO INVOKE EETEST RUN METHOD! 04-11-2021 20:43:17: SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true 04-11-2021 20:43:17: SVR-TRACE: Checking Default mode [EL Info]: 2021-04-11 20:43:17.673--ServerSession(692175547)--EclipseLink, version: Eclipse Persistence Services - 3.0.0.v202012081010 04-11-2021 20:43:17: SVR-TRACE: Checking COMMIT 04-11-2021 20:43:17: SVR-ERROR: Expected a value of:COMMIT, actual:AUTO 04-11-2021 20:43:17: SVR-ERROR: setgetFlushModeEntityManagerTest failed 04-11-2021 20:43:17: SVR-ERROR: Test case throws exception: setgetFlushModeEntityManagerTest failed 04-11-2021 20:43:17: SVR-ERROR: Exception at: 04-11-2021 20:43:17: SVR-ERROR: com.sun.ts.lib.harness.EETest$Fault: setgetFlushModeEntityManagerTest failed at com.sun.ts.tests.jpa.core.enums.Client.setgetFlushModeEntityManagerTest(Client.java:1011) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.sun.ts.lib.harness.EETest.run(EETest.java:596) at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115) at com.sun.ts.tests.common.vehicle.ejb3share.EJB3ShareBaseBean.runTest(EJB3ShareBaseBean.java:75) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:205) at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:186) at org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:191) at org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:102) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:205) at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:186) at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:85) at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:252) at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:212) at org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:371) at org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:182) at org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:360) at org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:247) at org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:104) at org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:60) at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:770) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:223) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) at org.apache.tomee.catalina.OpenEJBSecurityListener$RequestCapturer.invoke(OpenEJBSecurityListener.java:97) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:353) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:870) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1696) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) 04-11-2021 20:43:17: SVR-TRACE: Rolling back any existing transaction before closing EMF and EM if one exists. 04-11-2021 20:43:17: SVR-TRACE: UserTransactionWrapper.isActive().getStatus():6 04-11-2021 20:43:17: SVR-TRACE: Transaction class:com.sun.ts.tests.common.vehicle.ejb3share.UserTransactionWrapper isActive():false 04-11-2021 20:43:17: SVR-TRACE: UserTransactionWrapper.isActive().getStatus():6 04-11-2021 20:43:17: SVR-TRACE: Transaction class:com.sun.ts.tests.common.vehicle.ejb3share.UserTransactionWrapper isActive():false 04-11-2021 20:43:17: SVR-TRACE: UserTransactionWrapper.isActive().getStatus():6 04-11-2021 20:43:17: SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true 04-11-2021 20:43:17: SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true 04-11-2021 20:43:17: SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true 04-11-2021 20:43:17: SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true 04-11-2021 20:43:17: SVR-TRACE: Clearing context 04-11-2021 20:43:17: SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true 04-11-2021 20:43:17: SVR-TRACE: Trying to clear cache via call to EMF.getCache().evictAll(). 04-11-2021 20:43:17: SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true 04-11-2021 20:43:17: SVR-TRACE: EMF.getCache().evictAll() was executed. 04-11-2021 20:43:18: TRACE: SLEPT FOR: 1000 STATUS:Failed.Test case throws exception: setgetFlushModeEntityManagerTest failed Failed. Test case throws exception: setgetFlushModeEntityManagerTest failed ******************************************************************************** Finished Test: FAILED........com/sun/ts/tests/jpa/core/enums/Client.java#setgetFlushModeEntityManagerTest_from_stateless3
For tips on debugging/fixing tests, see https://github.com/apache/tomee-tck/blob/master/DEBUGGING.adoc
If you have any thoughts about what the test is expecting/testing, please add them to the comments.