com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@5751a0d8; line: 1, column: 14] (through reference chain: io.confluent.kafkarest.entities.TopicProduceRequest["records"]->java.util.ArrayList[0]->io.confluent.kafkarest.entities.BinaryTopicProduceRecord["value"])

Google Groups | Michael Richardson | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Incorrect vnd.kafka Content-Type gives 500 Internal Server Error on Confluent Kafka REST Proxy

    Google Groups | 7 months ago | Michael Richardson
    com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@5751a0d8; line: 1, column: 14] (through reference chain: io.confluent.kafkarest.entities.TopicProduceRequest["records"]->java.util.ArrayList[0]->io.confluent.kafkarest.entities.BinaryTopicProduceRecord["value"])
  2. 0

    How to use PHP to send JSON data to kafka?

    Google Groups | 8 months ago | Shrinivasan T
    com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@4aaa92e8; line: 1, column: 16] (through reference chain: io.confluent.kafkarest.entities.TopicProduceRequest["records"]->java.util.ArrayList[0]->io.confluent.kafkarest.entities.BinaryTopicProduceRecord["value"])
  3. 0

    GitHub comment 87#259695895

    GitHub | 3 months ago | yogeshsangvikar
    com.fasterxml.jackson.databind.JsonMappingException: Unexpected character ('}' (code 125)): expected a value at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@222e98a3; line: 1, column: 146](through reference chain: io.confluent.kafkarest.entities.TopicProduceRequest["records"]->java.util.ArrayList[0]->io.confluent.kafkarest.entities.JsonTopicProduceRecord["value"])
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Schema registration always returns HTTP 500 from Confluent Schema Registry

    GitHub | 10 months ago | theturtle32
    com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@4923d986; line: 1, column: 2] (through reference chain: io.confluent.kafka.schemaregistry.client.rest.entities.requests.RegisterSchemaRequest["schema"])
  6. 0

    Ingesting HDFS data with Druid

    Google Groups | 3 years ago | Chadin Anuwattanaporn
    com.fasterxml.jackson.databind.JsonMappingException: Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'type' that is to contain type id (for class io.druid.indexing.common.task.Task) at [Source: org.eclipse.jetty.server.HttpInput@1584da34; line: 1, column: 1208] at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164) com.fasterxml.jackson.databind.DeserializationContext.wrongTokenException(DeserializationContext.java:668)
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. com.fasterxml.jackson.databind.JsonMappingException

    Can not deserialize instance of java.lang.String out of START_OBJECT token at [Source: org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$UnCloseableInputStream@5751a0d8; line: 1, column: 14] (through reference chain: io.confluent.kafkarest.entities.TopicProduceRequest["records"]->java.util.ArrayList[0]->io.confluent.kafkarest.entities.BinaryTopicProduceRecord["value"])

    at com.fasterxml.jackson.databind.JsonMappingException.from()
  2. Jackson
    ObjectReader.readValue
    1. com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:148)
    2. com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:835)
    3. com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:59)
    4. com.fasterxml.jackson.databind.deser.std.StringDeserializer.deserialize(StringDeserializer.java:12)
    5. com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:523)
    6. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeWithErrorWrapping(BeanDeserializer.java:461)
    7. com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeUsingPropertyBased(BeanDeserializer.java:381)
    8. com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromObjectUsingNonDefault(BeanDeserializerBase.java:1073)
    9. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:295)
    10. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:142)
    11. com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)
    12. com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:217)
    13. com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:25)
    14. com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:523)
    15. com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
    16. com.fasterxml.jackson.databind.deser.impl.BeanPropertyMap.findDeserializeAndSet(BeanPropertyMap.java:285)
    17. com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:248)
    18. com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:136)
    19. com.fasterxml.jackson.databind.ObjectReader._bind(ObjectReader.java:1410)
    20. com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:860)
    20 frames
  3. Jackson-JAXRS-base
    ProviderBase.readFrom
    1. com.fasterxml.jackson.jaxrs.base.ProviderBase.readFrom(ProviderBase.java:810)
    1 frame
  4. io.confluent.rest
    JacksonMessageBodyProvider.readFrom
    1. io.confluent.rest.validation.JacksonMessageBodyProvider.readFrom(JacksonMessageBodyProvider.java:65)
    1 frame
  5. Jersey Core
    ReaderInterceptorExecutor.proceed
    1. org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.invokeReadFrom(ReaderInterceptorExecutor.java:260)
    2. org.glassfish.jersey.message.internal.ReaderInterceptorExecutor$TerminalReaderInterceptor.aroundReadFrom(ReaderInterceptorExecutor.java:236)
    3. org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:156)
    3 frames
  6. jersey-core-server
    MappableExceptionWrapperInterceptor.aroundReadFrom
    1. org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundReadFrom(MappableExceptionWrapperInterceptor.java:74)
    1 frame
  7. Jersey Core
    InboundMessageContext.readEntity
    1. org.glassfish.jersey.message.internal.ReaderInterceptorExecutor.proceed(ReaderInterceptorExecutor.java:156)
    2. org.glassfish.jersey.message.internal.MessageBodyFactory.readFrom(MessageBodyFactory.java:1085)
    3. org.glassfish.jersey.message.internal.InboundMessageContext.readEntity(InboundMessageContext.java:853)
    3 frames
  8. jersey-core-server
    ServerRuntime$2.run
    1. org.glassfish.jersey.server.ContainerRequest.readEntity(ContainerRequest.java:270)
    2. org.glassfish.jersey.server.internal.inject.EntityParamValueFactoryProvider$EntityValueFactory.provide(EntityParamValueFactoryProvider.java:96)
    3. org.glassfish.jersey.server.spi.internal.ParameterValueHelper.getParameterValues(ParameterValueHelper.java:81)
    4. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$AbstractMethodParamInvoker.getParamValues(JavaResourceMethodDispatcherProvider.java:127)
    5. org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$VoidOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:143)
    6. org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99)
    7. org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389)
    8. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347)
    9. org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102)
    10. org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:308)
    10 frames
  9. Jersey Core
    RequestScope.runInScope
    1. org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
    2. org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
    3. org.glassfish.jersey.internal.Errors.process(Errors.java:315)
    4. org.glassfish.jersey.internal.Errors.process(Errors.java:297)
    5. org.glassfish.jersey.internal.Errors.process(Errors.java:267)
    6. org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317)
    6 frames
  10. jersey-core-server
    ApplicationHandler.handle
    1. org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:291)
    2. org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1140)
    2 frames
  11. jersey-container-servlet-core
    ServletContainer.service
    1. org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:403)
    2. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:386)
    3. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:334)
    4. org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:221)
    4 frames
  12. Jetty
    HttpChannel.handle
    1. org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
    2. org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)
    3. org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)
    4. org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
    5. org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
    6. org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
    7. org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
    8. org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
    9. org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
    10. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    11. org.eclipse.jetty.server.handler.StatisticsHandler.handle(StatisticsHandler.java:159)
    12. org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
    13. org.eclipse.jetty.server.Server.handle(Server.java:499)
    14. org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
    14 frames