eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 722 forks source link

jdk_rmi_FAILED NoSuchObjectException: object not exported #17079

Open JasonFengJ9 opened 1 year ago

JasonFengJ9 commented 1 year ago

Failure link

From JDK17 x86-64_windows 0.38.0 m2 build(win16x64rt-1-9):

openjdk version "17.0.7" 2023-04-18
IBM Semeru Runtime Open Edition 17.0.7.0-m2 (build 17.0.7+5)
Eclipse OpenJ9 VM 17.0.7.0-m2 (build v0.38.0-release-353bdb06f, JRE 17 Windows Server 2016 amd64-64-Bit Compressed References 20230418_402 (JIT enabled, AOT enabled)
OpenJ9   - 353bdb06f
OMR      - 855813495
JCL      - 267a5a72c4a based on jdk-17.0.7+5)

Rerun in Grinder - Change TARGET to run only the failed test targets.

Optional info

Failure output (captured from console output)

[2023-03-30T04:09:35.550Z] variation: Mode650
[2023-03-30T04:09:36.018Z] JVM_OPTIONS:  -XX:-UseCompressedOops 

[2023-03-30T04:12:39.370Z] TEST: java/rmi/server/RemoteObject/notExtending/NotExtending.java

[2023-03-30T04:12:39.371Z] STDERR:
[2023-03-30T04:12:39.371Z] Server exported without invoking hashCode().
[2023-03-30T04:12:39.371Z] server.equals(stub) returns true
[2023-03-30T04:12:39.371Z] stub.equals(server) returns true
[2023-03-30T04:12:39.371Z] java.rmi.NoSuchObjectException: object not exported
[2023-03-30T04:12:39.371Z]  at java.rmi/sun.rmi.transport.ObjectTable.unexportObject(ObjectTable.java:152)
[2023-03-30T04:12:39.371Z]  at java.rmi/java.rmi.server.UnicastRemoteObject.unexportObject(UnicastRemoteObject.java:462)
[2023-03-30T04:12:39.371Z]  at NotExtending.unexport(NotExtending.java:58)
[2023-03-30T04:12:39.371Z]  at NotExtending.main(NotExtending.java:115)
[2023-03-30T04:12:39.371Z]  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2023-03-30T04:12:39.371Z]  at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
[2023-03-30T04:12:39.371Z]  at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2023-03-30T04:12:39.371Z]  at java.base/java.lang.reflect.Method.invoke(Method.java:568)
[2023-03-30T04:12:39.371Z]  at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2023-03-30T04:12:39.371Z]  at java.base/java.lang.Thread.run(Thread.java:857)
[2023-03-30T04:12:39.371Z] 
[2023-03-30T04:12:39.371Z] JavaTest Message: Test threw exception: java.rmi.NoSuchObjectException: object not exported

[2023-03-30T04:19:25.384Z] jdk_rmi_1_FAILED

50x internal grinder

pshipton commented 1 year ago

Looks like 10x. They all passed on win16x64rt2-4 and all failed on win19x86-rt3-1.

pshipton commented 1 year ago

The failures were all in different tests. I can see 25 failures of each, which explains the 50x.

java/rmi/server/RMISocketFactory/useSocketFactory/unicast/UseCustomSocketFactory.java.UseCustomSocketFactory

java/rmi/server/Unreferenced/leaseCheckInterval/LeaseCheckInterval.java.LeaseCheckInterval

JasonFengJ9 commented 1 year ago

JDK8 s390x_linux 0.38(rhel7s390x-3-2)

[2023-05-04T17:47:36.574Z] variation: Mode650
[2023-05-04T17:47:36.574Z] JVM_OPTIONS:  -XX:-UseCompressedOops 

[2023-05-04T17:51:33.887Z] TEST: java/rmi/transport/acceptLoop/CloseServerSocketOnTermination.java

