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

Kazuhisa Takakuri ktakakuri at openjdk.org
Fri Jan 24 08:27:55 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.

I made the typo when I backported. I think this fix is correct.

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

PR Comment: https://git.openjdk.org/jdk8u-dev/pull/616#issuecomment-2611933606


More information about the jdk8u-dev mailing list