JDK-8153474 : java/rmi/activation/rmidViaInheritedChannel/InheritedChannelNotServerSocket.java fails intermittently
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2016-04-04
  • Updated: 2017-02-06
  • Resolved: 2017-02-06
Related Reports
Duplicate :  
Description
java/rmi/activation/rmidViaInheritedChannel/InheritedChannelNotServerSocket.java fails intermittently with following error message:

Activation.main: warning: sun.rmi.activation.execPolicy system
        property unspecified and no ExecPermissions/ExecOptionPermissions
        granted; subsequent activation attempts may fail due to unsuccessful
	ExecPermission/ExecOptionPermission permission checks.  For
	documentation on how to configure rmid security, refer to:

        http://java.sun.com/j2se/1.4/docs/tooldocs/solaris/rmid.html
        http://java.sun.com/j2se/1.4/docs/tooldocs/win32/rmid.html

Activation.main: an exception occurred: java.rmi.server.ExportException: Port already in use: 60003; nested exception is: 
	java.net.BindException: Address already in use: NET_Bind
java.rmi.server.ExportException: Port already in use: 60003; nested exception is: 
	java.net.BindException: Address already in use: NET_Bind
	at sun.rmi.transport.tcp.TCPTransport.listen(java.rmi@9-ea/TCPTransport.java:336)
	at sun.rmi.transport.tcp.TCPTransport.exportObject(java.rmi@9-ea/TCPTransport.java:244)
	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:206)
	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:2111)
Caused by: java.net.BindException: Address already in use: NET_Bind
	at java.net.DualStackPlainSocketImpl.bind0(java.base@9-ea/Native Method)
	at java.net.DualStackPlainSocketImpl.socketBind(java.base@9-ea/DualStackPlainSocketImpl.java:106)
	at java.net.AbstractPlainSocketImpl.bind(java.base@9-ea/AbstractPlainSocketImpl.java:442)
	at java.net.PlainSocketImpl.bind(java.base@9-ea/PlainSocketImpl.java:198)
	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.proxy.RMIDirectSocketFactory.createServerSocket(java.rmi@9-ea/RMIDirectSocketFactory.java:45)
	at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(java.rmi@9-ea/RMIMasterSocketFactory.java:341)
	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:325)
	... 8 more
Comments
This is a dup with JDK-8170562
06-02-2017

RMID: looking up activation system, at 11:22:50.305948 RMID: after fail to looking up activation system, at 11:22:50.306361 RMID: looking up activation system, at 11:22:50.406529 RMID: after fail to looking up activation system, at 11:22:50.407101 notification received. Activation.main: warning: sun.rmi.activation.execPolicy system property unspecified and no ExecPermissions/ExecOptionPermissions granted; subsequent activation attempts may fail due to unsuccessful ExecPermission/ExecOptionPermission permission checks. To configure security, refer to the rmid documentation. Activation.main: an exception occurred: java.rmi.server.ExportException: Port already in use: 60003; nested exception is: java.net.BindException: Address already in use (Bind failed) java.rmi.server.ExportException: Port already in use: 60003; nested exception is: java.net.BindException: Address already in use (Bind failed) at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:340) at java.rmi/sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:248) at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411) at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147) at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:232) at java.rmi/sun.rmi.server.Activation$ActivatorImpl.<init>(Activation.java:428) at java.rmi/sun.rmi.server.Activation.init(Activation.java:250) at java.rmi/sun.rmi.server.Activation.startActivation(Activation.java:219) at java.rmi/sun.rmi.server.Activation.main(Activation.java:2118) Caused by: java.net.BindException: Address already in use (Bind failed) at java.base/java.net.PlainSocketImpl.socketBind(Native Method) at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:437) at java.base/java.net.ServerSocket.bind(ServerSocket.java:381) at java.base/java.net.ServerSocket.<init>(ServerSocket.java:243) at java.base/java.net.ServerSocket.<init>(ServerSocket.java:135) at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(TCPDirectSocketFactory.java:45) at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666) at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:329) ... 8 more RMID: looking up activation system, at 11:22:50.507324 RMID: after fail to looking up activation system, at 11:22:50.508126 TEST FAILED: Rmid process exited with status 1 after 608ms. RMID: shutdown() RMID: lookupSystem() returned null after 1ms. RMID: Destroying RMID process. RMID: Destroy successful after 5ms. RMID: Removing rmid's old log file. TestFailedException: TEST FAILED: Rmid process exited with status 1 after 608ms. at TestLibrary.bomb(TestLibrary.java:121) at TestLibrary.bomb(TestLibrary.java:124) at RMID.start(RMID.java:366) at RMID.start(RMID.java:325) at InheritedChannelNotServerSocket.main(InheritedChannelNotServerSocket.java:111) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:543) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110) at java.base/java.lang.Thread.run(Thread.java:844)
06-02-2017

I believe this intermittent failure is already covered by JDK-8019538.
06-04-2016