在接收数据时报com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
json转换错误,不知道改动哪里,求救
2016-04-13 16:30:29.071 ERROR [pool-3-thread-64][ServerCoreHandler.java:48] - [IMCORE]exceptionCaught捕获到错了,原因是:java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:176) ~[gson-2.2.4.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:803) ~[gson-2.2.4.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:768) ~[gson-2.2.4.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:717) ~[gson-2.2.4.jar:?]
at com.google.gson.Gson.fromJson(Gson.java:689) ~[gson-2.2.4.jar:?]
at net.openmob.mobileimsdk.server.protocal.ProtocalFactory.parse(ProtocalFactory.java:34) ~[msg.jar:?]
at net.openmob.mobileimsdk.server.ServerCoreHandler.fromIOBuffer(ServerCoreHandler.java:455) ~[msg.jar:?]
at net.openmob.mobileimsdk.server.ServerCoreHandler.messageReceived(ServerCoreHandler.java:57) [msg.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:854) [mina-core-2.0.10.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:542) [mina-core-2.0.10.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1300(DefaultIoFilterChain.java:48) [mina-core-2.0.10.jar:?]
at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:943) [mina-core-2.0.10.jar:?]
at org.apache.mina.core.filterchain.IoFilterEvent.fire(IoFilterEvent.java:74) [mina-core-2.0.10.jar:?]
at org.apache.mina.core.session.IoEvent.run(IoEvent.java:63) [mina-core-2.0.10.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [?:1.7.0_71]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [?:1.7.0_71]
at java.lang.Thread.run(Thread.java:745) [?:1.7.0_71]
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1
at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:374) ~[gson-2.2.4.jar:?]
at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:165) ~[gson-2.2.4.jar:?]
... 16 more