javax.net.ssl.SSLHandshakeException: Java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
好傷心,繼續百度,這是android https 證書信任問題,因爲websocket的url是https的,提示我缺乏安全證書,SSL證書,這個過程中發下了三篇優秀的博客,
http://blog.csdn.Net/lmj623565791/article/details/48129405 這是鴻洋大神寫的當OkHttp遇到Https,
還有一篇也就是能最快解決這種缺乏證書信任問題的博客,就是直接屏蔽掉,簡單好用http://blog.csdn.net/zhong1113/article/details/51492469,但是建議讀一下大神的博客,好高深。
如果大家想更多的瞭解webSocket,強烈推薦http://www.open-open.com/lib/view/open1476778263175.html,講的特別詳細