[2023-05-04T17:51:33.888Z] JavaTest Message: Test threw exception: java.rmi.NoSuchObjectException: object not exported
[2023-05-04T17:51:33.888Z] JavaTest Message: shutting down test
[2023-05-04T17:51:33.888Z] 
[2023-05-04T17:51:33.888Z] Exception in thread "RMI TCP Accept-0" STATUS:Failed.`main' threw exception: java.rmi.NoSuchObjectException: object not exported
[2023-05-04T17:51:33.888Z] java.lang.InternalError
[2023-05-04T17:51:33.888Z]  at CloseServerSocketOnTermination.main(CloseServerSocketOnTermination.java:63)
[2023-05-04T17:51:33.888Z]  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2023-05-04T17:51:33.888Z]  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2023-05-04T17:51:33.888Z]  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2023-05-04T17:51:33.888Z]  at java.lang.reflect.Method.invoke(Method.java:498)
[2023-05-04T17:51:33.888Z]  at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
[2023-05-04T17:51:33.888Z]  at java.lang.Thread.run(Thread.java:826)

[2023-05-04T17:51:33.888Z] TEST RESULT: Failed. Execution failed: Execution failed
[2023-05-04T17:51:33.888Z] --------------------------------------------------
[2023-05-04T17:53:00.900Z] Test results: passed: 121; failed: 1
[2023-05-04T17:53:00.900Z] Report written to /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/aqa-tests/TKG/output_16832147509037/jdk_rmi_1/report/html/report.html
[2023-05-04T17:53:00.900Z] Results written to /home/jenkins/workspace/Test_openjdk8_j9_extended.openjdk_s390x_linux/aqa-tests/TKG/output_16832147509037/jdk_rmi_1/work
[2023-05-04T17:53:00.900Z] Error: Some tests failed or other problems occurred.
[2023-05-04T17:53:00.900Z] -----------------------------------
[2023-05-04T17:53:00.900Z] jdk_rmi_1_FAILED

50x grinder - this failure wasn't reproduced

JasonFengJ9 commented 5 months ago

JDK21 x86-64_linux(sles15x86-rtp-rt6-1)

[2024-05-11T17:15:23.670Z] variation: Mode650
[2024-05-11T17:15:23.670Z] JVM_OPTIONS:  -XX:-UseCompressedOops -Xverbosegclog 

[2024-05-11T17:18:04.724Z] TEST: java/rmi/server/RemoteObject/notExtending/NotExtending.java

[2024-05-11T17:18:04.725Z] STDERR:
[2024-05-11T17:18:04.725Z] Server exported without invoking hashCode().
[2024-05-11T17:18:04.725Z] server.equals(stub) returns true
[2024-05-11T17:18:04.725Z] stub.equals(server) returns true
[2024-05-11T17:18:04.725Z] java.rmi.NoSuchObjectException: object not exported
[2024-05-11T17:18:04.725Z]  at java.rmi/sun.rmi.transport.ObjectTable.unexportObject(ObjectTable.java:152)
[2024-05-11T17:18:04.725Z]  at java.rmi/java.rmi.server.UnicastRemoteObject.unexportObject(UnicastRemoteObject.java:460)
[2024-05-11T17:18:04.725Z]  at NotExtending.unexport(NotExtending.java:58)
[2024-05-11T17:18:04.725Z]  at NotExtending.main(NotExtending.java:115)
[2024-05-11T17:18:04.725Z]  at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
[2024-05-11T17:18:04.725Z]  at java.base/java.lang.reflect.Method.invoke(Method.java:586)
[2024-05-11T17:18:04.725Z]  at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
[2024-05-11T17:18:04.725Z]  at java.base/java.lang.Thread.run(Thread.java:1595)
[2024-05-11T17:18:04.725Z] 
[2024-05-11T17:18:04.725Z] JavaTest Message: Test threw exception: java.rmi.NoSuchObjectException: object not exported

[2024-05-11T17:19:59.126Z] Test results: passed: 88; failed: 1
[2024-05-11T17:20:07.637Z] Report written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_x86-64_linux_testList_2/aqa-tests/TKG/output_17154431943787/jdk_rmi_1/report/html/report.html
[2024-05-11T17:20:07.637Z] Results written to /home/jenkins/workspace/Test_openjdk21_j9_extended.openjdk_x86-64_linux_testList_2/aqa-tests/TKG/output_17154431943787/jdk_rmi_1/work
[2024-05-11T17:20:07.637Z] Error: Some tests failed or other problems occurred.
[2024-05-11T17:20:07.637Z] -----------------------------------
[2024-05-11T17:20:07.637Z] jdk_rmi_1_FAILED