JDK-8080643 : javax/rmi/PortableRemoteObject/ConcurrentHashMapTest.java fails intermittently with BindException
  • Type: Bug
  • Component: other-libs
  • Sub-Component: corba
  • Affected Version: 9,10
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2015-05-19
  • Updated: 2021-03-08
  • Resolved: 2017-11-06
Related Reports
Relates :  
Relates :  
Description
javax/rmi/PortableRemoteObject/ConcurrentHashMapTest.java fails intermittently with:
java.net.BindException: Address already in use

----------System.out:(9/861)----------

Starting orbd on port 1050 
ConcurrentHashMapTest: Executing: [/scratch/aurora/sandbox_keepme/jdk/bin/orbd, -ORBInitialHost, localhost, -ORBInitialPort, 1050]

Starting RmiServer
ConcurrentHashMapTest: Executing: [/scratch/aurora/sandbox_keepme/jdk/bin/java, -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory, -Djava.naming.provider.url=iiop://localhost:1050, -cp, /scratch/aurora/sandbox_keepme/jtreg/lib/javatest.jar:/scratch/aurora/sandbox_keepme/jtreg/lib/jtreg.jar:/scratch/aurora/sandbox_keepme/results/run_244/testoutput/tier2/JTwork/classes/4/javax/rmi/PortableRemoteObject:/scratch/aurora/sandbox_keepme/testbase/jdk/test/javax/rmi/PortableRemoteObject:/scratch/aurora/sandbox_keepme/results/run_244/testoutput/tier2/JTwork/classes/4/lib/testlibrary, HelloServer]
HelloClient.main: enter ...
serverProcess exitCode:143
orbd exitCode:0
----------System.err:(822/64230)----------
May 11, 2015 11:32:36 PM com.sun.corba.se.impl.transport.SocketOrChannelAcceptorImpl initialize
SEVERE: "IOP00410216: (COMM_FAILURE) Unable to create listener thread on the specified port: 1050"
org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 216  completed: No
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2632)
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2651)
	at com.sun.corba.se.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:164)
	at com.sun.corba.se.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:217)
	at com.sun.corba.se.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:235)
	at com.sun.corba.se.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:122)
	at com.sun.corba.se.impl.oa.toa.TOAImpl.<init>(TOAImpl.java:96)
	at com.sun.corba.se.impl.oa.toa.TOAFactory.getTOA(TOAFactory.java:90)
	at com.sun.corba.se.impl.orb.ORBImpl.connect(ORBImpl.java:1626)
	at com.sun.corba.se.impl.activation.RepositoryImpl.<init>(RepositoryImpl.java:94)
	at com.sun.corba.se.impl.activation.ORBD.startActivationObjects(ORBD.java:274)
	at com.sun.corba.se.impl.activation.ORBD.run(ORBD.java:129)
	at com.sun.corba.se.impl.activation.ORBD.main(ORBD.java:343)
Caused by: java.net.BindException: Address already in use
	at sun.nio.ch.Net.bind0(Native Method)
	at sun.nio.ch.Net.bind(Net.java:433)
	at sun.nio.ch.Net.bind(Net.java:425)
	at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
	at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67)
	at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createServerSocket(DefaultSocketFactoryImpl.java:83)
	at com.sun.corba.se.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:161)
	... 10 more

Comments
Corba is going to be removed (JDK-8189188) from Java SE. There is no plan to address this.
06-11-2017

will need to add some diagnostics to determine if an existing orbd is running when this failure occurs could be a left over from naming tests. Explore dynamic orbd port selection or choose another port 5050.
31-07-2015

Similar failure occurred on mach5 linux-x64-openonly tier2 test run on 6/19/15. See attached jtr for test javax/rmi/PortableRemoteObject/ConcurrentHashMapTest.java Top of System.err from jtr: ----------System.err:(930/72664)---------- Jun 19, 2015 6:28:15 AM com.sun.corba.se.impl.transport.SocketOrChannelAcceptorImpl initialize SEVERE: "IOP00410216: (COMM_FAILURE) Unable to create listener thread on the specified port: 1049" org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 216 completed: No at com.sun.corba.se.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2632) at com.sun.corba.se.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:2651) at com.sun.corba.se.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:164) at com.sun.corba.se.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:217) at com.sun.corba.se.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:235) at com.sun.corba.se.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:122) at com.sun.corba.se.impl.oa.toa.TOAImpl.<init>(TOAImpl.java:96) at com.sun.corba.se.impl.oa.toa.TOAFactory.getTOA(TOAFactory.java:90) at com.sun.corba.se.impl.orb.ORBImpl.connect(ORBImpl.java:1626) at com.sun.corba.se.impl.activation.RepositoryImpl.<init>(RepositoryImpl.java:94) at com.sun.corba.se.impl.activation.ORBD.startActivationObjects(ORBD.java:274) at com.sun.corba.se.impl.activation.ORBD.run(ORBD.java:129) at com.sun.corba.se.impl.activation.ORBD.main(ORBD.java:343) Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:67) at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createServerSocket(DefaultSocketFactoryImpl.java:83) at com.sun.corba.se.impl.transport.SocketOrChannelAcceptorImpl.initialize(SocketOrChannelAcceptorImpl.java:161) ... 10 more
19-06-2015