sco0ter / babbler

Java library for XMPP clients using JAXB
http://docs.xmpp.rocks
MIT License
6 stars 2 forks source link

timeout while waiting on advertised authentication mechanisms #145

Open sco0ter opened 5 years ago

sco0ter commented 5 years ago

Original report by Anonymous.


Hi, I got an error when I run my code with ibm jdk 8.0,but it works with Oracle JDK 1.8. I connect the Cisco xmpp server with socket connection. PS.the babbler version is 0.8 the error message below

OUT (null): <?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" from="smuser3@127.0.0.1" to="xxx.xxx.xxx.xxx" version="1.0" xml:lang="zh-CN"> 
OUT (null): </stream:stream> 
IN  (2a32b9f0): <?xml version="1.0" encoding="UTF-8"?><stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="127.0.0.1" id="2a32b9f0" xml:lang="zh-CN" version="1.0">> 
IN  (2a32b9f0): <stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"><required></required></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>PLAIN</mechanism></mechanisms></stream:features> 
IN  (2a32b9f0): </stream:stream> 
2018-11-30 09:15:10.552 [http-bio-8080-exec-3] DEBUG commonLogger 
                        rocks.xmpp.core.session.NoResponseException: Timeout while waiting on advertised authentication mechanisms. 
rocks.xmpp.core.session.NoResponseException: Timeout while waiting on advertised authentication mechanisms. 
        at rocks.xmpp.core.session.XmppClient.connect(XmppClient.java:226) 
sco0ter commented 5 years ago

Original comment by Ran Ji (Bitbucket: Ranj1, GitHub: Ranj1).


The Anonymous is me . Actually, I think the issue caused by tls. Maybe it's different between Oracle and IBM

sco0ter commented 5 years ago

Original comment by Ran Ji (Bitbucket: Ranj1, GitHub: Ranj1).


Anybody here?is it possible that IBM JDK doesn't support starttls ?

sco0ter commented 5 years ago

Original comment by Christian Schudt (Bitbucket: sco0ter, GitHub: sco0ter).


Hi Ran Ji,

I am here. But unfortunately I have currently little time to investigate your problem with IBM JDK.

With Oracle JDK or OpenJDK there's no issue.

Anyway, I think you are right, it's probably some kind of TLS issue.

Maybe you can try to find the cause?

sco0ter commented 5 years ago

Original comment by Ran Ji (Bitbucket: Ranj1, GitHub: Ranj1).


Thank you for your help. The class XmppStreamReader ,Line 116, when it calls createXMLEventReader method , ibm jdk can't handle the inputstream, and no error message on the console. I'll try my best.