Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

SASLError using DIGEST-MD5: malformed-request

$
0
0

     AbstractXMPPConnection conn = null;             

 

     XMPPTCPConnectionConfiguration.Builder config = XMPPTCPConnectionConfiguration.builder();

            config.setUsernameAndPassword("username", "password");

            config.setSecurityMode(ConnectionConfiguration.SecurityMode.required);

            config.setServiceName("example.es");

            config.setDebuggerEnabled(true);

            config.setResource("a");

            config.setHost("10.2.2.2");

            config.setPort(80);

 

            try {

                SSLContext sc = SSLContext.getInstance("TLS");

                MemorizingTrustManager mtm = new MemorizingTrustManager(this);

                sc.init(null, new X509TrustManager[] { mtm }, new SecureRandom());

                config.setCustomSSLContext(sc);

                config.setHostnameVerifier(mtm.wrapHostnameVerifier(new org.apache.http.conn.ssl.StrictHostnameVerifier()));

            } catch (NoSuchAlgorithmException | KeyManagementException e) {

                throw new IllegalStateException(e);

            }

 

            conn = new XMPPTCPConnection(config.build());

            conn.setPacketReplyTimeout(10000);

 

            try {

                conn.connect();

                conn.login();

            } catch (SmackException | IOException | XMPPException e) {

                e.printStackTrace();

                conn.disconnect();

            }

 

When I try to connect to the server I get this error:

 

org.jivesoftware.smack.sasl.SASLErrorException: SASLError using DIGEST-MD5: malformed-request

W/System.err﹕ at org.jivesoftware.smack.SASLAuthentication.authenticationFailed(SASLAuthenticati on.java:365)

W/System.err﹕ at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:1033)

W/System.err﹕ at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPCon nection.java:937)

W/System.err﹕ at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:952)

W/System.err﹕ at java.lang.Thread.run(Thread.java:841)

 

It could be this? I send you an image with my traces and another with the traces of yaxim


Viewing all articles
Browse latest Browse all 4979

Trending Articles