Converse.js - Unexpected exeption - SASLAuthentication

Hey there everyone,

i’ve found out that Converse.js (an XMPP client for Wordpress) have problems to connect to Openfire 4.1.0 servers. It trows out the following error in the Openfire logs:

2016.12.27 14:50:11 org.jivesoftware.openfire.net.SASLAuthentication – An unexpected exception occurred during SASL negotiation. Affected session: org.jivesoftware.openfire.http.HttpSession@52ad4d77 status: 1 address: agoshan.com/3ro8cn7lm4 id: 3ro8cn7lm4 presence:

<presence type=”unavailable”/>

java.lang.NullPointerException

at org.jivesoftware.openfire.sasl.ExternalClientSaslServer.evaluateResponse(Extern alClientSaslServer.java:60)

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

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

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

at org.jivesoftware.openfire.http.HttpSession$HttpPacketSender.run(HttpSession.jav a:1271)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

On client side, it looks like Converse.js connects to the server and than suddenly it disconnects and i’m back on my login form.

Since i’ve downgraded Openfire to 4.0.4 due to another serios problem, Converse.js connects to my XMPP server again…

Thanks,

Lucas