powered by Jive Software

Problems connecting with class.jabber.php


I’'m trying to connect to wildfire in ssl mode using class.jabber.php but i have this message: (i make a connection with neus client very well using ssl or non-ssl)

In debug.log

2006.04.24 10:33:16 SSL Connect d2b64e[SSL_NULL_WITH_NULL_NULL: Socket[addr=/,port=2702,localport=5223]]

2006.04.24 10:33:16 Error creating session

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)

at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

at java.io.InputStreamReader.read(Unknown Source)

at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2971)

at org.xmlpull.mxp1.MXParser.more(MXParser.java:3025)

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)

at org.jivesoftware.wildfire.net.MXParser.nextImpl(MXParser.java:331)

at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

at org.jivesoftware.wildfire.net.SocketReader.createSession(SocketReader.java:573)

at org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:110)

at java.lang.Thread.run(Unknown Source)

And error.log

2006.04.24 10:35:56 org.jivesoftware.wildfire.net.SocketReader.run(SocketReader.java:161) Se cerró la conexión antes de establecer la sesión

a6e0a9[SSL_NULL_WITH_NULL_NULL: Socket[addr=/,port=2718,localport=5223]]

Can you help me with this type of connection? What i have to review?

class.jabber.php is not able to connect via SSL, so you have to use port 5222, and I see no chance to make the code handle secure connections.



class.jabber.php doesn’'t connect with the 5222 port, maybe there is something i have to configure in the server?


there should be no problem connecting class.jabber.php over port 5222, we are running several php-bots for RSS and SMS delivery and they are connected to Wildfire 2.6.

The php source should look like this:


$JABBER = new Jabber;

$JABBER->server = “wildfire_serveradress”;

$JABBER->port = “5222”;

$JABBER->username = “jive_id”;

$JABBER->password = “jive_pw”;

$JABBER->resource = “myBot”;

$JABBER->Connect() or die(“Couldn’'t connect!”);

$JABBER->SendAuth() or die(“Couldn’'t authenticate!”);

$JABBER->SendPresence(NULL, NULL, “online”);

echo “Bot started …\n\r”;

While (true) {

$JABBER->CruiseControl(2); // loop every 2 seconds

// your code here …

// functions for receiving and sending messages …