Exception in thread âBOSHClient[32389396]: Receive threadâ java.lang.NullPointerException
at com.kenai.jbosh.XLightWebResponse.awaitResponse(XLightWebResponse.java:188)
at com.kenai.jbosh.XLightWebResponse.getBody(XLightWebResponse.java:166)
at com.kenai.jbosh.BOSHClient.processExchange(BOSHClient.java:1056)
at com.kenai.jbosh.BOSHClient.processMessages(BOSHClient.java:1000)
at com.kenai.jbosh.BOSHClient.access$0(BOSHClient.java:970)
at com.kenai.jbosh.BOSHClient$1.run(BOSHClient.java:211)
at java.lang.Thread.run(Unknown Source)
For anyone else attempting to use the smack-bosh branch above: it worked for me, but there are all sorts of NPE bugs you might encounter because itâs built against 3.2.0. You might try using the following libs instead:
Latest SMACK API 3.2.1 version doesnât have support for BOSH. Thus, I have merged their code base
Did you ever get the BOSHConnection working with PubSub? I am trying it and I notice that in the debugger the connection continually stops and restarts when it sends out a request to get a node. Then eventually, it will work and it seems that the connection is fine from that point on. Didnât know if you had any experience with this.
Thanks for the info. I am currently using smack 3.2.2 with a version of BOSHConnection that I found on github . I will try again with 3.2.1 and your version of the jar. One difference I see is that I am using Openfire for my server where you are using EJabberd. Thanks for the info. The issue I am seeing is weird - after my request for a a node, I am getting a âClient provided invalid sessionâ error on the server. Regardless, I will give it a shot. Thanks again.
Anyone get PLAIN Sasl to work with this? I canât seem to get this to work at all. I know the login stuff is correct, as Iâve tested it using XMPPConnection class, I just change this and the port, and using BOSH I get âNo response from the server.:â. Watching the this in wireshark, it looks like it getâs the challenge and does nothing with it.