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.jpa22.datetime.Client#dateTimeTest_from_pmservlet
      

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

      	at com.sun.ts.tests.common.vehicle.servlet.ServletVehicle.doPost(ServletVehicle.java:115)
      	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:689)
      	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.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)
      	at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:66)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
      	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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
      	at org.apache.openejb.cts.TransactionalWorkaroundLeakGuardValve.invoke(TransactionalWorkaroundLeakGuardValve.java:39)
      	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:50:05:  SVR: Cleanup: JPA 2.2 Java 8 date and time types test
      04-11-2021 20:50:05:  SVR-TRACE: persistence unit properites from user: {jakarta.persistence.jdbc.password=cts, jakarta.persistence.provider=org.eclipse.persistence.jpa.PersistenceProvider, eclipselink.logging.level=OFF, jakarta.persistence.jdbc.url=jdbc:derby://localhost:53906/derbydb;create=true, jakarta.persistence.jdbc.driver=org.apache.derby.jdbc.ClientDriver, jakarta.persistence.jdbc.user=cts}
      04-11-2021 20:50:05:  SVR-TRACE: persistence unit properites verified: {jakarta.persistence.jdbc.password=cts, jakarta.persistence.provider=org.eclipse.persistence.jpa.PersistenceProvider, eclipselink.logging.level=OFF, jakarta.persistence.jdbc.url=jdbc:derby://localhost:53906/derbydb;create=true, jakarta.persistence.jdbc.driver=org.apache.derby.jdbc.ClientDriver, jakarta.persistence.jdbc.user=cts}
      04-11-2021 20:50:05:  SVR: Current properties:
      04-11-2021 20:50:05:  SVR-TRACE: Key:jakarta.persistence.jdbc.password, value:[cts]
      04-11-2021 20:50:05:  SVR-TRACE: Key:jakarta.persistence.schema-generation.database.action, value:[drop]
      04-11-2021 20:50:05:  SVR-TRACE: Key:jakarta.persistence.provider, value:[org.eclipse.persistence.jpa.PersistenceProvider]
      04-11-2021 20:50:05:  SVR-TRACE: Key:eclipselink.logging.level, value:[OFF]
      04-11-2021 20:50:05:  SVR-TRACE: Key:jakarta.persistence.jdbc.url, value:[jdbc:derby://localhost:53906/derbydb;create=true]
      04-11-2021 20:50:05:  SVR-TRACE: Key:jakarta.persistence.jdbc.driver, value:[org.apache.derby.jdbc.ClientDriver]
      04-11-2021 20:50:05:  SVR-TRACE: Key:jakarta.persistence.jdbc.user, value:[cts]
      04-11-2021 20:50:05:  SVR:  - executing persistence schema cleanup
      04-11-2021 20:50:05:  SVR-TRACE: getPersistenceUnitName() - Persistence Unit Name:CTS-EM
      INFO: Found persistence provider "org.eclipse.persistence.jpa.PersistenceProvider". OpenJPA will not be used.
      Test running in pmservlet vehicle failed
      04-11-2021 20:50:05:  SVR-ERROR: Test case throws exception: nullran test
      
      04-11-2021 20:50:05:  SVR-ERROR: Exception at:  
      04-11-2021 20:50:05:  SVR-ERROR: java.lang.NullPointerException
      	at org.apache.openjpa.persistence.PersistenceProviderImpl.generateSchema(PersistenceProviderImpl.java:249)
      	at jakarta.persistence.Persistence.generateSchema(Persistence.java:188)
      	at com.sun.ts.tests.jpa.jpa22.datetime.Client.cleanup(Client.java:82)
      	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:623)
      	at com.sun.ts.lib.harness.ServiceEETest.run(ServiceEETest.java:115)
      	at com.sun.ts.tests.common.vehicle.pmservlet.PMServletVehicle.runTest(PMServletVehicle.java:109)
      	at com.sun.ts.tests.common.vehicle.servlet.ServletVehicle.doGet(ServletVehicle.java:95)
      	at com.sun.ts.tests.common.vehicle.servlet.ServletVehicle.doPost(ServletVehicle.java:115)
      	at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:689)
      	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.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:158)
      	at org.apache.openejb.server.httpd.EEFilter.doFilter(EEFilter.java:66)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:185)
      	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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
      	at org.apache.openejb.cts.TransactionalWorkaroundLeakGuardValve.invoke(TransactionalWorkaroundLeakGuardValve.java:39)
      	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:50:05:  Test status from a pmservlet:  1:Test case throws exception: java.lang.NullPointerException
      04-11-2021 20:50:05:  Test: returning from running in a pmservlet vehicle
      04-11-2021 20:50:06:  TRACE: SLEPT FOR:  1000
      STATUS:Failed.Test case throws exception: java.lang.NullPointerException
      Failed. Test case throws exception: java.lang.NullPointerException
      ********************************************************************************
      Finished Test:  FAILED........com/sun/ts/tests/jpa/jpa22/datetime/Client.java#dateTimeTest_from_pmservlet
      

      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

            jlmonteiro Jean-Louis Monteiro
            dblevins David Blevins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: