JDK-8161666 : javax/rmi/PortableRemoteObject/ConcurrentHashMapTest.java failed because of java.net.ConnectException: Connection refused
  • Type: Bug
  • Component: other-libs
  • Sub-Component: corba
  • Affected Version: 9,10
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • Submitted: 2016-07-19
  • Updated: 2018-02-01
  • Resolved: 2018-02-01
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
----------System.out:(12/1233)----------

Starting orbd with NS port 1050 
ConcurrentHashMapTest: Executing: [/scratch/jenkins/workspace/9-dev/jdk/bin/orbd, -J-d64, -ORBInitialHost, localhost, -ORBInitialPort, 1050]

Starting RmiServer
ConcurrentHashMapTest: Executing: [/scratch/jenkins/workspace/9-dev/jdk/bin/java, -addmods, java.corba, -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory, -Djava.naming.provider.url=iiop://localhost:1050, -cp, /scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/classes/11/javax/rmi/PortableRemoteObject:/scratch/jenkins/workspace/9-dev/jdk/test/javax/rmi/PortableRemoteObject:/scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/classes/11/lib/testlibrary:/scratch/jenkins/workspace/9-dev/jdk/test/lib/testlibrary:/scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/javatest.jar:/scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/jtreg.jar, HelloServer]
HelloClient.main: enter ...
HelloClient.main: HelloService lookup ...
HelloClient: Obtained a ref. to Hello server.
HelloClient: Invoking on remote server with ConcurrentHashMap parameter
serverProcess exitCode:9
orbd exitCode:9
----------System.err:(156/13403)----------
Jul 18, 2016 6:27:10 PM com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 10.245.3.50; port: 53326"
org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(java.corba@9-ea/ORBUtilSystemException.java:2200)
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(java.corba@9-ea/ORBUtilSystemException.java:2221)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:223)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:236)
	at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(java.corba@9-ea/SocketOrChannelContactInfoImpl.java:119)
	at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(java.corba@9-ea/CorbaClientRequestDispatcherImpl.java:187)
	at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(java.corba@9-ea/CorbaClientDelegateImpl.java:137)
	at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.is_a(java.corba@9-ea/CorbaClientDelegateImpl.java:229)
	at org.omg.CORBA.portable.ObjectImpl._is_a(java.corba@9-ea/ObjectImpl.java:130)
	at org.omg.CosNaming.NamingContextHelper.narrow(java.corba@9-ea/NamingContextHelper.java:69)
	at com.sun.jndi.cosnaming.CNCtx.callResolve(java.corba@9-ea/CNCtx.java:489)
	at com.sun.jndi.cosnaming.CNCtx.lookup(java.corba@9-ea/CNCtx.java:539)
	at com.sun.jndi.cosnaming.CNCtx.lookup(java.corba@9-ea/CNCtx.java:517)
	at javax.naming.InitialContext.lookup(java.naming@9-ea/InitialContext.java:409)
	at HelloClient.executeRmiClientCall(HelloClient.java:59)
	at ConcurrentHashMapTest.executeRmiIiopClient(ConcurrentHashMapTest.java:139)
	at ConcurrentHashMapTest.startTestComponents(ConcurrentHashMapTest.java:71)
	at ConcurrentHashMapTest.main(ConcurrentHashMapTest.java:61)
	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)
Caused by: java.net.ConnectException: Connection refused
	at sun.nio.ch.Net.connect0(java.base@9-ea/Native Method)
	at sun.nio.ch.Net.connect(java.base@9-ea/Net.java:454)
	at sun.nio.ch.Net.connect(java.base@9-ea/Net.java:446)
	at sun.nio.ch.SocketChannelImpl.connect(java.base@9-ea/SocketChannelImpl.java:650)
	at java.nio.channels.SocketChannel.open(java.base@9-ea/SocketChannel.java:189)
	at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(java.corba@9-ea/DefaultSocketFactoryImpl.java:95)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:207)
	... 21 more

Jul 18, 2016 6:27:11 PM com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 10.245.3.50; port: 53326"
org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(java.corba@9-ea/ORBUtilSystemException.java:2200)
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(java.corba@9-ea/ORBUtilSystemException.java:2221)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:223)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:236)
	at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(java.corba@9-ea/SocketOrChannelContactInfoImpl.java:119)
	at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(java.corba@9-ea/CorbaClientRequestDispatcherImpl.java:187)
	at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(java.corba@9-ea/CorbaClientDelegateImpl.java:137)
	at org.omg.CORBA.portable.ObjectImpl._request(java.corba@9-ea/ObjectImpl.java:449)
	at _HelloInterface_Stub.sayHelloWithHashMap(_HelloInterface_Stub.java:160)
	at HelloClient.executeRmiClientCall(HelloClient.java:68)
	at ConcurrentHashMapTest.executeRmiIiopClient(ConcurrentHashMapTest.java:139)
	at ConcurrentHashMapTest.startTestComponents(ConcurrentHashMapTest.java:71)
	at ConcurrentHashMapTest.main(ConcurrentHashMapTest.java:61)
	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)
