org.jboss.remoting.CannotConnectException: Error setting up client lease upon performing connect.

tip

Check if ip adress is correct, if the port is correct, and if the server is up and running and waiting for connections. Also, check if there's no firewall blocking you and if your internet connection is working.


rafael
tip

To restart the Selenium Webdriver mock browser in a testcase, first use 'driver.close()' and then reinstantiate the driver.

tip

spring-data-redis requires redis 2.6+ to work properly.

tip

Check if your MongoDB is available.


rp
tip

host port isnt set

tip

Firewall might be blocking your connection, or MySQL it's not running on your server machine.


rafael
tip

Check if you have started your server, or if your server is set to listen to the port you're trying to connect and is waiting to accept connections and check if the firewall isn't blocking your connection.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • org.jboss.remoting.CannotConnectException: Error setting up client lease upon performing connect. at org.jboss.remoting.Client.connect(Client.java:1928) at org.jboss.remoting.Client.connect(Client.java:737) at mage.remote.SessionImpl$5.run(SessionImpl.java:403) at mage.remote.SessionImpl.handleRemotingTaskExceptions(SessionImpl.java:136) at mage.remote.SessionImpl.establishJBossRemotingConnection(SessionImpl.java:281) at mage.remote.SessionImpl.connect(SessionImpl.java:239) at mage.client.MageFrame.connect(MageFrame.java:822) at mage.client.dialog.ConnectDialog$ConnectTask.doInBackground(ConnectDialog.java:411) at mage.client.dialog.ConnectDialog$ConnectTask.doInBackground(ConnectDialog.java:401) at javax.swing.SwingWorker$1.call(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at javax.swing.SwingWorker.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.Exception: Error setting up client lease at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:563) at org.jboss.remoting.Client.setupClientLease(Client.java:2070) at org.jboss.remoting.Client.connect(Client.java:1924) ... 14 more Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [bisocket://xmage.woogerworks.info:17171/?serializationtype=jboss] at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:855) at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.transport(BisocketClientInvoker.java:470) at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:169) at org.jboss.remoting.MicroRemoteClientInvoker.establishLease(MicroRemoteClientInvoker.java:529) ... 16 more Caused by: java.net.ConnectException: Connection timed out: connect at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at org.jboss.remoting.transport.socket.SocketClientInvoker.connect(SocketClientInvoker.java:293) at org.jboss.remoting.transport.socket.SocketClientInvoker.createSocket(SocketClientInvoker.java:210) at org.jboss.remoting.transport.bisocket.BisocketClientInvoker.createSocket(BisocketClientInvoker.java:477) at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.getConnection(MicroSocketClientInvoker.java:1190) at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:833) ... 19 more

Users with the same issue

Unknown visitor1 times, last one,
Unknown visitor1 times, last one,
Unknown visitor1 times, last one,
ivanszkypeter
ivanszkypeter17 times, last one,
Casper
Casper1 times, last one,
393 more bugmates