powered by Jive Software

Httpbind-worker thread problem in Openfire

Hey !

I am trying to connect to Openfire with a PHP script and httpbind, and I succeeded to do it with a Plain authentication.

Then I have followed the instructions of this website : http://web.archive.org/web/20050224191820/http://cataclysm.cx/wip/digest-md5-cra sh.html

to do the same thing with a DIGEST-MD5 authentication.

I have reached the step three and the server has sent me :

<body xmlns='http://jabber.org/protocol/httpbind'><success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD1mNDU0MzZiNTMwMWEwODU5MTUzMjk5NTJjYmM4Y2ExMQ==</success></body>

So the authentication worked.

But now, when I send an empty response :

           <body rid='" . $this->rid . "' xmlns='[http://jabber.org/protocol/httpbind](http://jabber.org/protocol/httpbind)' sid='" . $this->sid . "'>

the request is blocking and Openfire tells me this :

Exception in thread “httpbind-worker-5” java.lang.NullPointerException

at org.jivesoftware.openfire.net.SASLAuthentication.handle(SASLAuthentication.java:303)

at org.jivesoftware.openfire.SessionPacketRouter.route(SessionPacketRouter.java:66)

at org.jivesoftware.openfire.http.HttpSession.sendPendingPackets(HttpSession.java:668)

at org.jivesoftware.openfire.http.HttpSessionManager$HttpPacketSender.run(HttpSessionManager.java:413)

at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

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


I read that it might be because of the :



values, so I put them at 100 and I restarted the server, but the problem is still here…

Have you any idea ?

Thanks !

(and sorry for my bad english ^^)