JDK-8136431 : java/rmi/activation/Activatable/elucidateNoSuchMethod/ElucidateNoSuchMethod.java failed intermittently with "Port already in use"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.rmi
  • Affected Version: 8,9
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2015-09-13
  • Updated: 2016-11-21
  • Resolved: 2016-11-21
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
9Resolved
Related Reports
Duplicate :  
Duplicate :  
Description
This failure was observed in 9 b79 same binaries run.
OS: OEL 6 6 bit
It just happened once in all b79 run

Please see the following test output:
----------System.out:(3/31)----------

Regression test for 4128620 

----------System.err:(66/5007)----------
RMID: Starting rmid on port 48814.
JAVAVM: command = [/scratch/aurora/sandbox_keepme/jdk/bin/java, -ea, -esa, -Xmx512m, -Djava.security.policy=/scratch/aurora/sandbox_keepme/testbase/jdk/test/java/rmi/activation/Activatable/elucidateNoSuchMethod/rmid.security.policy, -Dsun.rmi.server.activation.debugExec=true, -Dtest.src=/scratch/aurora/sandbox_keepme/testbase/jdk/test/java/rmi/activation/Activatable/elucidateNoSuchMethod, -Dtest.classes=/scratch/aurora/sandbox_keepme/results/run_525/testoutput/tier3/JTwork/classes/8/java/rmi/activation/Activatable/elucidateNoSuchMethod, -Djava.rmi.server.logLevel=v, -Dsun.rmi.activation.execTimeout=60000, sun.rmi.server.Activation, -log, /scratch/aurora/sandbox_keepme/results/run_525/testoutput/tier3/JTwork/scratch/2/./log, -port, 48814, -C-Dtest.src=/scratch/aurora/sandbox_keepme/testbase/jdk/test/java/rmi/activation/Activatable/elucidateNoSuchMethod, -C-Dtest.classes=/scratch/aurora/sandbox_keepme/results/run_525/testoutput/tier3/JTwork/classes/8/java/rmi/activation/Activatable/elucidateNoSuchMethod, -C-ea, -C-esa, -C-Xmx512m, -C-Djava.rmi.server.useCodebaseOnly=false]
Activation.main: an exception occurred: java.rmi.server.ExportException: Port already in use: 48814; nested exception is: 
	java.net.BindException: Address already in use
java.rmi.server.ExportException: Port already in use: 48814; nested exception is: 
	java.net.BindException: Address already in use
	at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:336)
	at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:244)
	at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
	at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
	at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:206)
	at sun.rmi.server.Activation$ActivatorImpl.<init>(Activation.java:428)
	at sun.rmi.server.Activation.init(Activation.java:250)
	at sun.rmi.server.Activation.startActivation(Activation.java:219)
	at sun.rmi.server.Activation.main(Activation.java:2111)
Caused by: java.net.BindException: Address already in use
	at java.net.PlainSocketImpl.socketBind(Native Method)
	at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
	at java.net.ServerSocket.bind(ServerSocket.java:376)
	at java.net.ServerSocket.<init>(ServerSocket.java:238)
	at java.net.ServerSocket.<init>(ServerSocket.java:130)
	at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:45)
	at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:341)
	at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666)
	at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:325)
	... 8 more
TEST FAILED: Rmid process exited with status 1 after 372ms.
TEST FAILED: 
Test failed with: TEST FAILED: Rmid process exited with status 1 after 372ms.
TestFailedException: TEST FAILED: Rmid process exited with status 1 after 372ms.
	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 ElucidateNoSuchMethod.main(ElucidateNoSuchMethod.java:95)
	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:504)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:746)
RMID: shutdown()
RMID: lookupSystem() returned null after 3ms.
RMID: Destroying RMID process.
RMID: Destroy successful after 4ms.
RMID: Removing rmid's old log file.
TestFailedException: TEST FAILED: ; nested exception is: 
	TestFailedException: TEST FAILED: Rmid process exited with status 1 after 372ms.
TestFailedException: TEST FAILED: Rmid process exited with status 1 after 372ms.
	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 ElucidateNoSuchMethod.main(ElucidateNoSuchMethod.java:95)
	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:504)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:92)
	at java.lang.Thread.run(Thread.java:746)


Comments
RULE "java/rmi/activation/Activatable/elucidateNoSuchMethod/ElucidateNoSuchMethod.java" Exception TestFailedException: TEST FAILED: ; nested exception is: java.lang.NullPointerException RULE "java/rmi/activation/Activatable/elucidateNoSuchMethod/ElucidateNoSuchMethod.java" Exception java.lang.NullPointerException
16-11-2016