1 Reply Latest reply on Aug 23, 2006 2:27 PM by vivash

    CannotConnectException in cluster example

    vivash

      Hi,

      I am trying to run the Transport Sample - Clustered example (section 10.8.5 in user's guide). I start up all the three servers and Client. Here is what's happening,

      1) Client talks to SocketServer and things are fine.
      2) I stop SocketServer and Client failsover to the HttpServer. Things are still fine.
      3) I stop HttpServer and now I get the following "CannotConnectException".

      Not sure why the Client is not failing over to the RmiServer when it's still running.


      org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
       at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:201)
       at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:81)
       at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
       at org.jboss.remoting.Client.invoke(Client.java:525)
       at org.jboss.remoting.Client.invoke(Client.java:488)
       at org.jboss.remoting.Client.invoke(Client.java:473)
       at org.jboss.remoting.transporter.TransporterClient.invoke(TransporterClient.java:238)
      
      



        • 1. Re: CannotConnectException in cluster example
          vivash

          I think know what the problem was. There is 60 sec. timeout in the code (all the servers stop after 60 sec.). So, if the whole test takes more than 60 sec. the Client is going to throw the CannotConnectException.

          I just increased the sleep time in the code and things are fine.