Caused by: java.net.ConnectException: Connection refused
	at sun.nio.ch.Net.connect0(java.base@9-ea/Native Method)
	at sun.nio.ch.Net.connect(java.base@9-ea/Net.java:454)
	at sun.nio.ch.Net.connect(java.base@9-ea/Net.java:446)
	at sun.nio.ch.SocketChannelImpl.connect(java.base@9-ea/SocketChannelImpl.java:650)
	at java.nio.channels.SocketChannel.open(java.base@9-ea/SocketChannel.java:189)
	at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(java.corba@9-ea/DefaultSocketFactoryImpl.java:95)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:207)
	... 16 more

Exception java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is: 
	org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: NoCaught
java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is: 
	org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
	at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(java.corba@9-ea/Util.java:220)
	at javax.rmi.CORBA.Util.mapSystemException(java.corba@9-ea/Util.java:80)
	at _HelloInterface_Stub.sayHelloWithHashMap(_HelloInterface_Stub.java:174)
	at HelloClient.executeRmiClientCall(HelloClient.java:68)
	at ConcurrentHashMapTest.executeRmiIiopClient(ConcurrentHashMapTest.java:139)
	at ConcurrentHashMapTest.startTestComponents(ConcurrentHashMapTest.java:71)
	at ConcurrentHashMapTest.main(ConcurrentHashMapTest.java:61)
	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)
Caused by: org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(java.corba@9-ea/ORBUtilSystemException.java:2200)
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(java.corba@9-ea/ORBUtilSystemException.java:2221)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:223)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:236)
	at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(java.corba@9-ea/SocketOrChannelContactInfoImpl.java:119)
	at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(java.corba@9-ea/CorbaClientRequestDispatcherImpl.java:187)
	at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(java.corba@9-ea/CorbaClientDelegateImpl.java:137)
	at org.omg.CORBA.portable.ObjectImpl._request(java.corba@9-ea/ObjectImpl.java:449)
	at _HelloInterface_Stub.sayHelloWithHashMap(_HelloInterface_Stub.java:160)
	... 10 more
Caused by: java.net.ConnectException: Connection refused
	at sun.nio.ch.Net.connect0(java.base@9-ea/Native Method)
	at sun.nio.ch.Net.connect(java.base@9-ea/Net.java:454)
	at sun.nio.ch.Net.connect(java.base@9-ea/Net.java:446)
	at sun.nio.ch.SocketChannelImpl.connect(java.base@9-ea/SocketChannelImpl.java:650)
	at java.nio.channels.SocketChannel.open(java.base@9-ea/SocketChannel.java:189)
	at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(java.corba@9-ea/DefaultSocketFactoryImpl.java:95)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:207)
	... 16 more
java.lang.RuntimeException: java.lang.RuntimeException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is: 
	org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
	at ConcurrentHashMapTest.stopTestComponents(ConcurrentHashMapTest.java:78)
	at ConcurrentHashMapTest.main(ConcurrentHashMapTest.java:62)
	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)
Caused by: java.lang.RuntimeException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is: 
	org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
	at HelloClient.executeRmiClientCall(HelloClient.java:88)
	at ConcurrentHashMapTest.executeRmiIiopClient(ConcurrentHashMapTest.java:139)
	at ConcurrentHashMapTest.startTestComponents(ConcurrentHashMapTest.java:71)
	at ConcurrentHashMapTest.main(ConcurrentHashMapTest.java:61)
	... 6 more
Caused by: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is: 
	org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
	at com.sun.corba.se.impl.javax.rmi.CORBA.Util.mapSystemException(java.corba@9-ea/Util.java:220)
	at javax.rmi.CORBA.Util.mapSystemException(java.corba@9-ea/Util.java:80)
	at _HelloInterface_Stub.sayHelloWithHashMap(_HelloInterface_Stub.java:174)
	at HelloClient.executeRmiClientCall(HelloClient.java:68)
	... 9 more
