Details
-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
Description
We run the IIOP test module in the following scenario:
- we created two EC2 nodes using AMI with name RHEL-7-JBEAP-7.4.0_HVM_GA-20210909-x86_64-0-Access2-GP2
- on a node external to AWS (e.g. a Fedora laptop) we run the IIOP AS test-suite module
The test log shows the following error (complete log in attached file test.log):
[INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running org.jboss.as.test.iiop.basic.BasicIIOPInvocationTestCase [ERROR] Tests run: 6, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 17.489 s <<< FAILURE! - in org.jboss.as.test.iiop.basic.BasicIIOPInvocationTestCase [ERROR] testHomeHandle(org.jboss.as.test.iiop.basic.BasicIIOPInvocationTestCase) Time elapsed: 1.437 s <<< ERROR! javax.ejb.EJBException: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:268) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:390) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:160) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422) ... Caused by: javax.naming.NamingException: WFLYNAM0062: Failed to lookup env/home [Root exception is java.lang.RuntimeException: javax.naming.NamingException: WFLYIIOP0031: Cannot connect to ORB [Root exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No]] at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:159) at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:83) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:207) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:193) at org.jboss.as.naming.NamingContext.lookup(NamingContext.java:189) at org.jboss.as.naming.deployment.ContextNames$BindInfo$1$1.getReference(ContextNames.java:322) ... 216 more Caused by: java.lang.RuntimeException: javax.naming.NamingException: WFLYIIOP0031: Cannot connect to ORB [Root exception is org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No] at org.jboss.as.ejb3.deployment.processors.EjbLookupInjectionSource$1.getReference(EjbLookupInjectionSource.java:99) at org.jboss.as.naming.ServiceBasedNamingStore.lookup(ServiceBasedNamingStore.java:143) ... 221 more
The EAP log of the node acting as client shows the following error (complete log in attached file node0.log):
2021-10-11 12:45:23,795 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-3) WFLYEJB0473: JNDI bindings for session bean named 'ClientEjb' in deployment unit 'deployment "client.jar"' are as follows: java:global/client/ClientEjb!org.jboss.as.test.iiop.basic.ClientEjb java:app/client/ClientEjb!org.jboss.as.test.iiop.basic.ClientEjb java:module/ClientEjb!org.jboss.as.test.iiop.basic.ClientEjb java:global/client/ClientEjb java:app/client/ClientEjb java:module/ClientEjb 2021-10-11 12:45:23,956 INFO [org.jboss.weld.Version] (MSC service thread 1-4) WELD-000900: 3.1.6 (redhat) 2021-10-11 12:45:24,015 INFO [org.jboss.as.arquillian] (MSC service thread 1-4) Arquillian deployment detected: ArquillianConfig[service=jboss.arquillian.config."client.jar",unit=client.jar,tests=[org.jboss.as.test.iiop.basic.BasicIIOPInvocationTestCase]] 2021-10-11 12:45:24,763 INFO [org.jboss.as.server] (management-handler-thread - 1) WFLYSRV0010: Deployed "client.jar" (runtime-name : "client.jar") 2021-10-11 12:45:25,406 WARNING [javax.enterprise.resource.corba._DEFAULT_.rpc.transport] (pool-12-thread-1) "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 54.236.40.220; port: 3628": org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2200) at com.sun.corba.se.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2221) at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:223) at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:236) ... at java.lang.Thread.run(Thread.java:748) Caused by: java.net.ConnectException: Connection refused at sun.nio.ch.Net.connect0(Native Method) at sun.nio.ch.Net.connect(Net.java:482) at sun.nio.ch.Net.connect(Net.java:474) at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:647) at java.nio.channels.SocketChannel.open(SocketChannel.java:189) at org.wildfly.iiop.openjdk.security.SocketFactoryBase.createSocket(SocketFactoryBase.java:84) at org.wildfly.iiop.openjdk.security.NoSSLSocketFactory.createSocket(NoSSLSocketFactory.java:59) at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:207) ... 240 more
In the EAP log of the node acting as client we see (complete log in attached file node1.log):
2021-10-11 12:45:09,761 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-1) WFLYEJB0473: JNDI bindings for session bean named 'IIOPBasicBean' in deployment unit 'deployment "server.jar"' are as follows: java:global/server/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicRemote java:app/server/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicRemote java:module/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicRemote java:jboss/exported/server/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicRemote ejb:/server/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicRemote java:global/server/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicHome java:app/server/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicHome java:module/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicHome java:jboss/exported/server/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicHome java:global/server/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicBean java:app/server/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicBean java:module/IIOPBasicBean!org.jboss.as.test.iiop.basic.IIOPBasicBean
Please note that the IP logged in the error on node0:
"IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 54.236.40.220; port: 3628": org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
is actually the external IP of node1:
- node0: private IP 172.31.4.194 - public IP 54.146.101.247 (acting as client)
- node1: private IP 172.31.10.163 - public IP 54.236.40.220 (acting as server)