The test cases
org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase (Default-TCP)
org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase (Default-UDP)
org.jboss.test.testbeancluster.test.SingleRetryInterceptorUnitTestCase (Default-TCP)
org.jboss.test.testbeancluster.test.SingleRetryInterceptorUnitTestCase (Default-UDP)
are failing on the test testRetryWithJnpAndAustoDiscovery with a common error:
Here is the output from the client side test.log file:
2007-04-28 14:11:33,218 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] +++ Enter testRetryWithJnpAndAutoDiscovery()
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] Created custom jndi.properties at retry-int-test\jndi.properties – DISCOVERY_GROUP is 239.11.12.13
2007-04-28 14:11:33,234 INFO [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] jbosstest.cluster.node0 = 10.16.32.161
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] JNDI Url for node=1 is:jnp://10.16.32.161:1099
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] HA-JNDI Url for node=1 is:jnp://10.16.32.161:1100
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] Http Url for node=1 is:http://10.16.32.161:8080
2007-04-28 14:11:33,234 INFO [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] jbosstest.cluster.node1 = 10.16.32.162
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] JNDI Url for node=2 is:jnp://10.16.32.162:1099
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] HA-JNDI Url for node=2 is:jnp://10.16.32.162:1100
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] Http Url for node=2 is:http://10.16.32.162:8080
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] test-retry.ear is not a valid URL, no protocol: test-retry.ear
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] Testing file: C:\JBPAPP\JBPAPP-04-28-07-rc1-x86_64-BEA\src\testsuite\output\lib/test-retry.ear
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] C:\JBPAPP\JBPAPP-04-28-07-rc1-x86_64-BEA\src\testsuite\output\lib\test-retry.ear is a valid file
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] Deploying test-retry.ear, url=file:/C:/JBPAPP/JBPAPP-04-28-07-rc1-x86_64-BEA/src/testsuite/output/lib/test-retry.ear to org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy@2224039
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] Invoking jboss.system:service=MainDeployer method=deploy
2007-04-28 14:11:33,234 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] args=file:/C:/JBPAPP/JBPAPP-04-28-07-rc1-x86_64-BEA/src/testsuite/output/lib/test-retry.ear
2007-04-28 14:11:33,703 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] Deployed test-retry.ear on server0
2007-04-28 14:11:35,703 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] Looking up the home nextgen.StatefulSession_Retry...
2007-04-28 14:11:35,703 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] ok
2007-04-28 14:11:35,703 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] Calling create on StatefulSessionHome_Retry...
2007-04-28 14:11:35,718 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase] ok
2007-04-28 14:11:35,718 DEBUG [org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase]
2007-04-28 14:11:37,687 DEBUG [org.jnp.interfaces.NamingContext] Failed to connect to localhost:1099
javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.proxy.ejb.RetryInterceptor.reestablishInvokerProxy(RetryInterceptor.java:247)
at org.jboss.proxy.ejb.RetryInterceptor.invoke(RetryInterceptor.java:185)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:121)
at org.jboss.ha.framework.test.ExplicitFailoverClientInterceptor.invoke(ExplicitFailoverClientInterceptor.java:94)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy3.getNodeState(Unknown Source)
at org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase$SFSBRetryCaller.executeTest(RetryInterceptorUnitTestCase.java:233)
at org.jboss.test.testbeancluster.test.RetryInterceptorUnitTestCase$RetryCaller.run(RetryInterceptorUnitTestCase.java:103)
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
... 14 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:516)
at java.net.Socket.connect(Socket.java:466)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:266)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1385)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:594)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at org.jboss.proxy.ejb.RetryInterceptor.reestablishInvokerProxy(RetryInterceptor.java:247)
at org.jboss.proxy.ejb.RetryInterceptor.invoke(RetryInterceptor.java:185)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
at org.jboss.proxy.ejb.StatefulSessionInterceptor.invoke(StatefulSessionInterceptor.java:121)
at org.jboss.ha.framework.test.ExplicitFailoverClientInterceptor.invoke(ExplicitFailoverClientInterceptor.java:94)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
at $Proxy3.getNodeState(Unknown Source)
The problem seems to be the fact that some element of the test case is erroneously accessing localhost, instead of the node0/node1 IP addresses which were passed to the test case. I suspect that this shouldn't be happening.
I had a look at the test case source, but couldn't easily follow what was going on and how the call was being made.
- is incorporated by
-
JBAS-4387 testRetryWithJnpAndAutoDiscovery not finding custom address for autodiscovery
- Closed