fastjson parseObject java.lang.VerifyError

java.lang.VerifyError: (class: com/alibaba/fastjson/parser/deserializer/FastjsonASMDeserializer_1_Vo, method: deserialze signature: (Lcom/alibaba/fastjson/parser/DefaultJSONParser;Ljava/lang/reflect/Type;Ljava/lang/Object;I)Ljava/lang/Object;) Accessing value from uninitialized register 47

at java.lang.Class.getDeclaredConstructors0(Native Method)

at java.lang.Class.privateGetDeclaredConstructors(Class.java:2585)

at java.lang.Class.getConstructor0(Class.java:2885)

at java.lang.Class.getConstructor(Class.java:1723)

at com.alibaba.fastjson.parser.deserializer.ASMDeserializerFactory.createJavaBeanDeserializer(ASMDeserializerFactory.java:82)

at com.alibaba.fastjson.parser.ParserConfig.createJavaBeanDeserializer(ParserConfig.java:639)

at com.alibaba.fastjson.parser.ParserConfig.getDeserializer(ParserConfig.java:491)

at com.alibaba.fastjson.parser.ParserConfig.getDeserializer(ParserConfig.java:348)

at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:639)

at com.alibaba.fastjson.JSON.parseObject(JSON.java:350)

at com.alibaba.fastjson.JSON.parseObject(JSON.java:254)

at com.alibaba.fastjson.JSON.parseObject(JSON.java:467)

 

添加代码

ParserConfig.getGlobalInstance().setAsmEnable(false);

解决办法参照https://github.com/alibaba/fastjson/issues/383

 

 

 

 

你可能感兴趣的:(fastjson)