JDK-8162910 : java/rmi/activation/Activatable/shutdownGracefully/ShutdownGracefully.java failed with BindException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2016-08-02
  • Updated: 2016-12-02
  • Resolved: 2016-12-02
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.
Other
tbd_minorResolved
Related Reports
Duplicate :  
Description
Test java/rmi/activation/Activatable/shutdownGracefully/ShutdownGracefully.java failed in Mach5 with following error message:

Activation.main: an exception occurred: java.rmi.server.ExportException: Port already in use: 54970; nested exception is: 
	java.net.BindException: Address already in use
java.rmi.server.ExportException: Port already in use: 54970; nested exception is: 
	java.net.BindException: Address already in use
	at sun.rmi.transport.tcp.TCPTransport.listen(java.rmi@9-ea/TCPTransport.java:335)
	at sun.rmi.transport.tcp.TCPTransport.exportObject(java.rmi@9-ea/TCPTransport.java:243)
	at sun.rmi.transport.tcp.TCPEndpoint.exportObject(java.rmi@9-ea/TCPEndpoint.java:411)
	at sun.rmi.transport.LiveRef.exportObject(java.rmi@9-ea/LiveRef.java:147)
	at sun.rmi.server.UnicastServerRef.exportObject(java.rmi@9-ea/UnicastServerRef.java:209)
	at sun.rmi.server.Activation$ActivatorImpl.<init>(java.rmi@9-ea/Activation.java:428)
	at sun.rmi.server.Activation.init(java.rmi@9-ea/Activation.java:250)
	at sun.rmi.server.Activation.startActivation(java.rmi@9-ea/Activation.java:219)
	at sun.rmi.server.Activation.main(java.rmi@9-ea/Activation.java:2113)
Caused by: java.net.BindException: Address already in use
	at java.net.PlainSocketImpl.socketBind(java.base@9-ea/Native Method)
	at java.net.AbstractPlainSocketImpl.bind(java.base@9-ea/AbstractPlainSocketImpl.java:437)
	at java.net.ServerSocket.bind(java.base@9-ea/ServerSocket.java:376)
	at java.net.ServerSocket.<init>(java.base@9-ea/ServerSocket.java:238)
	at java.net.ServerSocket.<init>(java.base@9-ea/ServerSocket.java:130)
	at sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(java.rmi@9-ea/TCPDirectSocketFactory.java:45)
	at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(java.rmi@9-ea/TCPEndpoint.java:666)
	at sun.rmi.transport.tcp.TCPTransport.listen(java.rmi@9-ea/TCPTransport.java:324)
	... 8 more
TEST FAILED: Rmid process exited with status 1 after 631ms.
Exception thrown:TestFailedException: TEST FAILED: Rmid process exited with status 1 after 631ms.
RMID: shutdown()
RMID: lookupSystem() returned null after 1ms.
RMID: Destroying RMID process.
RMID: Destroy successful after 7ms.
TEST FAILED: 
Test failed with: TEST FAILED: Rmid process exited with status 1 after 631ms.
TestFailedException: TEST FAILED: Rmid process exited with status 1 after 631ms.
	at TestLibrary.bomb(TestLibrary.java:121)
	at TestLibrary.bomb(TestLibrary.java:124)
	at RMID.start(RMID.java:274)
	at RMID.start(RMID.java:237)
	at ShutdownGracefully.main(ShutdownGracefully.java:91)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-ea/Thread.java:843)
TestFailedException: TEST FAILED: ; nested exception is: 
	TestFailedException: TEST FAILED: Rmid process exited with status 1 after 631ms.
TestFailedException: TEST FAILED: Rmid process exited with status 1 after 631ms.
	at TestLibrary.bomb(TestLibrary.java:121)
	at TestLibrary.bomb(TestLibrary.java:124)
	at RMID.start(RMID.java:274)
	at RMID.start(RMID.java:237)
	at ShutdownGracefully.main(ShutdownGracefully.java:91)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:533)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

JavaTest Message: Test threw exception: TestFailedException: TEST FAILED: ; nested exception is: 
	TestFailedException: TEST FAILED: Rmid process exited with status 1 after 631ms.
JavaTest Message: shutting down test

Comments
this should have been fixed by JDK-8085192.
02-12-2016