Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.2.11 泛型子类序列化出错 #621

Closed
luohoufu opened this issue May 10, 2016 · 1 comment
Closed

1.2.11 泛型子类序列化出错 #621

luohoufu opened this issue May 10, 2016 · 1 comment
Labels
Milestone

Comments

@luohoufu
Copy link

Caused by: java.lang.VerifyError: (class: com/alibaba/fastjson/serializer/ASMSerializer_3_StringResult, method: writeAsArrayNonContext signature: (Lcom/alibaba/fastjson/serializer/JSONSerializer;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/reflect/Type;I)V) Incompatible argument to function

class StringResult extends Result<String>

 StringResult result = new StringResult();
        result.setRequestId(requestId);
        result.setCode(code);
        result.setMessage(message);
        return JSONObject.toJSONString(result, SerializerFeature.WriteMapNullValue);

at java.lang.Class.getDeclaredConstructors0(Native Method) ~[?:1.7.0_80]
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2595) ~[?:1.7.0_80]
at java.lang.Class.getConstructor0(Class.java:2895) ~[?:1.7.0_80]
at java.lang.Class.newInstance(Class.java:354) ~[?:1.7.0_80]
at com.alibaba.fastjson.serializer.ASMSerializerFactory.createJavaBeanSerializer(ASMSerializerFactory.java:438) ~[fastjson-1.2.11.jar:?]
at com.alibaba.fastjson.serializer.SerializeConfig.createASMSerializer(SerializeConfig.java:99) ~[fastjson-1.2.11.jar:?]
at com.alibaba.fastjson.serializer.SerializeConfig.createJavaBeanSerializer(SerializeConfig.java:137) ~[fastjson-1.2.11.jar:?]
... 55 more

@wenshao wenshao added this to the 1.2.12 milestone May 10, 2016
@wenshao
Copy link
Member

wenshao commented May 10, 2016

谢谢反馈,已知问题,已经修正,请先用1.2.8版本,1.2.12版本将会解决这个问题,预计这个月22日发布

@wenshao wenshao added the bug label May 10, 2016
@wenshao wenshao closed this as completed May 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants