org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class Table]: can not instantiate from JSON object (need to add/enable type information?) at [Source: org.jboss.resteasy.client.core.SelfExpandingBufferredInputStream@45d6a56e; 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

,
Expert tip

Types used for deserialization should be used in the way such that the annotation @JsonTypeInfo is visible.

Solutions on the web

via Google Groups by Tao, Yan, 10 months ago
No suitable constructor found for type [simple type, class Table]: can not instantiate from JSON object (need to add/enable type information?) at [Source: org.jboss.resteasy.client.core.SelfExpandingBufferredInputStream@45d6a56e; line: 1, column: 2]
org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class Table]: can not instantiate from JSON object (need to add/enable type information?) at [Source: org.jboss.resteasy.client.core.SelfExpandingBufferredInputStream@45d6a56e; line: 1, column: 2]
at org.codehaus.jackson.map.JsonMappingException.from(JsonMappingException.java:163)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObjectUsingNonDefault(BeanDeserializer.java:746)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:683)
at org.codehaus.jackson.map.deser.BeanDeserializer.deserialize(BeanDeserializer.java:580)
at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2732)
at terrastore.client.mapping.JsonObjectReader.readFrom(JsonObjectReader.java:61)
at org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl.proceed(MessageBodyReaderContextImpl.java:105)
at org.jboss.resteasy.plugins.interceptors.encoding.GZIPDecodingInterceptor.read(GZIPDecodingInterceptor.java:46)
at org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl.proceed(MessageBodyReaderContextImpl.java:108)
at org.jboss.resteasy.plugins.interceptors.encoding.GZIPDecodingInterceptor.read(GZIPDecodingInterceptor.java:46)
at org.jboss.resteasy.core.interception.MessageBodyReaderContextImpl.proceed(MessageBodyReaderContextImpl.java:108)
at org.jboss.resteasy.core.messagebody.ReaderUtility.doRead(ReaderUtility.java:111)
at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:354)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:318)
at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:291)
at terrastore.client.connection.resteasy.HTTPConnection.getValue(HTTPConnection.java:235)
at terrastore.client.KeyOperation.get(KeyOperation.java:80)
at undefined.TerrastoreDBClient.test(TerrastoreDBClient.java:35)
at undefined.TerrastoreDBClient.main(TerrastoreDBClient.java:48)

Users with the same issue

10 times, 5 months ago
177 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
25 more bugmates

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