Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,
    Expert tip

    Try indicating constructor to use @JsonCreator annotation.

  2. ,

    You are trying to deserialize a type for which Jackson does not provide a default mapper. You should create your custom mapper for this type.

com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
        at [Source: java.io.StringReader@c8f7297; line: 1, column: 1]	at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:575)	at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:46)	at com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:11)	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888)	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034)	at com.firebase.client.DataSnapshot.getValue(DataSnapshot.java:192)	at com.example.ispotrachel.myapplication.MainActivity$1.onDataChange(MainActivity.java:79)	at com.firebase.client.core.ValueEventRegistration$1.run(ValueEventRegistration.java:48)	at android.os.Handler.dispatchMessage(Handler.java:95)	at android.os.Looper.loop(Looper.java:135)	at android.app.ActivityThread.main(ActivityThread.java:5221)	at java.lang.reflect.Method.invoke(Native Method)	at java.lang.reflect.Method.invoke(Method.java:372)	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)