powered by Jive Software

SSL Handshake error

I’m using Jabber XCP 5.8 as my XMPP server with Smack 3.1 for the client. I’m trying to connect with TLS. I’m getting an SSL Handshake failure. Can anyone tell what is wrong? I have retyped a section of the code here (there may be typos, it’s not snagged from actual code):

ConnectionConfiguration cc = new ConnectConfiguration(hostname, 5222, servicename);


cc.setKeystorePath(path to sharyn.jks);



cc.setCallbackHandler(new XMPPCallbackHandler());

CallbackHandler passwordHandler = new CallbackHandler() {

public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {

String password = “password”;


Callback cb = callbacks[i];

if (cb instanceof PasswordCallback) {

char[] passwd = password.toCharArray();

((PasswordCallback) cb).setPassword(passwd);

println stmt;

} else {

println stmt;




connection = new XMPPConnection(cc, passwordHandler);

SASLAuthentiction.supportSASLMechanism(“PLAIN”); // also tried EXTERNAL


At this point I get the failure. XMPPCallbackHandler looks like the passwordHandler. Neither handler appears to be executed.

More information:

I turned on the Smack debug and there is not </stream:stream> in the Raw Sent Packets

<stream:stream to:“mysystem.com” xmlns=“jabber:client”

xmlns:stream=“http:/etherx.jabber.org/streams” version="1.0>