org.omg.CORBA.COMM_FAILURE

tip

First of all, check if your firewall is not blocking your connection. If it's not, you might need to explicitly set advertised.host.name to "advertised.host.name = yourIpAddress", this forces the hosts returned to be the resolvable IP address of your VM.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • [javaee6-codecamp] Build failed : Automatic-timer
    via by bambang teleinfocom,
  • jndi unknown source with jms
    via by 932533,
  • I am noticing 12 new failure in j2ee-jms tests. All the test are failing with "org.omg.CORBA.COMM_FAILURE" error. Attaching entire v3g_jms.output file. Ran "jmscluster-test1-AppClient" test manually , attaching the log file for the same. To see the problem, please follow the following example, adjust the glassfish3, jdk, ant location and your id in CVSROOT % setenv CVSROOT :pserver:cvsguest@sunsw.us.oracle.com:/m/jws % setenv SPS_HOME /space/test1/ws/appserver-sqe % setenv S1AS_HOME /space/test1/glassfish3/glassfish % setenv JAVA_HOME /space/test1/tool/jdk1.7.0-b148 % setenv ANT_HOME /space/test1/tool/apache-ant-1.7.1 % setenv PATH $JAVA_HOME/bin:$ANT_HOME/bin:$S1AS_HOME/bin:$PATH To check out test source % cvs co appserver-sqe/bootstrap.xml % cd appserver-sqe % ant -f bootstrap.xml co-core To run the test % ant start-domain % ant startDerby % ant v3g-jms-all or % cd $SPS_HOME/pe/jms/jmscluster % run the individual tests manually. The complete error is: jms-change-orb-port: [copy] Copying 1 file to /scratch/bhavya/312/antws/appserver-sqe/pe/jms/jmscluster/test1 [echo] Changing the ORB Port to : 1114 jms-run-appclient: [exec] WS HOME appserver-sqe [exec] Start the Test : jmscluster-test1-AppClient [exec] org.omg.CORBA.COMM_FAILURE: FINE: IOP00410001: Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 1114 vmcid: OMG minor code: 1 completed: No [exec] at sun.reflect.GeneratedConstructorAccessor31.newInstance(Unknown Source) [exec] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [exec] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [exec] at com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248) [exec] at com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95) [exec] at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387) [exec] at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access$400(WrapperGenerator.java:107) [exec] at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$2.invoke(WrapperGenerator.java:511) [exec] at com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99) [exec] at $Proxy34.connectFailure(Unknown Source) [exec] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:257) [exec] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:270) [exec] at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:129) [exec] at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:223) [exec] at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:228) [exec] at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:393) [exec] at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:130) [exec] at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69) [exec] at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNameService(SerialContext.java:1241) [exec] at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:411) [exec] at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:347) [exec] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:504) [exec] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455) [exec] at javax.naming.InitialContext.lookup(InitialContext.java:411) [exec] at com.sun.enterprise.naming.util.JndiNamingObjectFactory.create(JndiNamingObjectFactory.java:90) [exec] at com.sun.enterprise.container.common.impl.ComponentEnvManagerImpl$1.create(ComponentEnvManagerImpl.java:650) [exec] at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:776) [exec] at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:744) [exec] at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:172) [exec] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:498) [exec] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455) [exec] at javax.naming.InitialContext.lookup(InitialContext.java:411) [exec] at com.sun.s1peqe.jms.jmscluster.client.Client.run(Client.java:55) [exec] at com.sun.s1peqe.jms.jmscluster.client.Client.main(Client.java:40) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [exec] at java.lang.reflect.Method.invoke(Method.java:601) [exec] at org.glassfish.appclient.client.acc.AppClientContainer.launch(AppClientContainer.java:438) [exec] at org.glassfish.appclient.client.AppClientFacade.launch(AppClientFacade.java:182) [exec] at org.glassfish.appclient.client.AppClientGroupFacade.main(AppClientGroupFacade.java:65) [exec] Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused [exec] at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:339) [exec] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:242) [exec] ... 30 more [exec] Caused by: java.net.ConnectException: Connection refused [exec] at sun.nio.ch.Net.connect0(Native Method) [exec] at sun.nio.ch.Net.connect(Net.java:364) [exec] at sun.nio.ch.Net.connect(Net.java:356) [exec] at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:623) [exec] at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:110) [exec] at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:324) [exec] ... 31 more [exec] javax.naming.NamingException: Lookup failed for 'java:comp/env/jms/mq_q' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl} [Root exception is javax.naming.NamingException: Lookup failed for 'jms/mq_q' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, com.sun.enterprise.naming.logicalName=java:comp/env/jms/mq_q} [Root exception is javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, com.sun.enterprise.naming.logicalName=java:comp/env/jms/mq_q} [Root exception is org.omg.CORBA.COMM_FAILURE: FINE: IOP00410001: Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 1114 vmcid: OMG minor code: 1 completed: No]]] [exec] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518) [exec] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455) [exec] at javax.naming.InitialContext.lookup(InitialContext.java:411) [exec] at com.sun.s1peqe.jms.jmscluster.client.Client.run(Client.java:55) [exec] at com.sun.s1peqe.jms.jmscluster.client.Client.main(Client.java:40) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [exec] at java.lang.reflect.Method.invoke(Method.java:601) [exec] at org.glassfish.appclient.client.acc.AppClientContainer.launch(AppClientContainer.java:438) [exec] at org.glassfish.appclient.client.AppClientFacade.launch(AppClientFacade.java:182) [exec] at org.glassfish.appclient.client.AppClientGroupFacade.main(AppClientGroupFacade.java:65) [exec] Caused by: javax.naming.NamingException: Lookup failed for 'jms/mq_q' in SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, com.sun.enterprise.naming.logicalName=java:comp/env/jms/mq_q} [Root exception is javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, com.sun.enterprise.naming.logicalName=java:comp/env/jms/mq_q} [Root exception is org.omg.CORBA.COMM_FAILURE: FINE: IOP00410001: Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 1114 vmcid: OMG minor code: 1 completed: No]] [exec] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:518) [exec] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:455) [exec] at javax.naming.InitialContext.lookup(InitialContext.java:411) [exec] at com.sun.enterprise.naming.util.JndiNamingObjectFactory.create(JndiNamingObjectFactory.java:90) [exec] at com.sun.enterprise.container.common.impl.ComponentEnvManagerImpl$1.create(ComponentEnvManagerImpl.java:650) [exec] at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:776) [exec] at com.sun.enterprise.naming.impl.GlassfishNamingManagerImpl.lookup(GlassfishNamingManagerImpl.java:744) [exec] at com.sun.enterprise.naming.impl.JavaURLContext.lookup(JavaURLContext.java:172) [exec] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:498) [exec] ... 11 more [exec] Caused by: javax.naming.NamingException: Unable to acquire SerialContextProvider for SerialContext[myEnv={java.naming.factory.initial=com.sun.enterprise.naming.impl.SerialInitContextFactory, java.naming.factory.url.pkgs=com.sun.enterprise.naming, java.naming.factory.state=com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl, com.sun.enterprise.naming.logicalName=java:comp/env/jms/mq_q} [Root exception is org.omg.CORBA.COMM_FAILURE: FINE: IOP00410001: Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 1114 vmcid: OMG minor code: 1 completed: No] [exec] at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:352) [exec] at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:504) [exec] ... 19 more [exec] Caused by: org.omg.CORBA.COMM_FAILURE: FINE: IOP00410001: Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 1114 vmcid: OMG minor code: 1 completed: No [exec] at sun.reflect.GeneratedConstructorAccessor31.newInstance(Unknown Source) [exec] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) [exec] at java.lang.reflect.Constructor.newInstance(Constructor.java:525) [exec] at com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:248) [exec] at com.sun.corba.ee.spi.orbutil.logex.corba.CorbaExtension.makeException(CorbaExtension.java:95) [exec] at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.handleFullLogging(WrapperGenerator.java:387) [exec] at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator.access$400(WrapperGenerator.java:107) [exec] at com.sun.corba.ee.spi.orbutil.logex.WrapperGenerator$2.invoke(WrapperGenerator.java:511) [exec] at com.sun.corba.ee.spi.orbutil.proxy.CompositeInvocationHandlerImpl.invoke(CompositeInvocationHandlerImpl.java:99) [exec] at $Proxy34.connectFailure(Unknown Source) [exec] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:257) [exec] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:270) [exec] at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:129) [exec] at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:223) [exec] at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:228) [exec] at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:393) [exec] at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:130) [exec] at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69) [exec] at com.sun.enterprise.naming.impl.SerialContext$ProviderCacheKey.getNameService(SerialContext.java:1241) [exec] at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:411) [exec] at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:347) [exec] ... 20 more [exec] jmscluster-test1-AppClient setup failed: unexpected NamingException [exec] Generating report at /scratch/bhavya/312/antws/appserver-sqe/test_results.xml [exec] [exec] [exec] ----------------------------------------- [exec] - jmscluster-test1-AppClient: FAIL - [exec] ----------------------------------------- [exec] Total PASS: 0 [exec] Total FAIL: 1 [exec] Total DNR: 0 [exec] ----------------------------------------- [exec] Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused [exec] at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:339) [exec] at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:242) [exec] ... 30 more [exec] Caused by: java.net.ConnectException: Connection refused [exec] at sun.nio.ch.Net.connect0(Native Method) [exec] at sun.nio.ch.Net.connect(Net.java:364) [exec] at sun.nio.ch.Net.connect(Net.java:356) [exec] at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:623) [exec] at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:110) [exec] at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:324) [exec] ... 31 more
    via by hsbhavya,
    • org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:3431) at com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:3452) at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:256) at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:269) at com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:125) at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:188) at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:186) at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:352) at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112) at org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69) at com.sun.enterprise.naming.impl.SerialContext.narrowProvider(SerialContext.java:355) at com.sun.enterprise.naming.impl.SerialContext.getRemoteProvider(SerialContext.java:327) at com.sun.enterprise.naming.impl.SerialContext.getProvider(SerialContext.java:271) at com.sun.enterprise.naming.impl.SerialContext.lookup(SerialContext.java:430) at javax.naming.InitialContext.lookup(InitialContext.java:392) at com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getConnectorConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:827) at com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getConnectorConnectionPool(ConnectorConnectionPoolAdminServiceImpl.java:802) at com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getPoolType(ConnectorConnectionPoolAdminServiceImpl.java:1081) at com.sun.enterprise.connectors.ConnectorRuntime.getPoolType(ConnectorRuntime.java:914) at com.sun.enterprise.resource.allocator.AbstractConnectorAllocator.createResourceHandle(AbstractConnectorAllocator.java:203) at com.sun.enterprise.resource.allocator.ConnectorAllocator.createResource(ConnectorAllocator.java:144) at com.sun.enterprise.resource.pool.ConnectionPool.createSingleResource(ConnectionPool.java:841) at com.sun.enterprise.resource.pool.ConnectionPool.createResource(ConnectionPool.java:1110) at com.sun.enterprise.resource.pool.datastructure.ListDataStructure.addResource(ListDataStructure.java:121) at com.sun.enterprise.resource.pool.ConnectionPool.addResource(ConnectionPool.java:277) at com.sun.enterprise.resource.pool.ConnectionPool.createResourceAndAddToPool(ConnectionPool.java:1404) at com.sun.enterprise.resource.pool.ConnectionPool.createResources(ConnectionPool.java:869) at com.sun.enterprise.resource.pool.ConnectionPool.initPool(ConnectionPool.java:229) at com.sun.enterprise.resource.pool.ConnectionPool.internalGetResource(ConnectionPool.java:455) at com.sun.enterprise.resource.pool.ConnectionPool.getResource(ConnectionPool.java:369) at com.sun.enterprise.resource.pool.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:226) at com.sun.enterprise.resource.pool.PoolManagerImpl.getResource(PoolManagerImpl.java:150) at com.sun.enterprise.connectors.ConnectionManagerImpl.getResource(ConnectionManagerImpl.java:321) at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:290) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:182) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:159) at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:154) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter._allocateConnection(ConnectionFactoryAdapter.java:179) at com.sun.messaging.jms.ra.ConnectionFactoryAdapter.createConnection(ConnectionFactoryAdapter.java:166) at rmiServer.RmiServer.jmsTest(RmiServer.java:180) at rmiServer.RmiServer.<init>(RmiServer.java:89) at rmiServer.RmiServer.main(RmiServer.java:96) Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection refused: connect at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:340) at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:239) ... 39 more Caused by: java.net.ConnectException: Connection refused: connect at sun.nio.ch.Net.connect(Native Method) at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507) at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:106) at org.glassfish.enterprise.iiop.impl.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:325) ... 40 more

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    1 more bugmates