JDK-8145417 : JInfoSanityTest failed with Error attaching to remote server: java.rmi.ConnectException: Connection refused
  • Type: Bug
  • Component: core-svc
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-12-15
  • Updated: 2015-12-24
  • Resolved: 2015-12-18
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 b99Fixed
Related Reports
Relates :  
Description
sun/tools/jinfo/JInfoSanityTest.java
sun/tools/jps/TestJpsSanity.java

Attaching to remote server med@Oja781nh2ev7vcvbajdg-Sda1-C, please wait...
Error attaching to remote server: java.rmi.ConnectException: Connection refused to host: Oja781nh2ev7vcvbajdg-Sda1-C; nested exception is: 
	java.net.ConnectException: Connection timed out: connect
sun.jvm.hotspot.debugger.DebuggerException: java.rmi.ConnectException: Connection refused to host: Oja781nh2ev7vcvbajdg-Sda1-C; nested exception is: 
	java.net.ConnectException: Connection timed out: connect

Comments
The test checks for 'Unknown host' in stderr. In some situation this line may not appear and it is necessary to make the error matching more robust (eg. checking also for 'Connection refused to host:' message).
16-12-2015

ILW = M (reduced coverage) L (very intermittent) H (no workaround) = P4
16-12-2015