Announcement Announcement Module
Collapse
No announcement yet.
StackOverflowError with Spring Android RestTemplate and Jackson Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • StackOverflowError with Spring Android RestTemplate and Jackson

    This recently started happening in our app. It only seems to be affecting one area of our app, which is odd, since all the web services are implemented in the same exact fashion (both on the server and in the app). I have been trying to update Jackson as it comes out to see if it is getting resolved in the Jackson libs (currently 2.2.3 generated this stacktrace, will be testing with 2.3.0 in the meantime).

    Code:
    java.lang.StackOverflowError
    at java.util.WeakHashMap.poll(WeakHashMap.java:569)
    at java.util.WeakHashMap.get(WeakHashMap.java:473)
    at org.apache.harmony.lang.annotation.AnnotationFactory.getElementsDescription(AnnotationFactory.java:62)
    at org.apache.harmony.lang.annotation.AnnotationFactory.<init>(AnnotationFactory.java:115)
    at org.apache.harmony.lang.annotation.AnnotationFactory.createAnnotation(AnnotationFactory.java:97)
    at java.lang.reflect.Method.getDeclaredAnnotations(Native Method)
    at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:267)
    at com.fasterxml.jackson.databind.introspect.AnnotatedClass._constructMethod(AnnotatedClass.java:743)
    at com.fasterxml.jackson.databind.introspect.AnnotatedClass._addMemberMethods(AnnotatedClass.java:599)
    at com.fasterxml.jackson.databind.introspect.AnnotatedClass.resolveMemberMethods(AnnotatedClass.java:416)
    at com.fasterxml.jackson.databind.introspect.AnnotatedClass.memberMethods(AnnotatedClass.java:243)
    at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector._addMethods(POJOPropertiesCollector.java:457)
    at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.collect(POJOPropertiesCollector.java:233)
    at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.collectProperties(BasicClassIntrospector.java:142)
    at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.java:81)
    at com.fasterxml.jackson.databind.introspect.BasicClassIntrospector.forDeserialization(BasicClassIntrospector.java:11)
    at com.fasterxml.jackson.databind.DeserializationConfig.introspect(DeserializationConfig.java:507)
    at com.fasterxml.jackson.databind.deser.DeserializerCache._createDeserializer(DeserializerCache.java:329)
    at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:267)
    at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:247)
    at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:146)
    at com.fasterxml.jackson.databind.DeserializationContext.findContextualValueDeserializer(DeserializationContext.java:305)
    at com.fasterxml.jackson.databind.deser.std.StdDeserializer.findDeserializer(StdDeserializer.java:634)
    at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.resolve(BeanDeserializerBase.java:438)
    at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:298)
    at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:247)
    at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:146)
    at com.fasterxml.jackson.databind.DeserializationContext.findContextualValueDeserializer(DeserializationContext.java:305)
    at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.createContextual(CollectionDeserializer.java:151)
    at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.createContextual(CollectionDeserializer.java:23)
    at com.fasterxml.jackson.databind.DeserializationContext.findContextualValueDeserializer(DeserializationContext.java:309)
    at com.fasterxml.jackson.databind.deser.std.StdDeserializer.findDeserializer(StdDeserializer.java:634)
    at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.resolve(BeanDeserializerBase.java:438)
    at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:298)
    at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:247)
    at com.fasterxml.jackson.databind.deser.DeserializerCache.findValueDeserializer(DeserializerCache.java:146)
    at com.fasterxml.jackson.databind.DeserializationContext.findContextualValueDeserializer(DeserializationContext.java:305)
    at com.fasterxml.jackson.databind.deser.std.StdDeserializer.findDeserializer(StdDeserializer.java:634)
    at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.resolve(BeanDeserializerBase.java:438)
    at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCache2(DeserializerCache.java:298)
    at com.fasterxml.jackson.databind.deser.DeserializerCache._createAndCacheValueDeserializer(DeserializerCache.java:247)
    at com.fasterxml.jackson.databind.deser.DeserializerCache.hasValueDeserializerFor(DeserializerCache.java:194)
    at com.fasterxml.jackson.databind.DeserializationContext.hasValueDeserializerFor(DeserializationContext.java:293)
    at com.fasterxml.jackson.databind.ObjectMapper.canDeserialize(ObjectMapper.java:1971)
    at org.springframework.http.converter.json.MappingJackson2HttpMessageConverter.canRead(MappingJackson2HttpMessageConverter.java:103)
    at org.springframework.web.client.RestTemplate$AcceptHeaderRequestCallback.doWithRequest(RestTemplate.java:542)
    at org.springframework.web.client.RestTemplate$HttpEntityRequestCallback.doWithRequest(RestTemplate.java:593)
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:474)
    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:453)
    at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:429)
    at org.mythtv.services.api.v026.impl.ContentTemplate.getLiveStreamList(ContentTemplate.java:355)
    at org.mythtv.service.content.v26.LiveStreamHelperV26.load(LiveStreamHelperV26.java:178)
    at org.mythtv.service.content.v26.LiveStreamHelperV26.load(LiveStreamHelperV26.java:493)
    at org.mythtv.service.content.v26.LiveStreamHelperV26.load(LiveStreamHelperV26.java:188)
    at org.mythtv.service.content.v26.LiveStreamHelperV26.load(LiveStreamHelperV26.java:493)
    at org.mythtv.service.content.v26.LiveStreamHelperV26.load(LiveStreamHelperV26.java:188)
    at org.mythtv.service.content.v26.LiveStreamHelperV26.load(LiveStreamHelperV26.java:493)

  • #2
    Hmm. That is interesting. Thanks for reporting. I'll do some testing as well, and let you know if I have any questions.

    Comment

    Working...
    X