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.ee.packaging.appclient.descriptor.Client#test1
At the time this issue was filed, the test failed with the following in target/logs/javatest.log
INFO: RemoteInitialContextCreated{providerUri=http://localhost:53275/tomee/ejb} Apr 11, 2021 8:44:34 PM org.apache.openejb.client.EventLogger log INFO: RemoteInitialContextCreated{providerUri=http://localhost:53275/tomee/ejb} Apr 11, 2021 8:44:34 PM org.apache.openejb.client.EventLogger log INFO: RemoteInitialContextCreated{providerUri=http://localhost:53275/tomee/ejb} ************************************************************ * props file set to "/var/folders/bd/f9ntqy1m8xj_fs006s6crtjh0000gn/T/dblevins-cts-props.txt" ************************************************************ 04-11-2021 20:44:34: TRACE: ####### Value of harness.socket.retry.count is "10" 04-11-2021 20:44:34: TRACE: ####### Value of harness.log.port is "53281" 04-11-2021 20:44:34: TRACE: ####### Actual bind value of harness.log.port is "53281" 04-11-2021 20:44:34: TRACE: *** in EETest.run(argv,p) 04-11-2021 20:44:34: TRACE: TESTCLASS=com.sun.ts.tests.jpa.ee.packaging.appclient.descriptor.Client 04-11-2021 20:44:34: TRACE: ** IN getRunMethod: testClass=com.sun.ts.tests.jpa.ee.packaging.appclient.descriptor.Client 04-11-2021 20:44:34: TRACE: ** IN getRunMethod: testname=test1 04-11-2021 20:44:34: TRACE: ** GOT RUN METHOD! 04-11-2021 20:44:34: TRACE: **runmethod=test1 04-11-2021 20:44:34: TRACE: ABOUT TO GET SETUP METHOD! 04-11-2021 20:44:34: TRACE: No setupMethod annotation present 04-11-2021 20:44:34: TRACE: getSetupMethod - checking for testcase specific setup method: test1_setup 04-11-2021 20:44:34: TRACE: getSetupMethod - checking for default class specific setup method 04-11-2021 20:44:34: TRACE: GOT SETUP METHOD! 04-11-2021 20:44:34: TRACE: No cleanupMethod annotation present 04-11-2021 20:44:34: TRACE: getCleanupMethod - checking for testcase specific cleanup method: test1_cleanup 04-11-2021 20:44:34: TRACE: getCleanupMethod - checking for default class specific cleanup method 04-11-2021 20:44:34: TRACE: GOT CLEANUP METHOD! 04-11-2021 20:44:34: TRACE: ABOUT TO INVOKE SETUP METHOD! 04-11-2021 20:44:34: TRACE: Obtain naming context Apr 11, 2021 8:44:34 PM org.apache.openejb.client.EventLogger log INFO: RemoteInitialContextCreated{providerUri=http://localhost:53275/tomee/ejb} 04-11-2021 20:44:34: ERROR: Test case throws exception: com.sun.ts.lib.harness.EETest$Fault: Setup Failed! 04-11-2021 20:44:34: ERROR: Exception at: 04-11-2021 20:44:34: ERROR: javax.naming.NamingException: Cannot lookup 'comp/env/persistence/MyPersistenceUnit'. [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 com.sun.ts.lib.util.TSNamingContext.lookup(TSNamingContext.java:69) at com.sun.ts.tests.jpa.ee.packaging.appclient.descriptor.Client.setup(Client.java:66) 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.descriptor.Client.main(Client.java:50) 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) 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) ... 18 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) ... 21 more 04-11-2021 20:44:34: TRACE: cleanup 04-11-2021 20:44:34: TRACE: removeTestData 04-11-2021 20:44:34: ERROR: Test case throws exception: null 04-11-2021 20:44:34: ERROR: Exception at: 04-11-2021 20:44:34: ERROR: java.lang.NullPointerException at com.sun.ts.tests.jpa.ee.packaging.appclient.descriptor.Client.removeTestData(Client.java:198) at com.sun.ts.tests.jpa.ee.packaging.appclient.descriptor.Client.cleanup(Client.java:187) 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.descriptor.Client.main(Client.java:50) 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/descriptor/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.