Trying out XMPP for the first time, with 4.0rc1, operating against an ejabberd 2.10 host.
I’ve come up against problems with connecting. Firstly :
XMPPConnection connection = new XMPPTCPConnection(config);
Was bombing on the connection due to “No non-anonymous SASL connection modes” type error.
This is because the all-important message containing the supported SASL modes has not arrived by the time login() is executed. I can’t tell if that’s because the server is slow, or that the pause is in sending the outbound queued message. Either way, it’s a race condition, and inserting
between connect and login fixes it, ugly though that may be.
Secondly, I seemed to have to disable TLS with
If I don’t, then by the time we get to SASLMechanism:170 “sc.hasInitialResponse()”, the answer is ‘no’, and we end up sending ‘null’ as authenticationText (Which unsurprisingly doesn’t work).
tls start and proceed messages have been exchanged , so I don’t know why it’s the case that it’s not happy in that route.