美文网首页
fastjson 报错 StackOverflowError

fastjson 报错 StackOverflowError

作者: 邵红晓 | 来源:发表于2021-04-13 13:37 被阅读0次
    java.lang.StackOverflowError
        at com.alibaba.fastjson.JSONObject.<init>(JSONObject.java:63)
        at com.alibaba.fastjson.JSONObjectConstructorAccess.newInstance(Unknown Source)
        at com.twitter.chill.Instantiators$.$anonfun$reflectAsm$1(KryoBase.scala:149)
        at com.twitter.chill.Instantiators$$anon$1.newInstance(KryoBase.scala:133)
        at com.esotericsoftware.kryo.Kryo.newInstance(Kryo.java:1061)
        at com.esotericsoftware.kryo.serializers.MapSerializer.createCopy(MapSerializer.java:150)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:154)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:21)
        at com.esotericsoftware.kryo.Kryo.copy(Kryo.java:862)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:157)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:21)
        at com.esotericsoftware.kryo.Kryo.copy(Kryo.java:862)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:157)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:21)
        at com.esotericsoftware.kryo.Kryo.copy(Kryo.java:862)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:157)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:21)
        at com.esotericsoftware.kryo.Kryo.copy(Kryo.java:862)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:157)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:21)
        at com.esotericsoftware.kryo.Kryo.copy(Kryo.java:862)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:157)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:21)
        at com.esotericsoftware.kryo.Kryo.copy(Kryo.java:862)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:157)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:21)
        at com.esotericsoftware.kryo.Kryo.copy(Kryo.java:862)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:157)
        at com.esotericsoftware.kryo.serializers.MapSerializer.copy(MapSerializer.java:21)
    

    解决问题:
    升级版本58-->76

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

    相关文章

      网友评论

          本文标题:fastjson 报错 StackOverflowError

          本文链接:https://www.haomeiwen.com/subject/xdzqlltx.html