java.lang.IllegalArgumentException: JsonSerializer of type CustomSerializer does not define valid handledType() -- must either register with method that takes type argument or make serializer extend 'com.fasterxml.jackson.databind.ser.std.StdSerializer'

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Jackson custom serializer by field name?

    Stack Overflow | 8 months ago | Siddharth Trikha
    java.lang.IllegalArgumentException: JsonSerializer of type CustomSerializer does not define valid handledType() -- must either register with method that takes type argument or make serializer extend 'com.fasterxml.jackson.databind.ser.std.StdSerializer'

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      JsonSerializer of type CustomSerializer does not define valid handledType() -- must either register with method that takes type argument or make serializer extend 'com.fasterxml.jackson.databind.ser.std.StdSerializer'

      at com.fasterxml.jackson.databind.module.SimpleSerializers.addSerializer()
    2. Jackson
      SimpleModule.addSerializer
      1. com.fasterxml.jackson.databind.module.SimpleSerializers.addSerializer(SimpleSerializers.java:80)
      2. com.fasterxml.jackson.databind.module.SimpleModule.addSerializer(SimpleModule.java:240)
      2 frames