[jboss-user] [JNDI/Naming/Network] - javax.naming.CommunicationException with 1.5 but not with 1.

haribo do-not-reply at jboss.com
Thu Sep 4 04:20:25 EDT 2008


Hello everbody,

when we run 

C:\Programme\java\jre1.5.0_04\bin\java.exe -classpath .;J:\jar\j2ee\HabaClient.jar;J:\jar\j2ee\jbossall-client.jar de/haba/harald/ejb/LookupTester jnp://138.33.5.51:1099

we get a javax.naming.CommunicationException: Could not obtain connection to any of these urls: 138.33.5.51:1099 and discovery failed with error: javax.naming.CommunicationException: Failed to connect to server 138.33.5.51:1100 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 138.33.5.51:1100 [Root exception is java.net.ConnectException: Connect attempt timed out]] [Root exception is javax.naming.CommunicationException: Failed to connect to server 138.33.5.51:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server 138.33.5.51:1099 [Root exception is java.net.ConnectException: Connect attempt timed out]]]

with 

C:\Programme\java\jre1.6.0_01\bin\java.exe -classpath .;J:\jar\j2ee\HabaClient.jar;J:\jar\j2ee\jbossall-client.jar de/haba/harald/ejb/LookupTester jnp://138.33.5.51:1099

there aren't any problems. 

The lookupTester calls the lookupTesterEJB in a for-next-loop and get back the System.getProperties() especially lookup.getHost().getProperty("bind.address")

Just for testing we set jnp.partitionName from TestPartition to ProductivePartition then the jre1.5.0_14 doesn't get a Exception, but the first 10 calls go to our productive cluster and then the last ones to the test cluster.

any clues?

Kind Regards

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4174198#4174198

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4174198



More information about the jboss-user mailing list