用户反馈APP经常掉线退出,在开发者后台-安卓端崩溃日志发现大量与websocket调用相关的错误日志。信息如下:

java.lang.NullPointerException: Attempt to invoke interface method 'java.lang.Object java.util.Map.remove(java.lang.Object)' on a null object reference
at io.dcloud.feature.weex_websocket.UniWebSocketModule$WebSocketEventListener.onClose(UniWebSocketModule.java:241)
at io.dcloud.feature.weex.adapter.DefaultWebSocketAdapter$1.onClose(DefaultWebSocketAdapter.java:156)
at dc.squareup.okhttp.internal.ws.RealWebSocket.peerClose(RealWebSocket.java:194)
at dc.squareup.okhttp.internal.ws.RealWebSocket.access$200(RealWebSocket.java:35)
at dc.squareup.okhttp.internal.ws.RealWebSocket$1$2.execute(RealWebSocket.java:81)
at dc.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)

·回复

HX2.6.10+已修复websoket相关问题。可以升级重新云打包。

发表评论

电子邮件地址不会被公开。 必填项已用*标注

Scroll Up