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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert 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.

,
Expert tip

Check if your server (or a proxy server) is not going up and down. There might be something between a proxy and a client sending intermittent requests to non-functioning hosts as well. There might as well be too many requests in a short amount of time.

Solutions on the web

via GitHub by ericsvince
, 3 months ago
Error setting up client lease upon performing connect.
, 1 year ago
Error setting up client lease upon performing connect.
via GitHub by nottaran
, 1 year ago
Error setting up client lease upon performing connect.
via GitHub by Sixftrabbit
, 1 year ago
Error setting up client lease upon performing connect.
via Stack Overflow by megabobik
, 1 year ago
Error setting up client lease upon performing connect.
via Stack Overflow by MadMad666
, 2 years ago
Error setting up client lease upon performing connect.
java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
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)
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)
at org.jboss.remoting.Client.setupClientLease(Client.java:2070)
at org.jboss.remoting.Client.connect(Client.java:1924)
at org.jboss.remoting.Client.connect(Client.java:737)
at mage.remote.SessionImpl$5.run(SessionImpl.java:390)
at mage.remote.SessionImpl.handleRemotingTaskExceptions(SessionImpl.java:117)
at mage.remote.SessionImpl.establishJBossRemotingConnection(SessionImpl.java:267)
at mage.remote.SessionImpl.connect(SessionImpl.java:220)
at mage.client.SessionHandler.connect(SessionHandler.java:49)
at mage.client.MageFrame.connect(MageFrame.java:704)
at mage.client.MageFrame.performConnect(MageFrame.java:750)
at mage.client.MageFrame.autoConnect(MageFrame.java:717)
at mage.client.MageFrame.lambda$new$2(MageFrame.java:317)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Users with the same issue

57 times, 6 days ago
Once, 1 week ago
7 times, 2 weeks ago
Once, 2 months ago
2 times, 2 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.