[jdk8u-dev] Integrated: 8348211: [8u] sun/management/jmxremote/startstop/JMXStartStopTest.java fails after backport of JDK-8066708

Zdenek Zambersky zzambers at openjdk.org
Tue Feb 25 12:54:03 UTC 2025


On Tue, 21 Jan 2025 20:03:15 GMT, Zdenek Zambersky <zzambers at openjdk.org> wrote:

> `sun/management/jmxremote/startstop/JMXStartStopTest.java` fails on 8u after [backport](https://github.com/openjdk/jdk8u-dev/pull/430) of JDK-8066708
> 
> **Problem:**
> 
> test_01 failed
> java.lang.reflect.InvocationTargetException
> 	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 JMXStartStopTest.main(JMXStartStopTest.java:294)
> 	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.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
> 	at java.lang.Thread.run(Thread.java:750)
> Caused by: java.rmi.NoSuchObjectException: no such object in table
> 	at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:303)
> 	at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:279)
> 	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:380)
> 	at sun.rmi.registry.RegistryImpl_Stub.list(RegistryImpl_Stub.java:91)
> 	at JMXStartStopTest.testConnect(JMXStartStopTest.java:201)
> 	at JMXStartStopTest.testConnect(JMXStartStopTest.java:187)
> 	at JMXStartStopTest.test_01(JMXStartStopTest.java:503)
> 	... 11 more
> java.lang.Error
> 	at JMXStartStopTest.main(JMXStartStopTest.java:318)
> 	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.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
> 	at java.lang.Thread.run(Thread.java:750)
> 
> JavaTest Message: Test threw exception: java.lang.Error
> JavaTest Message: shutting down test
> 
> 
> **Fix:**
> There was a mistake in JDK-8066708 backport, where `testConnect` is called instead of `testNoConnect`. This PR fixes this.
> 
> **Testing:**
> - tested locally, JMXStartStopTest.java passed with this change
> - GHA test failures are unrelated

This pull request has now been integrated.

Changeset: 5ccff2c6
Author:    Zdenek Zambersky <zzambers at openjdk.org>
URL:       https://git.openjdk.org/jdk8u-dev/commit/5ccff2c63f39ddf3aa7ee5a3270e78fee8f86311
Stats:     1 line in 1 file changed: 0 ins; 0 del; 1 mod

8348211: [8u] sun/management/jmxremote/startstop/JMXStartStopTest.java fails after backport of JDK-8066708

Reviewed-by: serb

-------------

PR: https://git.openjdk.org/jdk8u-dev/pull/616


More information about the jdk8u-dev mailing list