alibaba / fastjson

FASTJSON 2.0.x has been released, faster and more secure, recommend you upgrade.
https://github.com/alibaba/fastjson2/wiki/fastjson_1_upgrade_cn
Apache License 2.0
25.74k stars 6.5k forks source link

1.2.49 Could not initialize class com.alibaba.fastjson.util.RyuDouble #2034

Open Bobi-zhou opened 6 years ago

Bobi-zhou commented 6 years ago

Handler processing failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.fastjson.util.RyuDouble

liangzhu1984 commented 6 years ago

Exception in thread "main" java.lang.NoSuchMethodError: java.math.BigInteger.intValueExact()I at com.alibaba.fastjson.util.RyuDouble.(RyuDouble.java:67)

jiao808813 commented 6 years ago

10254 java.lang.NoSuchMethodError

No virtual method intValueExact()I in class Ljava/math/BigInteger; or its super classes (declaration of 'java.math.BigInteger' appears in /system/framework/core-libart.jar)

com.alibaba.fastjson.util.RyuDouble.(RyuDouble.java:67)

jiao808813 commented 6 years ago

看来只能停留在1.2.48版本了

easy2debug commented 6 years ago

“java.lang.NoClassDefFoundError: Could not initialize class com.alibaba.fastjson.util.RyuDouble",i got the exception when the deserialization operation runs on the 1.7 version jdk,but have not replayed in the 1.8 envirionment.the same as fastjson 1.2.51

cap10 commented 1 month ago

try adding this dependency:

com.alibaba fastjson 1.2.83_noneautotype provided