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

How to fix "org.jivesoftware.smack.XMPPException$StreamErrorException improper-addressing"

$
0
0

I wrote a Java program that uses SMACK libraries. It creates a XMPPTCPConnection (using XMPPTCPConnectionConfiguration.builder()), then

 

connection.connect();

 

I am getting Exception

 

org.jivesoftware.smack.SmackException$NoResponseException: No response received within reply timeout. Timeout was 10000ms (~10s). Used filter: No filter used or filter was 'null'.

    at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackExceptio n.java:106)

    at org.jivesoftware.smack.SmackException$NoResponseException.newWith(SmackExceptio n.java:85)

    at org.jivesoftware.smack.SynchronizationPoint.checkForResponse(SynchronizationPoi nt.java:253)

    at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWait(Synchronizatio nPoint.java:146)

    at org.jivesoftware.smack.SynchronizationPoint.checkIfSuccessOrWaitOrThrow(Synchro nizationPoint.java:125)

    at org.jivesoftware.smack.tcp.XMPPTCPConnection.connectInternal(XMPPTCPConnection. java:837)

    at org.jivesoftware.smack.AbstractXMPPConnection.connect(AbstractXMPPConnection.ja va:365)

    at com.companydomain.projectname.xmppclient.XMPPClient.<init>(XMPPClient.java:48)

    at com.companydomain.projectname.xmppclient.XMPPClientMain.main(XMPPClientMain.jav a:8)

 

Sep 25, 2015 5:12:51 PM org.jivesoftware.smack.AbstractXMPPConnection callConnectionClosedOnErrorListener

WARNING: Connection closed with error

org.jivesoftware.smack.XMPPException$StreamErrorException: host-unknown You can read more about the meaning of this stream error at http://xmpp.org/rfcs/rfc6120.html#streams-error-conditions

<stream:error><host-unknown xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error>

    at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.parsePackets(XMPPTCPC onnection.java:994)

    at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader.access$200(XMPPTCPCon nection.java:935)

    at org.jivesoftware.smack.tcp.XMPPTCPConnection$PacketReader$1.run(XMPPTCPConnecti on.java:950)

    at java.lang.Thread.run(Thread.java:745)

 

Refer: -

 

https://www.igniterealtime.org/builds/smack/docs/4.1.0/javadoc/index.html?org/ji vesoftware/smack/packet/StreamError.html

 

The above web page states

 

improper-addressing : a stanza sent between two servers lacks a 'to' or 'from' attribute

 

Beyond this I could not find any information in the Google search results about how to fix this issue. Where can I find more information on the root cause of this issue and how to fix it. (The from and to Jabber Ids work fine on Spark desktop client and on iOS / Android Apps).

   

Thanks and Regards,

Mahesh Kumaraguru


Viewing all articles
Browse latest Browse all 4979

Trending Articles