当我在接收一系列消息之间发送消息时,我收到终端绑定错误。
我的系统' A'是一个配置为接收消息的Android应用程序 我的系统' B'是一个独立的Java应用程序来发送消息。
系统B向系统A发送一个握手消息,接下来是一种特殊的消息。
当系统A收到消息时,它会发送一个确认信息,表明它已收到握手消息并已准备好接收消息。
现在,当系统B向系统A发送专用消息时,系统A中的BOSH连接中断。
以下是此处的堆栈跟踪。
<body rid='1882904974501977' sid='977f142470da5f1f2b74af554548c00815de0989' xmlns='http://jabber.org/protocol/httpbind'></body>
06-09 17:20:47.405 5703-5833/in.ravenapp.raven D/SMACK: RECV (0): <body xmlns='http://jabber.org/protocol/httpbind'/>
06-09 17:20:49.413 5703-5835/in.ravenapp.raven D/SMACK: SENT (0): <body rid='1882904974501978' sid='977f142470da5f1f2b74af554548c00815de0989' xmlns='http://jabber.org/protocol/httpbind'></body>
06-09 17:20:49.425 5703-5833/in.ravenapp.raven D/SMACK: RECV (0): <body xmlns='http://jabber.org/protocol/httpbind' type='terminate' condition='item-not-found'/>
06-09 17:20:49.429 5703-5832/in.ravenapp.raven W/AbstractXMPPConnection: Connection closed with error
org.igniterealtime.jbosh.BOSHException: Terminal binding condition encountered: item-not-found ((1) 'sid' is not valid, (2) 'stream' is not valid, (3) 'rid' is larger than the upper limit of the expected window, (4) connection manager is unable to resend response, (5) 'key' sequence is invalid.)
at org.igniterealtime.jbosh.BOSHClient.checkForTerminalBindingConditions(BOSHClient.java:1243)
at org.igniterealtime.jbosh.BOSHClient.processExchange(BOSHClient.java:1065)
at org.igniterealtime.jbosh.BOSHClient.processMessages(BOSHClient.java:977)
at org.igniterealtime.jbosh.BOSHClient.access$000(BOSHClient.java:98)
at org.igniterealtime.jbosh.BOSHClient$1.run(BOSHClient.java:216)
at java.lang.Thread.run(Thread.java:841)
06-09 17:20:49.429 5703-5832/in.ravenapp.raven D/SMACK: XMPPConnection closed due to an exception (0)
06-09 17:20:49.429 5703-5832/in.ravenapp.raven W/System.err: org.igniterealtime.jbosh.BOSHException: Terminal binding condition encountered: item-not-found ((1) 'sid' is not valid, (2) 'stream' is not valid, (3) 'rid' is larger than the upper limit of the expected window, (4) connection manager is unable to resend response, (5) 'key' sequence is invalid.)
06-09 17:20:49.429 5703-5832/in.ravenapp.raven W/System.err: at org.igniterealtime.jbosh.BOSHClient.checkForTerminalBindingConditions(BOSHClient.java:1243)
06-09 17:20:49.429 5703-5832/in.ravenapp.raven W/System.err: at org.igniterealtime.jbosh.BOSHClient.processExchange(BOSHClient.java:1065)
06-09 17:20:49.429 5703-5832/in.ravenapp.raven W/System.err: at org.igniterealtime.jbosh.BOSHClient.processMessages(BOSHClient.java:977)
06-09 17:20:49.433 5703-5832/in.ravenapp.raven W/System.err: at org.igniterealtime.jbosh.BOSHClient.access$000(BOSHClient.java:98)
06-09 17:20:49.433 5703-5832/in.ravenapp.raven W/System.err: at org.igniterealtime.jbosh.BOSHClient$1.run(BOSHClient.java:216)
06-09 17:20:49.433 5703-5832/in.ravenapp.raven W/System.err: at java.lang.Thread.run(Thread.java:841)