AnsweredAssumed Answered

smack 4.1.1 java.lang.IllegalArgumentException: id must either be null or not the empty String

Question asked by jim on Jun 14, 2015

Chat chat = chatmanager.createChat("b"+"@"+ApplicationData.SERVER_NAME,new ChatMessageListener() {

                        public void processMessage(Chat chat, Message msg) {

                            System.out.print("===="+msg.getBody());

                        }

                    });

 

org.jivesoftware.smack.AbstractXMPPConnection callConnectionClosedOnErrorListener

Connection closed with error

java.lang.IllegalArgumentException: id must either be null or not the empty String

  at org.jivesoftware.smack.util.StringUtils.requireNotNullOrEmpty(StringUtils.java: 263)

  at org.jivesoftware.smack.packet.Stanza.setStanzaId(Stanza.java:123)

  at org.jivesoftware.smack.util.PacketParserUtils.parseMessage(PacketParserUtils.ja va:224)

  at org.jivesoftware.smack.util.PacketParserUtils.parseStanza(PacketParserUtils.jav a:151)

  at org.jivesoftware.smack.AbstractXMPPConnection.parseAndProcessStanza(AbstractXMP PConnection.java:947)

  at org.jivesoftware.smack.tcp.XMPPTCPConnection.access$400(XMPPTCPConnection.java: 139)

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

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

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

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

Outcomes