java.net.ConnectException: Connection timed out: connect

Jive Software Open Source | Daniel Henninger | 8 years ago
  1. 0

    Imported issue was from janzi: Hello, if I connect to a server using the xmpp transport the connection always timed out, but there is a server-2-server connection active and also I can connect to server using xmpp client without any error. If I test the connection I'll be within the same network segment, so I'm sure the firewall does not block the requests. Is there any trouble with encrypted connections or something? Does anybody has a solution? Error: 2009.03.03 15:01:20 xmpp user is not able to connect: <USERNAME>@web.de XMPPError connecting to web.de:5222.: remote-server-error(502) XMPPError connecting to web.de:5222. -- caused by: java.net.ConnectException: Connection timed out: connect at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:1021) at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1536) at net.sf.kraken.protocols.xmpp.XMPPSession$1.run(XMPPSession.java:201) Nested Exception: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:1006) at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1536) at net.sf.kraken.protocols.xmpp.XMPPSession$1.run(XMPPSession.java:201) 2009.03.03 15:01:20 Session <JID> disconnected from xmpp.capevision.net. Reconnecting... (attempt 1) 2009.03.03 15:01:20 438031 (01/03/00) - Connection #55 tested: OK 2009.03.03 15:01:20 438032 (01/03/00) - Connection #55 tested: OK 2009.03.03 15:01:29 session 516 timeout 2009.03.03 15:01:29 session 516 sent message PNG

    Jive Software Open Source | 8 years ago | Daniel Henninger
    java.net.ConnectException: Connection timed out: connect
  2. 0

    Imported issue was from janzi: Hello, if I connect to a server using the xmpp transport the connection always timed out, but there is a server-2-server connection active and also I can connect to server using xmpp client without any error. If I test the connection I'll be within the same network segment, so I'm sure the firewall does not block the requests. Is there any trouble with encrypted connections or something? Does anybody has a solution? Error: 2009.03.03 15:01:20 xmpp user is not able to connect: <USERNAME>@web.de XMPPError connecting to web.de:5222.: remote-server-error(502) XMPPError connecting to web.de:5222. -- caused by: java.net.ConnectException: Connection timed out: connect at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:1021) at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1536) at net.sf.kraken.protocols.xmpp.XMPPSession$1.run(XMPPSession.java:201) Nested Exception: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:1006) at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1536) at net.sf.kraken.protocols.xmpp.XMPPSession$1.run(XMPPSession.java:201) 2009.03.03 15:01:20 Session <JID> disconnected from xmpp.capevision.net. Reconnecting... (attempt 1) 2009.03.03 15:01:20 438031 (01/03/00) - Connection #55 tested: OK 2009.03.03 15:01:20 438032 (01/03/00) - Connection #55 tested: OK 2009.03.03 15:01:29 session 516 timeout 2009.03.03 15:01:29 session 516 sent message PNG

    JIRA | 8 years ago | Daniel Henninger
    java.net.ConnectException: Connection timed out: connect
  3. 0

    Imported issue was from janzi: Hello, if I connect to a server using the xmpp transport the connection always timed out, but there is a server-2-server connection active and also I can connect to server using xmpp client without any error. If I test the connection I'll be within the same network segment, so I'm sure the firewall does not block the requests. Is there any trouble with encrypted connections or something? Does anybody has a solution? Error: 2009.03.03 15:01:20 xmpp user is not able to connect: <USERNAME>@web.de XMPPError connecting to web.de:5222.: remote-server-error(502) XMPPError connecting to web.de:5222. -- caused by: java.net.ConnectException: Connection timed out: connect at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:1021) at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1536) at net.sf.kraken.protocols.xmpp.XMPPSession$1.run(XMPPSession.java:201) Nested Exception: java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:1006) at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1536) at net.sf.kraken.protocols.xmpp.XMPPSession$1.run(XMPPSession.java:201) 2009.03.03 15:01:20 Session <JID> disconnected from xmpp.capevision.net. Reconnecting... (attempt 1) 2009.03.03 15:01:20 438031 (01/03/00) - Connection #55 tested: OK 2009.03.03 15:01:20 438032 (01/03/00) - Connection #55 tested: OK 2009.03.03 15:01:29 session 516 timeout 2009.03.03 15:01:29 session 516 sent message PNG

    Jive Software Open Source | 8 years ago | Daniel Henninger
    java.net.ConnectException: Connection timed out: connect
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GCM CCS (XMPP) implementation in JAVA using smack library. Connection failed with gcm.googleapis.com

    Stack Overflow | 3 years ago | Reva
    java.net.ConnectException: Connection timed out: connect
  6. 0

    GCM connection error

    Stack Overflow | 3 years ago | Reva
    java.net.ConnectException: Connection timed out: connect

  1. emmanuelstroem 51 times, last 6 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection timed out: connect

    at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration()
  2. Smack
    XMPPConnection.connect
    1. org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection.java:1021)
    2. org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1536)
    2 frames
  3. net.sf.kraken
    XMPPSession$1.run
    1. net.sf.kraken.protocols.xmpp.XMPPSession$1.run(XMPPSession.java:201)
    1 frame