com.fasterxml.jackson.databind.JsonMappingException: 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]

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

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 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 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 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 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: 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]
at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.readJavaType(MappingJackson2HttpMessageConverter.java:181)
at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.read(MappingJackson2HttpMessageConverter.java:173)
at org.springframework.web.client.HttpMessageConverterExtractor.extractData(HttpMessageConverterExtractor.java:94)
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:496)
at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:452)
at com.gooddata.project.ProjectService.getProjectByUri(ProjectService.java:114)
at com.gooddata.project.ProjectService.getProjectById(ProjectService.java:135)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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