[jboss-user] [Clustering/JBoss] - HAJNDI failover exception

davidchen do-not-reply at jboss.com
Tue May 20 18:51:24 EDT 2008


Hi, there:

As new to jboss cluster. I have problem to invoke hajndi. I'm running jboss4.2.0.GA on 2 nodes(Windows 2000). I have several stateless ejbs deployed on both nodes. Load balance works fine, however, I have problem to get fail over work properly:
when I stopped jboss on one node (usually the first node 10.0.2.63 ex), hajndi keeps raising connection exception for about 30 secs, then switch to the other node. Which means each jndi invoke will at least take about 30 seconds before it can find the bean on the other node. 
And, if I stopped the other node( the second node), it seems switch to the first node immediately without those connection creation attempts. I listed those exceptions I got from client side.

So, is that some configuration I did wrong? I just followed the clustering document and used default configuration on both nodes.
Thank you very much in advance. Highly appreciated if any hint.


  | [2008-05-20 15:23:00,175 UnifiedInvokerHAProxy] Making invocation on InvokerLocator [socket://10.0.2.63:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&socketTimeout=60000&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
  | [2008-05-20 15:23:00,191 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got SocketException java.net.SocketException: Connection reset by peer: socket write error
  | [2008-05-20 15:23:00,191 SocketWrapper] unable to close output stream
  | [2008-05-20 15:23:00,191 SocketWrapper] ClientSocketWrapper[Socket[addr=/10.0.2.63,port=4446,localport=2964].19ea173] closing
  | [2008-05-20 15:23:01,269 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:02,363 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1079 ms
  | [2008-05-20 15:23:03,456 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:04,566 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1094 ms
  | [2008-05-20 15:23:05,659 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:06,737 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1062 ms
  | [2008-05-20 15:23:07,847 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1094 ms
  | [2008-05-20 15:23:08,940 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:10,034 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:11,112 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1062 ms
  | [2008-05-20 15:23:12,206 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:13,315 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1093 ms
  | [2008-05-20 15:23:14,393 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1062 ms
  | [2008-05-20 15:23:15,487 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:16,596 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1093 ms
  | [2008-05-20 15:23:17,690 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:18,768 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1062 ms
  | [2008-05-20 15:23:19,893 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1109 ms
  | [2008-05-20 15:23:20,987 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:22,081 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:23,174 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:24,268 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:25,362 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:26,456 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1079 ms
  | [2008-05-20 15:23:27,549 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:28,643 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:29,737 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:30,830 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:31,924 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:33,018 MicroSocketClientInvoker] SocketClientInvoker[1b64e6a, socket://10.0.2.63:4446] got Exception java.net.ConnectException: Connection refused: connect, creation attempt took 1078 ms
  | [2008-05-20 15:23:33,018 UnifiedInvokerHAProxy] Invocation failed: CannotConnectException - org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://10.0.2.63:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&socketTimeout=60000&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
  | org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://10.0.2.63:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&socketTimeout=60000&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
  | 	at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:530)
  | 

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

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



More information about the jboss-user mailing list