致命异常:在Socket.io Android中发生java.util.ConcurrentModificationException

时间:2016-09-22 05:47:00

标签: javascript java android websocket socket.io

当我在应用程序中使用时,我经常收到下面提到的错误,我使用的是版本io.socket:socket.io-client:0.7.0。

Fatal Exception: java.util.ConcurrentModificationException
at java.util.ArrayList$ArrayListIterator.next(ArrayList.java:573)
at java.util.AbstractCollection.toString(AbstractCollection.java:372)
at org.json.JSONStringer.value(JSONStringer.java:252)
at org.json.JSONObject.writeTo(JSONObject.java:720)
at org.json.JSONStringer.value(JSONStringer.java:237)
at org.json.JSONObject.writeTo(JSONObject.java:720)
at org.json.JSONStringer.value(JSONStringer.java:237)
at org.json.JSONArray.writeTo(JSONArray.java:613)
at org.json.JSONArray.toString(JSONArray.java:585)
at java.lang.StringBuilder.append(StringBuilder.java:202)
at io.socket.parser.Parser$Encoder.encodeAsString(Parser.java:116)
at io.socket.parser.Parser$Encoder.encode(Parser.java:85)
at io.socket.client.Manager.packet(Manager.java:461)
at io.socket.client.Socket.packet(Socket.java:264)
at io.socket.client.Socket.access$1100(Socket.java:19)
at io.socket.client.Socket$5.run(Socket.java:201)
at io.socket.thread.EventThread$2.run(EventThread.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
at java.lang.Thread.run(Thread.java:818)

0 个答案:

没有答案