fastjson : java.lang.ArrayIndexOutOfBoundsException: 160

stevenjohn 发布于 2014/07/01 14:36
阅读 3K+
收藏 0
java.lang.ArrayIndexOutOfBoundsException: 160
at com.alibaba.fastjson.serializer.SerializeWriter.writeFieldValueStringWithDoubleQuote(SerializeWriter.java:1273) ~[fastjson-1.1.38.jar:na]
at com.alibaba.fastjson.serializer.SerializeWriter.writeFieldValue(SerializeWriter.java:1133) ~[fastjson-1.1.38.jar:na]
at Serializer_15.write1(Unknown Source) ~[na:na]
at Serializer_15.write(Unknown Source) ~[na:na]
at com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName(JSONSerializer.java:398) ~[fastjson-1.1.38.jar:na]
at com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName(JSONSerializer.java:376) ~[fastjson-1.1.38.jar:na]
at com.alibaba.fastjson.serializer.ObjectArraySerializer.write(ObjectArraySerializer.java:111) ~[fastjson-1.1.38.jar:na]
at com.alibaba.fastjson.serializer.JSONSerializer.write(JSONSerializer.java:369) ~[fastjson-1.1.38.jar:na]
at com.alibaba.fastjson.JSON.toJSONString(JSON.java:418) ~[fastjson-1.1.38.jar:na]
at com.alibaba.fastjson.JSON.toJSONString(JSON.java:406) ~[fastjson-1.1.38.jar:na]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [na:1.6.0_20]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [na:1.6.0_20]

at java.lang.Thread.run(Thread.java:619) [na:1.6.0_20]



我用JSON.toJSONString(TBean)输出,这个bean,是不是长度太长了?

加载中
0
sxgkwei
sxgkwei
...你还是用其它的json工具jar试试吧。为什么要用阿里的呢
0
h
haishi_19
请问解决没有
0
h
haishi_19
我刚刚碰到这个问题。。
0
ray_wang
ray_wang
我用fastjson也有个问题,如果字段名字是大写的话,json格式首字母会被转成小写,gson没有这个问题 
0
PengKangde
PengKangde
gson才是未来
0
momisabuilder
momisabuilder
昨天遇到个问题了。原来使用的是fastjson.1.1.39.jar。升级到fastjson.1.2.1.jar就OK了。快升级。
返回顶部
顶部