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_appmanagedNoTx
      

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

      	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:49:20:  SVR: Cleanup: JPA 2.2 Java 8 date and time types test
      04-11-2021 20:49:20:  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:53822/derbydb;create=true, jakarta.persistence.jdbc.driver=org.apache.derby.jdbc.ClientDriver, jakarta.persistence.jdbc.user=cts}
      04-11-2021 20:49:20:  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:53822/derbydb;create=true, jakarta.persistence.jdbc.driver=org.apache.derby.jdbc.ClientDriver, jakarta.persistence.jdbc.user=cts}
      04-11-2021 20:49:20:  SVR: Current properties:
      04-11-2021 20:49:20:  SVR-TRACE: Key:jakarta.persistence.jdbc.password, value:[cts]
      04-11-2021 20:49:20:  SVR-TRACE: Key:jakarta.persistence.schema-generation.database.action, value:[drop]
      04-11-2021 20:49:20:  SVR-TRACE: Key:jakarta.persistence.provider, value:[org.eclipse.persistence.jpa.PersistenceProvider]
      04-11-2021 20:49:20:  SVR-TRACE: Key:eclipselink.logging.level, value:[OFF]
      04-11-2021 20:49:20:  SVR-TRACE: Key:jakarta.persistence.jdbc.url, value:[jdbc:derby://localhost:53822/derbydb;create=true]
      04-11-2021 20:49:20:  SVR-TRACE: Key:jakarta.persistence.jdbc.driver, value:[org.apache.derby.jdbc.ClientDriver]
      04-11-2021 20:49:20:  SVR-TRACE: Key:jakarta.persistence.jdbc.user, value:[cts]
      04-11-2021 20:49:20:  SVR:  - executing persistence schema cleanup
      04-11-2021 20:49:20:  SVR-TRACE: getPersistenceUnitName() - Persistence Unit Name:CTS-EM-NOTX
      INFO: Found persistence provider "org.eclipse.persistence.jpa.PersistenceProvider". OpenJPA will not be used.
      04-11-2021 20:49:20:  SVR-ERROR: Test case throws exception: null
      04-11-2021 20:49:20:  SVR-ERROR: Exception at:  
      04-11-2021 20:49:20:  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.ejb3share.EJB3ShareBaseBean.runTest(EJB3ShareBaseBean.java:75)
      	at com.sun.ts.tests.common.vehicle.appmanagedNoTx.AppManagedNoTxVehicleBean.runTest(AppManagedNoTxVehicleBean.java:61)
      	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.stateful.StatefulContainer.removeEJBObject(StatefulContainer.java:602)
      	at org.apache.openejb.core.stateful.StatefulContainer.invoke(StatefulContainer.java:377)
      	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:49:21:  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_appmanagedNoTx
      

      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: