org.springframework.social.UncategorizedApiException: Error deserializing photo post

Spring JIRA | Matt Byrne | 3 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    The following issue occurs in 2.0.0.M1 and I've tested the same in 1.x and it works fine. Code that generated problem. {code:java} PagedList<Post> posts = facebook.feedOperations().getFeed("JimsMowingAU"); {code} Exception: {code:java} org.springframework.social.UncategorizedApiException: Error deserializing photo post at org.springframework.social.facebook.api.impl.FeedTemplate.deserializePost(FeedTemplate.java:299) at org.springframework.social.facebook.api.impl.FeedTemplate.deserializeList(FeedTemplate.java:275) at org.springframework.social.facebook.api.impl.FeedTemplate.getFeed(FeedTemplate.java:78) at org.springframework.social.facebook.api.impl.FeedTemplate.getFeed(FeedTemplate.java:72) ... (my company classes and intellij/junit used to kick them off) ... Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class org.springframework.social.facebook.api.Post$Privacy] from String value (''); no single-String constructor/factory method (through reference chain: org.springframework.social.facebook.api.Post["privacy"]->org.springframework.social.facebook.api.Privacy["value"]) at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator._createFromStringFallbacks(StdValueInstantiator.java:428) at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:299) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromString(BeanDeserializerBase.java:1150) at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:139) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:126) at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:525) at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:106) at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:242) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:118) at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:525) at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:106) at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:242) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:118) at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1270) at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:897) at org.springframework.social.facebook.api.impl.FeedTemplate.deserializePost(FeedTemplate.java:297) ... 37 more {code}

    Spring JIRA | 3 years ago | Matt Byrne
    org.springframework.social.UncategorizedApiException: Error deserializing photo post
  2. 0

    The following issue occurs in 2.0.0.M1 and I've tested the same in 1.x and it works fine. Code that generated problem. {code:java} PagedList<Post> posts = facebook.feedOperations().getFeed("JimsMowingAU"); {code} Exception: {code:java} org.springframework.social.UncategorizedApiException: Error deserializing photo post at org.springframework.social.facebook.api.impl.FeedTemplate.deserializePost(FeedTemplate.java:299) at org.springframework.social.facebook.api.impl.FeedTemplate.deserializeList(FeedTemplate.java:275) at org.springframework.social.facebook.api.impl.FeedTemplate.getFeed(FeedTemplate.java:78) at org.springframework.social.facebook.api.impl.FeedTemplate.getFeed(FeedTemplate.java:72) ... (my company classes and intellij/junit used to kick them off) ... Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not instantiate value of type [simple type, class org.springframework.social.facebook.api.Post$Privacy] from String value (''); no single-String constructor/factory method (through reference chain: org.springframework.social.facebook.api.Post["privacy"]->org.springframework.social.facebook.api.Privacy["value"]) at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator._createFromStringFallbacks(StdValueInstantiator.java:428) at com.fasterxml.jackson.databind.deser.std.StdValueInstantiator.createFromString(StdValueInstantiator.java:299) at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.deserializeFromString(BeanDeserializerBase.java:1150) at com.fasterxml.jackson.databind.deser.BeanDeserializer._deserializeOther(BeanDeserializer.java:139) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:126) at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:525) at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:106) at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:242) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:118) at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:525) at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:106) at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:242) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:118) at com.fasterxml.jackson.databind.ObjectReader._bindAndClose(ObjectReader.java:1270) at com.fasterxml.jackson.databind.ObjectReader.readValue(ObjectReader.java:897) at org.springframework.social.facebook.api.impl.FeedTemplate.deserializePost(FeedTemplate.java:297) ... 37 more {code}

    Spring JIRA | 3 years ago | Matt Byrne
    org.springframework.social.UncategorizedApiException: Error deserializing photo post
  3. 0

    Can't deserialize posts with version 2

    GitHub | 3 years ago | Ed42
    org.springframework.social.UncategorizedApiException: Error deserializing link post
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.springframework.social.UncategorizedApiException

      Error deserializing photo post

      at org.springframework.social.facebook.api.impl.FeedTemplate.deserializePost()
    2. Facebook API
      FeedTemplate.getFeed
      1. org.springframework.social.facebook.api.impl.FeedTemplate.deserializePost(FeedTemplate.java:299)
      2. org.springframework.social.facebook.api.impl.FeedTemplate.deserializeList(FeedTemplate.java:275)
      3. org.springframework.social.facebook.api.impl.FeedTemplate.getFeed(FeedTemplate.java:78)
      4. org.springframework.social.facebook.api.impl.FeedTemplate.getFeed(FeedTemplate.java:72)
      4 frames