com.fasterxml.jackson.databind.JsonMappingException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

    • com.fasterxml.jackson.databind.JsonMappingException: api.Json cannot be cast to java.lang.String (through reference chain: api.Data["json"]) at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:378)[jackson-databind-2.7.5.jar:2.7.5] at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:338)[jackson-databind-2.7.5.jar:2.7.5] at com.fasterxml.jackson.databind.ser.std.StdSerializer.wrapAndThrow(StdSerializer.java:342)[jackson-databind-2.7.5.jar:2.7.5] at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:686)[jackson-databind-2.7.5.jar:2.7.5] at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157)[jackson-databind-2.7.5.jar:2.7.5] at com.fasterxml.jackson.databind.ser.DefaultSerializerProvider.serializeValue(DefaultSerializerProvider.java:130)[jackson-databind-2.7.5.jar:2.7.5] at com.fasterxml.jackson.databind.ObjectWriter$Prefetch.serialize(ObjectWriter.java:1428)[jackson-databind-2.7.5.jar:2.7.5] at com.fasterxml.jackson.databind.ObjectWriter.writeValue(ObjectWriter.java:930)[jackson-databind-2.7.5.jar:2.7.5] at com.fasterxml.jackson.jaxrs.base.ProviderBase.writeTo(ProviderBase.java:635)[jackson-jaxrs-base-2.6.3.jar:2.6.3] at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:265)[jersey-common-2.23.2.jar:na] at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:250)[jersey-common-2.23.2.jar:na] at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)[jersey-common-2.23.2.jar:na] at org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:106)[jersey-server-2.23.2.jar:na] at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:162)[jersey-common-2.23.2.jar:na] at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:86)[jersey-server-2.23.2.jar:na] Caused by: java.lang.ClassCastException: api.Json cannot be cast to java.lang.String at com.fasterxml.jackson.databind.ser.std.StringSerializer.serialize(StringSerializer.java:49)[jackson-databind-2.7.5.jar:2.7.5] at com.fasterxml.jackson.module.scala.ser.OptionSerializer.serialize(OptionSerializerModule.scala:145)[jackson-module-scala_2.10-2.7.5.jar:na] at com.fasterxml.jackson.module.scala.ser.OptionSerializer.serialize(OptionSerializerModule.scala:60)[jackson-module-scala_2.10-2.7.5.jar:na] at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:672)[jackson-databind-2.7.5.jar:2.7.5] at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:678)[jackson-databind-2.7.5.jar:2.7.5] ... 15 more
    No Bugmate found.