fastjson 报错 StackOverflowError

2021-04-13  本文已影响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>
上一篇下一篇

猜你喜欢

热点阅读