java.lang.StackOverflowError: null

异常信息

java.lang.StackOverflowError: null
    at sun.misc.FloatingDecimal$BinaryToASCIIBuffer.dtoa(FloatingDecimal.java:431) ~[na:1.8.0_77]
    at sun.misc.FloatingDecimal$BinaryToASCIIBuffer.access$100(FloatingDecimal.java:259) ~[na:1.8.0_77]
    at sun.misc.FloatingDecimal.getBinaryToASCIIConverter(FloatingDecimal.java:1785) ~[na:1.8.0_77]
    at sun.misc.FloatingDecimal.getBinaryToASCIIConverter(FloatingDecimal.java:1738) ~[na:1.8.0_77]
    at sun.misc.FloatingDecimal.toJavaFormatString(FloatingDecimal.java:70) ~[na:1.8.0_77]
    at java.lang.Double.toString(Double.java:204) ~[na:1.8.0_77]
    at com.alibaba.fastjson.serializer.SerializeWriter.writeDouble(SerializeWriter.java:669) ~[fastjson-1.2.47.jar:na]
    at com.alibaba.fastjson.serializer.SerializeWriter.writeFieldValue(SerializeWriter.java:1767) ~[fastjson-1.2.47.jar:na]
    at com.alibaba.fastjson.serializer.ASMSerializer_5_JulianDateStamp.write(Unknown Source) ~[na:na]
    at com.alibaba.fastjson.serializer.ASMSerializer_5_JulianDateStamp.write(Unknown Source) ~[na:na]
    at com.alibaba.fastjson.serializer.ASMSerializer_5_JulianDateStamp.write(Unknown Source) ~[na:na]
    at com.alibaba.fastjson.serializer.ASMSerializer_5_JulianDateStamp.write(Unknown Source) ~[na:na]
    at com.alibaba.fastjson.serializer.ASMSerializer_5_JulianDateStamp.write(Unknown Source) ~[na:na]
    at com.alibaba.fastjson.serializer.ASMSerializer_5_JulianDateStamp.write(Unknown Source) ~[na:na]

出问题的代码

System.out.println("list:" + JSON.toJSONString(list));

引用json的包是

<dependency>
    <groupId>com.alibaba</groupId>
    <artifactId>fastjson</artifactId>
    <version>1.2.47</version>
</dependency>

原因不明

 

posted on 2018-05-23 17:37  流年染指了悲伤  阅读(9458)  评论(1编辑  收藏  举报