JDK-8066708 : JMXStartStopTest fails to connect to port 38112
  • Type: Bug
  • Component: hotspot
  • Sub-Component: svc
  • Affected Version: 9
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-12-04
  • Updated: 2024-01-25
  • Resolved: 2015-02-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b51Fixed
Related Reports
Relates :  
Description
Test eleven seems to be unable to connect to port 38112:

----------System.err:(89/5579)----------
[jcmd] java.lang.RuntimeException: Invalid agent state: Agent already started
[jcmd] java.lang.RuntimeException: Invalid agent state: Agent already started
[jcmd] java.lang.RuntimeException: Invalid agent state: Agent already started
[JMXStartStopDoSomething] Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 38112; nested exception is: 
[JMXStartStopDoSomething] 	java.net.BindException: Address already in use
[jcmd] java.lang.RuntimeException: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 38112; nested exception is: 	java.net.BindException: Address already in use
Dec 04, 2014 12:21:14 PM ClientCommunicatorAdmin Checker-run
WARNING: Failed to check connection: java.net.ConnectException: Connection refused
Dec 04, 2014 12:21:14 PM ClientCommunicatorAdmin Checker-run
WARNING: stopping
Dec 04, 2014 12:21:17 PM ClientCommunicatorAdmin Checker-run
WARNING: Failed to check connection: java.net.ConnectException: Connection refused
Dec 04, 2014 12:21:17 PM ClientCommunicatorAdmin Checker-run
WARNING: stopping
Dec 04, 2014 12:21:25 PM ClientCommunicatorAdmin Checker-run
WARNING: Failed to check connection: java.net.ConnectException: Connection refused
Dec 04, 2014 12:21:25 PM ClientCommunicatorAdmin Checker-run
WARNING: stopping
Dec 04, 2014 12:21:34 PM ClientCommunicatorAdmin Checker-run
WARNING: Failed to check connection: java.net.ConnectException: Connection refused
Dec 04, 2014 12:21:34 PM ClientCommunicatorAdmin Checker-run
WARNING: stopping
Dec 04, 2014 12:21:42 PM ClientCommunicatorAdmin Checker-run
WARNING: Failed to check connection: java.net.ConnectException: Connection refused
Dec 04, 2014 12:21:42 PM ClientCommunicatorAdmin Checker-run
WARNING: stopping
Dec 04, 2014 12:21:50 PM ClientCommunicatorAdmin Checker-run
WARNING: Failed to check connection: java.net.ConnectException: Connection refused
Dec 04, 2014 12:21:50 PM ClientCommunicatorAdmin Checker-run
WARNING: stopping
Dec 04, 2014 12:21:58 PM ClientCommunicatorAdmin Checker-run
WARNING: Failed to check connection: java.net.ConnectException: Connection refused
Dec 04, 2014 12:21:58 PM ClientCommunicatorAdmin Checker-run
WARNING: stopping
test_11 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:295)
	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.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
	java.io.EOFException]
	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369)
	at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270)
	at JMXStartStopTest.testConnect(JMXStartStopTest.java:220)
	at JMXStartStopTest.testConnect(JMXStartStopTest.java:190)
	at JMXStartStopTest.test_11(JMXStartStopTest.java:813)
	... 11 more
Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
	java.io.EOFException]
	at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:122)
	at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:205)
	at javax.naming.InitialContext.lookup(InitialContext.java:409)
	at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1957)
	at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1924)
	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:287)
	... 15 more
Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
	java.io.EOFException
	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:302)
	at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:200)
	at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:342)
	at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
	at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:118)
	... 20 more
Caused by: java.io.EOFException
	at java.io.DataInputStream.readByte(DataInputStream.java:267)
	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:244)
	... 24 more
java.lang.Error
	at JMXStartStopTest.main(JMXStartStopTest.java:310)
	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.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.lang.Error
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Error

Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk8u-dev/pull/430 Date: 2024-01-25 10:04:40 +0000
25-01-2024

URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/1cf6ed0e4758 User: lana Date: 2015-02-18 23:14:17 +0000
18-02-2015

URL: http://hg.openjdk.java.net/jdk9/hs-rt/jdk/rev/1cf6ed0e4758 User: jbachorik Date: 2015-02-03 15:46:37 +0000
03-02-2015

This looks related to JDK-8065762?
08-12-2014