powered by Jive Software

Spark connection to Openfire problem

I have been searching the site all day trying various things to fix the connection issue I have encountered. Here are the things I’ve tried. The error returned by spark is -Can’t connect to server. Invalid name or server not reachable. I am having no luck. I’m hoping someone here can help with this. Thanks in advance.

Platform:

Windows Server 2008 R2 EE x64

SQL Server 2005 EE x64

OpenFire 3.6.4

Spark 2.5.8

  1. I am able to ping the openfire server from a client machine.

  2. I am able to install spark on the openfire server and can log in using spark.

  3. I am able to install spark on a client machine running Windows XP (x32).

  4. I am not able to log in to the openfire server from the client machine.

  5. I can perform nslookup from both the server and client to confirm that name resolution is correct.

  6. I verified that the server is listening on the following ports: 5222 and 5223

  7. Below is from the spark error.log file on the client workstation.

Jul 15, 2010 5:24:57 PM org.jivesoftware.spark.util.log.Log warning
WARNING: Exception in Login:
XMPPError connecting to OPENFIRE:5222.: remote-server-error(502) XMPPError connecting to OPENFIRE1:5222.
– caused by: java.net.ConnectException: Connection timed out: connect
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:830)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:822)
at org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:196)
at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:594)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:129)
at java.lang.Thread.run(Unknown Source)
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 com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
at org.jivesoftware.spark.util.DummySSLSocketFactory.createSocket(DummySSLSocketFa ctory.java:75)
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:818)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:822)
at org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:196)
at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:594)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:129)
at java.lang.Thread.run(Unknown Source)

Maybe firewall issue (on a server)?

That was it. Had to add an inbound fw rule for openfired.exe.

Don’t forget to mark your questions as answered.