2
回答
fastjson报java.lang.VerifyError:错误
华为云实践训练营,热门技术免费实践!>>>   

fastjson: 1.2.28, jdk :1.8

调用这个方法:JSON.parseObject(json, clz);

参数:String json ="{\"regionName\":\"sssssss\"}";

clz = FcScamRentalBatchDto.class;
 当FcScamRentalBatchDto的字段为32个时,会报如下错误,少于32个不报错。

Exception in thread "main" java.lang.VerifyError: (class: com/alibaba/fastjson/parser/deserializer/FastjsonASMDeserializer_1_FcScamRentalBatchDto, 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:2671)
    at java.lang.Class.getConstructor0(Class.java:3075)
    at java.lang.Class.getConstructor(Class.java:1825)
    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)

 

<无标签>
举报
jinzhun100
发帖于8个月前 2回/925阅
顶部