JDK-8169040 : closed/java/rmi/activation/ActivationGroupDesc/useExecPolicy/UseExecPolicy.java failed due to "Address already in use"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-11-02
  • Updated: 2016-11-21
  • Resolved: 2016-11-21
Related Reports
Relates :  
Description
Test: closed/java/rmi/activation/ActivationGroupDesc/useExecPolicy/UseExecPolicy.java

Error Messages: 
RMID: Started rmid on port 60285.
Activation.main: an exception occurred: java.rmi.server.ExportException: Port already in use: 60285; nested exception is: 
	java.net.BindException: Address already in use (Bind failed)
java.rmi.server.ExportException: Port already in use: 60285; nested exception is: 
	java.net.BindException: Address already in use (Bind failed)
	at sun.rmi.transport.tcp.TCPTransport.listen(java.rmi@9-internal/TCPTransport.java:335)
	at sun.rmi.transport.tcp.TCPTransport.exportObject(java.rmi@9-internal/TCPTransport.java:243)
	at sun.rmi.transport.tcp.TCPEndpoint.exportObject(java.rmi@9-internal/TCPEndpoint.java:411)
	at sun.rmi.transport.LiveRef.exportObject(java.rmi@9-internal/LiveRef.java:147)
	at sun.rmi.server.UnicastServerRef.exportObject(java.rmi@9-internal/UnicastServerRef.java:232)
	at sun.rmi.server.Activation$ActivatorImpl.<init>(java.rmi@9-internal/Activation.java:428)
	at sun.rmi.server.Activation.init(java.rmi@9-internal/Activation.java:250)
	at sun.rmi.server.Activation.startActivation(java.rmi@9-internal/Activation.java:219)
	at sun.rmi.server.Activation.main(java.rmi@9-internal/Activation.java:2118)
Caused by: java.net.BindException: Address already in use (Bind failed)
	at java.net.PlainSocketImpl.socketBind(java.base@9-internal/Native Method)
	at java.net.AbstractPlainSocketImpl.bind(java.base@9-internal/AbstractPlainSocketImpl.java:437)
	at java.net.ServerSocket.bind(java.base@9-internal/ServerSocket.java:381)
	at java.net.ServerSocket.<init>(java.base@9-internal/ServerSocket.java:243)
	at java.net.ServerSocket.<init>(java.base@9-internal/ServerSocket.java:135)
	at sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(java.rmi@9-internal/TCPDirectSocketFactory.java:45)
	at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(java.rmi@9-internal/TCPEndpoint.java:666)
	at sun.rmi.transport.tcp.TCPTransport.listen(java.rmi@9-internal/TCPTransport.java:324)
	... 8 more
TEST FAILED: Rmid process exited with status 1 after 432ms.

See attached file for full log.
Comments
There are several bugs created for test failures under closed/**/rmi/**, they are indeed duplicated issue, they will be tracked together by JDK-8166762.
21-11-2016