1 Reply Latest reply on Feb 7, 2008 7:08 PM by Ron Sigal

    SSLBisocket is continually throwing ConnectionExceptions

    Ian Nelson Newbie

      I have set a lease time on the server side and add a connectionlistener with a ping time and every ping interval it throws a connection exception.



      java.lang.Exception: Could not connect to server!
      at org.jboss.remoting.ConnectionValidator.run(ConnectionValidator.java:314)
      at java.util.TimerThread.mainLoop(Unknown Source)
      at java.util.TimerThread.run(Unknown Source)


      Thing is, it's clearly connected as I'm exchanging data and processing callbacks.

        • 1. Re: SSLBisocket is continually throwing ConnectionExceptions
          Ron Sigal Master

          If the network and/or server are busy, it could be that the default timeout (1000 ms) is too stringent. You can set the org.jboss.remoting.ConnectionValidator timeout by passing ConnectionValidator.VALIDATOR_PING_TIMEOUT (actual value "validatorPingTimeout") with a string value such as "5000" in either

          1. the InvokerLocator used to create the org.jboss.remoting.Client,
          2. the configuration map used to create the Client, or
          3. the metadata map passed to Client.addConnectionListener().