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

jpa.ee.packaging.appclient.annotation test1

    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.ee.packaging.appclient.annotation.Client#test1
      

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

      Apr 11, 2021 8:43:56 PM org.apache.openejb.client.EventLogger log
      INFO: RemoteInitialContextCreated{providerUri=http://localhost:53200/tomee/ejb}
      Apr 11, 2021 8:43:56 PM org.apache.openejb.client.EventLogger log
      INFO: RemoteInitialContextCreated{providerUri=http://localhost:53200/tomee/ejb}
      Injection FAILED: class=com.sun.ts.tests.jpa.ee.packaging.appclient.annotation.Client, name=emf, jndi-ref=comp/env/com.sun.ts.tests.jpa.ee.packaging.appclient.annotation.Client/emf
      javax.naming.NamingException: Cannot lookup 'comp/env/com.sun.ts.tests.jpa.ee.packaging.appclient.annotation.Client/emf'. [Root exception is java.rmi.RemoteException: Error reading response from server (OEJP/4.6) : null; nested exception is: 
      	java.lang.NullPointerException]
      	at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:453)
      	at javax.naming.InitialContext.lookup(InitialContext.java:417)
      	at org.apache.openejb.client.Main.main(Main.java:85)
      Caused by: java.rmi.RemoteException: Error reading response from server (OEJP/4.6) : null; nested exception is: 
      	java.lang.NullPointerException
      	at org.apache.openejb.client.Client.processRequest(Client.java:335)
      	at org.apache.openejb.client.Client.request(Client.java:140)
      	at org.apache.openejb.client.JNDIContext.request(JNDIContext.java:236)
      	at org.apache.openejb.client.JNDIContext.lookup(JNDIContext.java:443)
      	... 2 more
      Caused by: java.lang.NullPointerException
      	at org.apache.openejb.assembler.classic.ReloadableEntityManagerFactory$SerializableEm.readResolve(ReloadableEntityManagerFactory.java:748)
      	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 java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1248)
      	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2073)
      	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568)
      	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428)
      	at org.apache.openejb.client.JNDIResponse.readExternal(JNDIResponse.java:99)
      	at org.apache.openejb.client.Client.processRequest(Client.java:327)
      	... 5 more
      ************************************************************
      * props file set to "/var/folders/bd/f9ntqy1m8xj_fs006s6crtjh0000gn/T/dblevins-cts-props.txt"
      ************************************************************
      04-11-2021 20:43:56:  TRACE: #######  Value of harness.socket.retry.count is "10"
      04-11-2021 20:43:56:  TRACE: #######  Value of harness.log.port is "53206"
      04-11-2021 20:43:56:  TRACE: #######  Actual bind value of harness.log.port is "53206"
      04-11-2021 20:43:56:  TRACE: *** in EETest.run(argv,p)
      04-11-2021 20:43:56:  TRACE: TESTCLASS=com.sun.ts.tests.jpa.ee.packaging.appclient.annotation.Client
      04-11-2021 20:43:56:  TRACE: ** IN getRunMethod: testClass=com.sun.ts.tests.jpa.ee.packaging.appclient.annotation.Client
      04-11-2021 20:43:56:  TRACE: ** IN getRunMethod: testname=test1
      04-11-2021 20:43:56:  TRACE: ** GOT RUN METHOD!
      04-11-2021 20:43:56:  TRACE: **runmethod=test1
      04-11-2021 20:43:56:  TRACE: ABOUT TO GET SETUP METHOD!
      04-11-2021 20:43:56:  TRACE: No setupMethod annotation present
      04-11-2021 20:43:56:  TRACE: getSetupMethod - checking for testcase specific setup method:  test1_setup
      04-11-2021 20:43:56:  TRACE: getSetupMethod - checking for default class specific setup method
      04-11-2021 20:43:56:  TRACE: GOT SETUP METHOD!
      04-11-2021 20:43:56:  TRACE: No cleanupMethod annotation present
      04-11-2021 20:43:56:  TRACE: getCleanupMethod - checking for testcase specific cleanup method:  test1_cleanup
      04-11-2021 20:43:56:  TRACE: getCleanupMethod - checking for default class specific cleanup method
      04-11-2021 20:43:56:  TRACE: GOT CLEANUP METHOD!
      04-11-2021 20:43:56:  TRACE: ABOUT TO INVOKE SETUP METHOD!
      04-11-2021 20:43:56:  ERROR: EMF is null
      04-11-2021 20:43:56:  ERROR: Setup Failed!
      04-11-2021 20:43:56:  ERROR: Test case throws exception: com.sun.ts.lib.harness.EETest$Fault: Setup Failed!
      04-11-2021 20:43:56:  ERROR: Exception at:  
      04-11-2021 20:43:56:  ERROR: com.sun.ts.lib.harness.EETest$Fault: Setup Failed!
      	at com.sun.ts.tests.jpa.ee.packaging.appclient.annotation.Client.setup(Client.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 com.sun.ts.lib.harness.EETest.run(EETest.java:569)
      	at com.sun.ts.lib.harness.EETest.getPropsReady(EETest.java:486)
      	at com.sun.ts.lib.harness.EETest.run(EETest.java:337)
      	at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
      	at com.sun.ts.tests.jpa.ee.packaging.appclient.annotation.Client.main(Client.java:47)
      	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.client.Main.invoke(Main.java:132)
      	at org.apache.openejb.client.Main.main(Main.java:100)
      
      04-11-2021 20:43:56:  TRACE: cleanup
      04-11-2021 20:43:56:  TRACE: removeTestData
      04-11-2021 20:43:56:  ERROR: Test case throws exception: null
      04-11-2021 20:43:56:  ERROR: Exception at:  
      04-11-2021 20:43:56:  ERROR: java.lang.NullPointerException
      	at com.sun.ts.tests.jpa.ee.packaging.appclient.annotation.Client.removeTestData(Client.java:175)
      	at com.sun.ts.tests.jpa.ee.packaging.appclient.annotation.Client.cleanup(Client.java:165)
      	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.EETest.getPropsReady(EETest.java:486)
      	at com.sun.ts.lib.harness.EETest.run(EETest.java:337)
      	at com.sun.ts.lib.harness.EETest.run(EETest.java:285)
      	at com.sun.ts.tests.jpa.ee.packaging.appclient.annotation.Client.main(Client.java:47)
      	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.client.Main.invoke(Main.java:132)
      	at org.apache.openejb.client.Main.main(Main.java:100)
      
      STATUS:Failed.Test case throws exception: com.sun.ts.lib.harness.EETest$Fault: Setup Failed!
      Failed. Test case throws exception: com.sun.ts.lib.harness.EETest$Fault: Setup Failed!
      ********************************************************************************
      Finished Test:  FAILED........com/sun/ts/tests/jpa/ee/packaging/appclient/annotation/Client.java#test1
      

      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: