yunba / yunba-java-sdk

yunba java sdk
9 stars 7 forks source link

【严重问题求助】java sdk接收消息,出现ping收不到回复,connectionLost扑捉到“等待来自服务器的响应时超时”事件,甚至出现到不到ping回复后不在发ping的问题 #1

Open htkyong opened 8 years ago

htkyong commented 8 years ago

java sdk连接会频繁出现断开,connectionLost抛出“等待来自服务器的响应时超时”异常;连续多次抛异常后,出现ping报文发出为收到返回现象;最后SDK一直不发出ping报文,此时mqtt现在还在运行,但是接收不到消息。 Send a ping to server Send msg to server: msgId = Ping key = MESSAGE_TYPE_PINGREQ Receiver msg key = Ping msgID = 0 getType = MESSAGE_TYPE_PINGRESP Send a ping to server Send msg to server: msgId = Ping key = MESSAGE_TYPE_PINGREQ Receiver msg key = Ping msgID = 0 getType = MESSAGE_TYPE_PINGRESP Send a ping to server Send msg to server: msgId = Ping key = MESSAGE_TYPE_PINGREQ Receiver msg key = Ping msgID = 0 getType = MESSAGE_TYPE_PINGRESP Send a ping to server Send msg to server: msgId = Ping key = MESSAGE_TYPE_PINGREQ mqtt main thread alive is true mqtt listener thread alive is true syncAndPolling Fri Jan 08 18:17:02 CST 2016 mqtt main thread alive is true mqtt listener thread alive is true syncAndPolling Fri Jan 08 18:18:02 CST 2016 mqtt main thread alive is true mqtt listener thread alive is true syncAndPolling Fri Jan 08 18:19:02 CST 2016 connectionLost====================等待来自服务器的响应时超时 mqtt main thread alive is true mqtt listener thread alive is false ... ... ... ... // 连续多次抛异常后,出现ping报文发出为收到返回现象 Send a ping to server Send msg to server: msgId = Ping key = MESSAGE_TYPE_PINGREQ Receiver msg key = Ping msgID = 0 getType = MESSAGE_TYPE_PINGRESP mqtt main thread alive is true syncAndPolling Sun Jan 03 16:54:02 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 16:54:58 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 16:55:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 16:56:58 CST 2016 Send a ping to server Send msg to server: msgId = Ping key = MESSAGE_TYPE_PINGREQ mqtt main thread alive is true syncAndPolling Sun Jan 03 16:57:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 16:58:59 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 16:59:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:00:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:01:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:02:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:03:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:04:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:05:59 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:06:58 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:07:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:08:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:09:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:10:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:11:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:12:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:13:57 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:14:59 CST 2016 mqtt main thread alive is true syncAndPolling Sun Jan 03 17:15:57 CST 2016 最后SDK一直不发出ping报文,此时mqtt现在还在运行,但是接收不到消息

htkyong commented 8 years ago

代码是直接用云巴demo改的,基本没改。请求尽快跟进复现,具体可联系18682265362