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

Spring JIRA | Matt Byrne | 2 years ago
  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 | 2 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 | 2 years ago | Matt Byrne
    org.springframework.social.UncategorizedApiException: Error deserializing photo post
  3. 0

    Can't deserialize posts with version 2

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

    Automated exception search integrated into your IDE

  5. 0

    Spring social for android. Troubles

    Stack Overflow | 2 years ago | smail2133
    org.springframework.social.UncategorizedApiException: Error deserializing data from Facebook: Can not instantiate value of type [simple type, class org.springframework.social.facebook.api.Reference] from Integral number; no single-int-arg constructor/factory method (through reference chain: org.springframework.social.facebook.api.FacebookProfile["education"])
  6. 0

    Error deserializing data when fetching photos

    GitHub | 3 years ago | redwerk
    org.springframework.social.UncategorizedApiException: Error deserializing data from Facebook: Instantiation of [simple type, class org.springframework.social.facebook.api.Photo] value failed: Index: 2, Size: 2 (through reference chain: org.springframework.social.facebook.api.Photo["link"]) at org.springframework.social.facebook.api.impl.FacebookTemplate.deserializeDataList(FacebookTemplate.java:272) at org.springframework.social.facebook.api.impl.FacebookTemplate.fetchConnections(FacebookTemplate.java:186) at org.springframework.social.facebook.api.impl.MediaTemplate.getPhotos(MediaTemplate.java:100) ....

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    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