Caused by: org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(java.corba@9-ea/ORBUtilSystemException.java:2200)
	at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(java.corba@9-ea/ORBUtilSystemException.java:2221)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:223)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:236)
	at com.sun.corba.se.impl.transport.SocketOrChannelContactInfoImpl.createConnection(java.corba@9-ea/SocketOrChannelContactInfoImpl.java:119)
	at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(java.corba@9-ea/CorbaClientRequestDispatcherImpl.java:187)
	at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.request(java.corba@9-ea/CorbaClientDelegateImpl.java:137)
	at org.omg.CORBA.portable.ObjectImpl._request(java.corba@9-ea/ObjectImpl.java:449)
	at _HelloInterface_Stub.sayHelloWithHashMap(_HelloInterface_Stub.java:160)
	... 10 more
Caused by: java.net.ConnectException: Connection refused
	at sun.nio.ch.Net.connect0(java.base@9-ea/Native Method)
	at sun.nio.ch.Net.connect(java.base@9-ea/Net.java:454)
	at sun.nio.ch.Net.connect(java.base@9-ea/Net.java:446)
	at sun.nio.ch.SocketChannelImpl.connect(java.base@9-ea/SocketChannelImpl.java:650)
	at java.nio.channels.SocketChannel.open(java.base@9-ea/SocketChannel.java:189)
	at com.sun.corba.se.impl.transport.DefaultSocketFactoryImpl.createSocket(java.corba@9-ea/DefaultSocketFactoryImpl.java:95)
	at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(java.corba@9-ea/SocketOrChannelConnectionImpl.java:207)
	... 16 more

JavaTest Message: Test threw exception: java.lang.RuntimeException: java.lang.RuntimeException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is: 
	org.omg.CORBA.COMM_FAILURE:   vmcid: SUN  minor code: 201  completed: No
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
----------rerun:(29/2738)*----------
HOME=/home/mach5-on \\
LC_ALL=en_US.UTF-8 \\
PATH=/bin:/usr/bin \\
TZ=localtime \\
buildid=BUILD_ID \\
CLASSPATH=/scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/classes/11/javax/rmi/PortableRemoteObject:/scratch/jenkins/workspace/9-dev/jdk/test/javax/rmi/PortableRemoteObject:/scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/classes/11/lib/testlibrary:/scratch/jenkins/workspace/9-dev/jdk/test/lib/testlibrary:/scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/javatest.jar:/scratch/jenkins/workspace/mach5data/unpacked/jpg/infra/builddeps/jtreg-4.2/1.2/jtreg/lib/jtreg.jar \\
    /scratch/jenkins/workspace/9-dev/jdk/bin/java \\
        -Dtest.class.path.prefix=/scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/classes/11/javax/rmi/PortableRemoteObject:/scratch/jenkins/workspace/9-dev/jdk/test/javax/rmi/PortableRemoteObject:/scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/classes/11/lib/testlibrary \\
        -Dtest.src=/scratch/jenkins/workspace/9-dev/jdk/test/javax/rmi/PortableRemoteObject \\
        -Dtest.src.path=/scratch/jenkins/workspace/9-dev/jdk/test/javax/rmi/PortableRemoteObject:/scratch/jenkins/workspace/9-dev/jdk/test/lib/testlibrary \\
        -Dtest.classes=/scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/classes/11/javax/rmi/PortableRemoteObject \\
        -Dtest.class.path=/scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/classes/11/javax/rmi/PortableRemoteObject:/scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/classes/11/lib/testlibrary \\
        -Dtest.vm.opts='-ea -esa -Xmx512m' \\
        -Dtest.tool.vm.opts='-J-ea -J-esa -J-Xmx512m' \\
        -Dtest.compiler.opts= \\
        -Dtest.java.opts= \\
        -Dtest.jdk=/scratch/jenkins/workspace/9-dev/jdk \\
        -Dcompile.jdk=/scratch/jenkins/workspace/9-dev/jdk \\
        -Dtest.timeout.factor=6.0 \\
        -Dtest.modules=java.rmi \\
        -Djava.security.policy==/scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/scratch/5/jtreg.test.policy_new \\
        -Djava.security.manager=java.lang.SecurityManager \\
        -ea \\
        -esa \\
        -Xmx512m \\
        -addmods java.corba \\
        -Djava.naming.provider.url=iiop://localhost:1050 \\
        -Djava.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory \\
        com.sun.javatest.regtest.agent.MainWrapper /scratch/jenkins/workspace/9-dev/testresults/solaris-sparcv9/tier2/JTwork/jdk_test/javax/rmi/PortableRemoteObject/ConcurrentHashMapTest.d/main.1.jta
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: java.rmi.MarshalException: CORBA COMM_FAILURE 1398079689 No; nested exception is: org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No

Comments
The CORBA and Java EE modules will be removed via JDK-8190378
01-02-2018