Skip navigation
685 Views 0 Replies Latest reply: Jan 28, 2010 2:46 PM by mjparme2 RSS
mjparme2 Bronze 2 posts since
Jan 26, 2010
Currently Being Moderated

Jan 28, 2010 2:46 PM

Can't connect to chat server

I am using the smack libraries to try to connect to a OpenFire server I have running on my local machine. Haven't changed any settings on the server so using its default settings (using embedded DB). Here is my very simple code:

 

try {
            ConnectionConfiguration conConfig = new ConnectionConfiguration("localhost", 5222);
            XMPPConnection xmppConnection = new XMPPConnection(conConfig);
            xmppConnection.connect();
        } catch (XMPPException e) {
            e.printStackTrace();
        }

 

I get this exception, anyone have any insight into what is causing this? Is there additional setup I need to do to my server? Maybe some certificate setup or something?

 

java.io.IOException: Keystore was tampered with, or password was incorrect
    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:771)
    at sun.security.provider.JavaKeyStore$JKS.engineLoad(JavaKeyStore.java:38)
    at java.security.KeyStore.load(KeyStore.java:1185)
    at org.jivesoftware.smack.ServerTrustManager.<init>(ServerTrustManager.java:63)
    at org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:12 46)
    at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:313)
    at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:44)
    at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:76)
Caused by: java.security.UnrecoverableKeyException: Password verification failed
    at sun.security.provider.JavaKeyStore.engineLoad(JavaKeyStore.java:769)
    ... 7 more

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points