Egret社区
10银子
08-10 16:00:06.892: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection(3774): WebSocket connection created.
08-10 16:00:06.982: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketReader(3774): WebSocket reader created.
08-10 16:00:06.992: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection(3774): WebSocket reader created and started.
08-10 16:00:06.992: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketWriter(3774): WebSocket writer created.
08-10 16:00:07.072: E/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketReader(3774): java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
08-10 16:00:07.072: E/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketWriter(3774): Socket is closed
08-10 16:00:07.072: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketWriter(3774): WebSocker writer running.
08-10 16:00:07.072: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection(3774): WebSocket writer created and started.
08-10 16:00:07.072: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection(3774): fail connection [code = INTERNAL_ERROR, reason = WebSockets internal error (java.lang.NullPointerException)
08-10 16:00:07.072: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketReader(3774): quit
08-10 16:00:07.072: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketWriter(3774): WebSocket writer ended.
08-10 16:00:07.072: D/EgretContext(3774): WebSocketTestnClose code=INTERNAL_ERROR;reason=WebSockets internal error (java.lang.NullPointerException)
08-10 16:00:07.072: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection(3774): worker threads stopped
08-10 16:00:07.072: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection(3774): fail connection [code = INTERNAL_ERROR, reason = WebSockets internal error (java.lang.NullPointerException)
08-10 16:00:07.072: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketReader(3774): quit
08-10 16:00:07.072: W/MessageQueue(3774): Handler (org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketWriter$ThreadHandler) {4a8b7374} sending message to a Handler on a dead thread
08-10 16:00:07.072: W/MessageQueue(3774): java.lang.RuntimeException: Handler (org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketWriter$ThreadHandler) {4a8b7374} sending message to a Handler on a dead thread
08-10 16:00:07.072: W/MessageQueue(3774):         at android.os.MessageQueue.enqueueMessage(MessageQueue.java:320)
08-10 16:00:07.072: W/MessageQueue(3774):         at android.os.Handler.enqueueMessage(Handler.java:626)
08-10 16:00:07.072: W/MessageQueue(3774):         at android.os.Handler.sendMessageAtTime(Handler.java:595)
08-10 16:00:07.072: W/MessageQueue(3774):         at android.os.Handler.sendMessageDelayed(Handler.java:566)
08-10 16:00:07.072: W/MessageQueue(3774):         at android.os.Handler.sendMessage(Handler.java:503)
08-10 16:00:07.072: W/MessageQueue(3774):         at org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketWriter.a(Unknown Source)
08-10 16:00:07.072: W/MessageQueue(3774):         at org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection.a(Unknown Source)
08-10 16:00:07.072: W/MessageQueue(3774):         at org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection.a(Unknown Source)
08-10 16:00:07.072: W/MessageQueue(3774):         at org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection.a(Unknown Source)
08-10 16:00:07.072: W/MessageQueue(3774):         at org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection$ThreadHandler.handleMessage(Unknown Source)
08-10 16:00:07.072: W/MessageQueue(3774):         at android.os.Handler.dispatchMessage(Handler.java:102)
08-10 16:00:07.072: W/MessageQueue(3774):         at android.os.Looper.loop(Looper.java:136)
08-10 16:00:07.072: W/MessageQueue(3774):         at android.app.ActivityThread.main(ActivityThread.java:5019)
08-10 16:00:07.072: W/MessageQueue(3774):         at java.lang.reflect.Method.invokeNative(Native Method)
08-10 16:00:07.072: W/MessageQueue(3774):         at java.lang.reflect.Method.invoke(Method.java:515)
08-10 16:00:07.072: W/MessageQueue(3774):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
08-10 16:00:07.072: W/MessageQueue(3774):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
08-10 16:00:07.072: W/MessageQueue(3774):         at dalvik.system.NativeStart.main(Native Method)
08-10 16:00:07.072: D/EgretContext(3774): WebSocketTestnClose code=INTERNAL_ERROR;reason=WebSockets internal error (java.lang.NullPointerException)
08-10 16:00:07.072: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection(3774): worker threads stopped
08-10 16:00:07.072: D/org.egret.runtime.thirdparty.de.tavendo.autobahn.WebSocketConnection(3774): SocketThread exited.

最佳答案

查看完整内容

很大概率是服务器验证问题。以前也碰到过同样的情况,最后服务端解决的。
分享到 :
0 人收藏

15 个回复

倒序浏览
七分  登堂入室 | 2018-8-10 17:08:56
很大概率是服务器验证问题。以前也碰到过同样的情况,最后服务端解决的。
n1cecmj  登堂入室 | 2018-8-10 17:14:58
@山猫 java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. 这个是ssl证书得问题吗
山猫  官方团队 | 2018-8-10 17:19:09
是证书得问题,
山猫  官方团队 | 2018-8-10 17:25:28
需要提供一个外网的webSocket服务器地址
n1cecmj  登堂入室 | 2018-8-10 17:25:37
山猫 发表于 2018-8-10 17:20
你给我出现证书问题的原因,我让同事看一下

我h5环境是正常的  但是  安卓下 https 请求没问题 socket wss连接socket就连不上 提示这个错误
n1cecmj  登堂入室 | 2018-8-10 17:34:15
本帖最后由 n1cecmj 于 2018-8-10 17:36 编辑


山猫  官方团队 | 2018-8-10 17:34:42
需要一个外网服务器给我们测试,我们测试webSocket官方的wss测试地址没有问题
n1cecmj  登堂入室 | 2018-8-10 17:38:51
山猫 发表于 2018-8-10 17:34
需要一个外网服务器给我们测试,我们测试webSocket官方的wss测试地址没有问题 ...

能私聊吗
山猫  官方团队 | 2018-8-10 17:39:28
可以,加一下你的微信号,把你的微信号发过来
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|京网文[2014]0791-191号|京ICP证150115号|Egret社区 ( 京ICP备14025619号

Powered by Discuz! X3.2 © 2001-2019 Comsenz Inc.

返回顶部