com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of com.example.PoJO, problem: argument type mismatch at [Source: java.io.PushbackInputStream@52de93f1; line: 1, column: 1138]

Stack Overflow | Laures | 3 months ago
  1. 0

    Jackson tries to use all argument constructor since update to 2.8.1

    Stack Overflow | 3 months ago | Laures
    com.fasterxml.jackson.databind.JsonMappingException: Can not construct instance of com.example.PoJO, problem: argument type mismatch at [Source: java.io.PushbackInputStream@52de93f1; line: 1, column: 1138]
  2. 0

    Unable to use receiver firehose

    Google Groups | 2 years ago | Deepak Jain
    com.fasterxml.jackson.databind.JsonMappingException: Instantiation of [simple type, class io.druid.segment.realtime.firehose.EventReceiverFirehoseFactory] value failed: argument type mismatch
  3. 0

    Custom JsonDeserializer for a primitive breaks default value handling in 2.6.x

    GitHub | 1 year ago | wilkinsona
    com.fasterxml.jackson.databind.JsonMappingException: Instantiation of [simple type, class com.example.DefaultValuesTests$Pojo] value failed: null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spark 1.4.1 on MapR 5 - crashing Spark application - MapR Answers

    mapr.com | 1 year ago
    java.lang.IllegalArgumentException: argument type mismatch
  6. 0

    Constructor.newInstance(): java.lang.IllegalArgumentException: argument type mismatch

    Stack Overflow | 11 months ago | Xiaolong Zuo
    com.zuoxiaolong.niubi.job.core.exception.NiubiException: java.lang.IllegalArgumentException: argument type mismatch

  1. musketyr 6 times, last 3 weeks ago
  2. stigkj 3 times, last 1 month ago
  3. tvrmsmith 21 times, last 5 months ago
  4. Nikolay Rybak 2 times, last 7 months ago
16 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    argument type mismatch

    at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
  2. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:422)
    4 frames
  3. Jackson
    ObjectMapper.readValue
    1. com.fasterxml.jackson.databind.introspect.AnnotatedConstructor.call(AnnotatedConstructor.java:124)
    2. com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromObjectWith(StdValueInstantiator.java:274)
    3. com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:268)
    4. com.fasterxml.jackson.databind.DeserializationContext.instantiationException(DeserializationContext.java:1405)
    5. com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.wrapAsJsonMappingException(StdValueInstantiator.java:468)
    6. com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.rewrapCtorProblem(StdValueInstantiator.java:487)
    7. com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromObjectWith(StdValueInstantiator.java:276)
    8. com.fasterxml.jackson.databind.deser.ValueInstantiator.createFromObjectWith(ValueInstantiator.java:224)
    9. com.fasterxml.jackson.databind.deser.impl.PropertyBasedCreator.build(PropertyBasedCreator.java:135)
    10. com.fasterxml.jackson.databind.deser.impl.ExternalTypeHandler.complete(ExternalTypeHandler.java:225)
    11. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeUsingPropertyBasedWithExternalTypeId(BeanDeserializer.java:937)
    12. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeWithExternalTypeId(BeanDeserializer.java:792)
    13. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:312)
    14. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:148)
    15. com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3789)
    16. com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2913)
    16 frames
  4. Spring
    AbstractJackson2HttpMessageConverter.readJavaType
    1. org.springframework.http.converter.json.AbstractJackson2HttpMessageConverter.readJavaType(AbstractJackson2HttpMessageConverter.java:225)
    1 frame