JBoss 5.0.1 - JDK 1.5.0_22 - Client Failover Error
npassero Jan 25, 2011 12:00 PMJBoss 5.0.1 GA
JDK 1.5.0 Update 22
I have 2 Jboss servers setup in a cluster, Node A, Node B. I also have a client, Client A, that communicates with these two nodes, with a hardware load balancer for http traffic and the following for EJB communication: jnp://nodea:1099,nodeb:1099. If Client A is actively connected to Node A, and Node A fails, it is not flipping over to Node B until I restart Client A services. The stack is below.
Is there a way to reload the config file that defines the jnp address?
It seems like the hostname is getting cached in the JVM and will not go out and refresh this. I have played with some of the JDK settings (networkaddress.cache.ttl and networkaddress.cache.negative.ttl) but no luck there.
Let me know if more information is needed.
Thanks
Nick
Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://nodea:4446/?dataType=invocation&enableTcpNoDelay=true&marshaller=org.jboss.invocation.unified.marshall.InvocationMarshaller&unmarshaller=org.jboss.invocation.unified.marshall.InvocationUnMarshaller]
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport (MicroSocketClientInvoker.java:771)
at org.jboss.remoting.MicroRemoteClientInvoker.invoke (MicroRemoteClientInvoker.java:160)
at org.jboss.remoting.Client.invoke (Client.java:1708)
at org.jboss.remoting.Client.invoke (Client.java:612)
at org.jboss.invocation.unified.interfaces.UnifiedInvokerProxy.invoke (UnifiedInvokerProxy.java:184)
at org.jboss.invocation.InvokerInterceptor.invokeInvoker (InvokerInterceptor.java:365)
at org.jboss.invocation.InvokerInterceptor.invoke (InvokerInterceptor.java:197)
at org.jboss.proxy.TransactionInterceptor.invoke (TransactionInterceptor.java:61)
at org.jboss.proxy.ejb.SecurityContextInterceptor.invoke (SecurityContextInterceptor.java:64)
at org.jboss.proxy.SecurityInterceptor.invoke (SecurityInterceptor.java:68)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke (StatelessSessionInterceptor.java:112)
at org.jboss.proxy.ClientContainer.invoke (ClientContainer.java:101)
at $Proxy107.getObjects (Unknown Source)
at com.filenet.apiimpl.transport.ejb.EJBSession$EJBImpl._getObjects (EJBSession.java:459)
... 73 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:367)
at java.net.Socket.connect (Socket.java:524)
at org.jboss.remoting.util.SecurityUtility.connect (SecurityUtility.java:1037)
at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket (SocketClientInvoker.java:203)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection (MicroSocketClientInvoker.java:1084)
at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport (MicroSocketClientInvoker.java:757)
... 86 more