使用fastjson序列化动态代理参数,抛出java.lang.IllegalAccessError

时间:2018-08-12 05:33:30

标签: java illegalaccessexception fastjson

public Object invoke(Object proxy, final Method method, final Object[] args) throws Throwable {
    ......
    JSON.toJSONString(args);

}

原因:java.lang.IllegalAccessError:com / google / common / util / concurrent / AbstractFuture $ TrustedFuture     在com.alibaba.fastjson.serializer.ASMSerializer_33_SettableFuture.write(未知来源)〜[?:?]     在com.alibaba.fastjson.serializer.ASMSerializer_32_CustomThriftCallback.write(未知来源)〜[?:?]     在com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName(JSONSerializer.java:304)〜[fastjson-1.2.29.jar :?]     在com.alibaba.fastjson.serializer.JSONSerializer.writeWithFieldName(JSONSerializer.java:282)〜[fastjson-1.2.29.jar :?]     在com.alibaba.fastjson.serializer.ObjectArrayCodec.write(ObjectArrayCodec.java:118)〜[fastjson-1.2.29.jar :?]     在com.alibaba.fastjson.serializer.JSONSerializer.write(JSONSerializer.java:275)〜[fastjson-1.2.29.jar :?]     在com.alibaba.fastjson.JSON.toJSONString(JSON.java:648)〜[fastjson-1.2.29.jar :?]     在com.alibaba.fastjson.JSON.toJSONString(JSON.java:590)〜[fastjson-1.2.29.jar :?]     在com.alibaba.fastjson.JSON.toJSONString(JSON.java:555)〜[fastjson-1.2.29.jar:?]

0 个答案:

没有答案