com.alibaba.fastjson.JSONException: create asm serializer error, class class cn.dceast.community.archives.characteristic.vo.Test

GitHub | chutian52 | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Use @JSONField(format="yyyy年MM月dd日") cause com.alibaba.fastjson.JSONException: create asm serializer error

    GitHub | 6 months ago | chutian52
    com.alibaba.fastjson.JSONException: create asm serializer error, class class cn.dceast.community.archives.characteristic.vo.Test
  2. 0

    特殊字符<br/>导致 at com.alibaba.fastjson.JSON.toJSONString(JSON.java:402)失败

    GitHub | 2 years ago | wangliangliang
    com.alibaba.fastjson.JSONException: write javaBean error

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      No message provided

      at com.alibaba.fastjson.asm.ByteVector.putUTF8()
    2. fastjson
      JSON.toJSONString
      1. com.alibaba.fastjson.asm.ByteVector.putUTF8(ByteVector.java:185)
      2. com.alibaba.fastjson.asm.ClassWriter.newUTF8(ClassWriter.java:272)
      3. com.alibaba.fastjson.asm.ClassWriter.newString(ClassWriter.java:347)
      4. com.alibaba.fastjson.asm.ClassWriter.newConstItem(ClassWriter.java:259)
      5. com.alibaba.fastjson.asm.MethodWriter.visitLdcInsn(MethodWriter.java:217)
      6. com.alibaba.fastjson.serializer.ASMSerializerFactory._writeObject(ASMSerializerFactory.java:1321)
      7. com.alibaba.fastjson.serializer.ASMSerializerFactory._object(ASMSerializerFactory.java:697)
      8. com.alibaba.fastjson.serializer.ASMSerializerFactory.generateWriteMethod(ASMSerializerFactory.java:653)
      9. com.alibaba.fastjson.serializer.ASMSerializerFactory.createJavaBeanSerializer(ASMSerializerFactory.java:281)
      10. com.alibaba.fastjson.serializer.SerializeConfig.createASMSerializer(SerializeConfig.java:97)
      11. com.alibaba.fastjson.serializer.SerializeConfig.createJavaBeanSerializer(SerializeConfig.java:135)
      12. com.alibaba.fastjson.serializer.SerializeConfig.getObjectWriter(SerializeConfig.java:393)
      13. com.alibaba.fastjson.serializer.JSONSerializer.getObjectWriter(JSONSerializer.java:392)
      14. com.alibaba.fastjson.serializer.JSONSerializer.write(JSONSerializer.java:335)
      15. com.alibaba.fastjson.JSON.toJSONString(JSON.java:488)
      16. com.alibaba.fastjson.JSON.toJSONString(JSON.java:421)
      17. com.alibaba.fastjson.JSON.toJSONString(JSON.java:391)
      17 frames
    3. cn.dceast.community
      Test.main
      1. cn.dceast.community.archives.characteristic.vo.Test.main(Test.java:25)
      1 frame