Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-3140 Jakarta EE 9.1 TCK Failures
  3. TOMEE-3190

jpa.core.entityManager setPropertyTest

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 9.0.0-M7
    • None
    • None

    Description

      Follow setup instructions in TOMEE-3140. Then run:

      ./runtests --ee91 -c -j --web tomee-plume com.sun.ts.tests.jpa.core.entityManager.Client#setPropertyTest_from_stateless3
      

      At the time this issue was filed, the test failed with the following in target/logs/javatest.log

      04-11-2021 20:41:55:  SVR-TRACE: Key:persistence.unit.name.2, value:[JPATCK2]
      04-11-2021 20:41:55:  SVR-TRACE: Key:jakarta.persistence.provider, value:[org.eclipse.persistence.jpa.PersistenceProvider]
      04-11-2021 20:41:55:  SVR-TRACE: Key:harness.host, value:[192.168.8.12]
      04-11-2021 20:41:55:  SVR-TRACE: Key:current.keywords, value:[all]
      04-11-2021 20:41:55:  SVR-TRACE: Key:porting.ts.HttpsURLConnection.class.2, value:[com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection]
      04-11-2021 20:41:55:  SVR-TRACE: Key:webServerPort, value:[52965]
      04-11-2021 20:41:55:  SVR-TRACE: Key:porting.ts.HttpsURLConnection.class.1, value:[org.apache.openejb.cts.HTTPSURLConnectionImpl]
      04-11-2021 20:41:55:  SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true
      [EL Info]: 2021-04-11 20:41:55.187--ServerSession(249148793)--EclipseLink, version: Eclipse Persistence Services - 3.0.0.v202012081010
      04-11-2021 20:41:55:  SVR-TRACE: Map - name:eclipselink.logging.level, value:INFO
      04-11-2021 20:41:55:  SVR-TRACE: Map - name:eclipselink.target-server, value:org.apache.openejb.jpa.integration.eclipselink.OpenEJBServerPlatform
      04-11-2021 20:41:55:  SVR-TRACE: Map - name:jakarta.persistence.validation.factory, value:com.sun.proxy.$Proxy60
      04-11-2021 20:41:55:  SVR-TRACE: Map - name:foo, value:bar
      04-11-2021 20:41:55:  SVR-TRACE: INVOKED SETUP METHOD!
      04-11-2021 20:41:55:  SVR-TRACE: ABOUT TO INVOKE EETEST RUN METHOD!
      04-11-2021 20:41:55:  SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true
      04-11-2021 20:41:55:  SVR-TRACE: Setting property:jakarta.persistence.cache.retrieveMode,USE
      04-11-2021 20:41:55:  SVR-TRACE: Retrieve all EntityManger properties:
      04-11-2021 20:41:55:  SVR: Key = eclipselink.logging.level
      04-11-2021 20:41:55:  SVR: Key = eclipselink.target-server
      04-11-2021 20:41:55:  SVR: Key = jakarta.persistence.validation.factory
      04-11-2021 20:41:55:  SVR-ERROR: Property key:jakarta.persistence.cache.retrieveMode, not found in EntityManager
      04-11-2021 20:41:55:  SVR-ERROR: The value for Key:jakarta.persistence.cache.retrieveMode, was not found in EntityManager
      04-11-2021 20:41:55:  SVR-ERROR: setPropertyTest failed
      04-11-2021 20:41:55:  SVR-ERROR: Test case throws exception: setPropertyTest failed
      04-11-2021 20:41:55:  SVR-ERROR: Exception at:  
      04-11-2021 20:41:55:  SVR-ERROR: com.sun.ts.lib.harness.EETest$Fault: setPropertyTest failed
      	at com.sun.ts.tests.jpa.core.entityManager.Client.setPropertyTest(Client.java:1324)
      	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:41:55:  SVR-TRACE: cleanup complete, calling super.cleanup
      04-11-2021 20:41:55:  SVR-TRACE: Rolling back any existing transaction before closing EMF and EM if one exists.
      04-11-2021 20:41:55:  SVR-TRACE: UserTransactionWrapper.isActive().getStatus():6
      04-11-2021 20:41:55:  SVR-TRACE: Transaction class:com.sun.ts.tests.common.vehicle.ejb3share.UserTransactionWrapper isActive():false
      04-11-2021 20:41:55:  SVR-TRACE: UserTransactionWrapper.isActive().getStatus():6
      04-11-2021 20:41:55:  SVR-TRACE: Transaction class:com.sun.ts.tests.common.vehicle.ejb3share.UserTransactionWrapper isActive():false
      04-11-2021 20:41:55:  SVR-TRACE: UserTransactionWrapper.isActive().getStatus():6
      04-11-2021 20:41:55:  SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true
      04-11-2021 20:41:55:  SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true
      04-11-2021 20:41:55:  SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true
      04-11-2021 20:41:55:  SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true
      04-11-2021 20:41:55:  SVR-TRACE: Clearing context
      04-11-2021 20:41:55:  SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true
      04-11-2021 20:41:55:  SVR-TRACE: Trying to clear cache via call to EMF.getCache().evictAll().
      04-11-2021 20:41:55:  SVR-TRACE: Using existing entity manager class:org.apache.openejb.persistence.JtaEntityManager isOpen:true
      04-11-2021 20:41:55:  SVR-TRACE: EMF.getCache().evictAll() was executed.
      04-11-2021 20:41:56:  TRACE: SLEPT FOR:  1000
      STATUS:Failed.Test case throws exception: setPropertyTest failed
      Failed. Test case throws exception: setPropertyTest failed
      ********************************************************************************
      Finished Test:  FAILED........com/sun/ts/tests/jpa/core/entityManager/Client.java#setPropertyTest_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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: