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]

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Stack trace

  • 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 terrastore.client.connection.resteasy.HTTPConnection.getClientSideException(HTTPConnection.java:625) at terrastore.client.connection.resteasy.HTTPConnection.getValue(HTTPConnection.java:242) at terrastore.client.KeyOperation.get(KeyOperation.java:80) at TerrastoreDBClient.test(TerrastoreDBClient.java:35) at TerrastoreDBClient.main(TerrastoreDBClient.java:48) Caused by: org.jboss.resteasy.spi.ReaderException: 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.jboss.resteasy.core.messagebody.ReaderUtility.doRead(ReaderUtility.java:123) 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 org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:285) at terrastore.client.connection.resteasy.HTTPConnection.getValue(HTTPConnection.java:235) ... 3 more Caused by: 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 org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1909) 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) ... 8 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

jstrayerjstrayer
10 times, last one
Andreas HäberAndreas Häber
177 times, last one
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
Unknown visitor
Unknown visitorOnce,
23 more bugmates