com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of org.springframework.xd.rest.domain.JobExecutionInfoResource[] out of START_OBJECT token at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@4478de9f; line: 1, column: 1]

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

,
Expert tip

Try indicating constructor to use @JsonCreator annotation.

,

The easiest solution is to provide a default constructor for the class you want to convert from/to json.

Solutions on the web

via Stack Overflow by black jack
, 1 year ago
Can not deserialize instance of org.springframework.xd.rest.domain.JobExecutionInfoResource[] out of START_OBJECT token at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@4478de9f; line: 1, column: 1]
via GitHub by martiner
, 1 year ago
No suitable constructor found for type [simple type, class com.gooddata.project.Project]: can not instantiate from JSON object (need to add/enable type information?) at [Source: org.apache.http.client.entity.LazyDecompressingInputStream@25da8379; line: 1, column: 2]
via Stack Overflow by Ivan T
, 2 years ago
Unexpected token (END_OBJECT), expected FIELD_NAME: missing property 'postType' that is to contain type id (for class org.springframework.social.facebook.api.LinkPost) at [Source: java.io.ByteArrayInputStream@6ca79a6a; line: 1, column: 11114]
via Spring JIRA by Craig Walls, 1 year ago
No suitable constructor found for type [simple type, class org.springframework.social.facebook.api.FacebookProfile]: can not instantiate from JSON object (need to add/enable type information?) at [Source: java.io.ByteArrayInputStream@7e305fb2; line: 1, column: 2]
via 28im.com by Unknown author, 2 years ago
Can not deserialize instance of com.example.jarek.stratcaller.TacticsEntity out of START_ARRAY token at [Source: buffer(com.android.okhttp.internal.http.HttpConnection$ChunkedSource@2325082d).inputStream(); line: 1, column: 1]
via Stack Overflow by henorek
, 2 years ago
Can not deserialize instance of com.example.jarek.stratcaller.TacticsEntity out of START_ARRAY token at [Source: buffer(com.android.okhttp.internal.http.HttpConnection$ChunkedSource@2325082d).inputStream(); line: 1, column: 1]
com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of org.springframework.xd.rest.domain.JobExecutionInfoResource[] out of START_OBJECT token at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@4478de9f; line: 1, column: 1]
at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)
at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:691)
at com.fasterxml.jackson.databind.DeserializationContext.mappingException(DeserializationContext.java:685)
at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.handleNonArray(ObjectArrayDeserializer.java:222)
at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:133)
at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:18)
at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2993)
at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.readJavaType(MappingJackson2HttpMessageConverter.java:225)
at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.read(MappingJackson2HttpMessageConverter.java:220)
at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:95)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:553)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:506)
at org.springframework.xd.rest.client.impl.JobTemplate.listJobExecutions(JobTemplate.java:145)
at com.citiustech.hscale.dataIngestion.App.main(App.java:20)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
2 times, 2 years ago
2 times, 1 year ago
4 times, 1 year ago
4 times, 7 months ago
160 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.