powered by Jive Software

Could not reconnect to jabberd2 server: SSLHandshakeException

We have a problem on jabberd2 server. I also encountered this kinds of error earlier. But we’ve got server logs this time.

First connection is ok, but reconnection using connection object created earlier leads to SSLHandshakeException: Connection closed by peer.

Server says: openssl error: error:140D9115:SSL routines:ssl_get_prev_session:session id context uninitialized

Latest available Smack 4.2.1 snapshot used, Plain auth, jabberd2 2.5.0

See full log, both client and server: 2017-04-10 Smack - jabberd2 SSL handshake exception on reconnection · GitHub

Should I also create issue for jabberd2?

Looks more like a server issue to me.

Cross link to ejabberd issue: “session id context uninitialized” - reconnection error using Smack based client · Issue #146 · jabberd2/jabberd2 · GitH…