Uploaded image for project: 'Spring Social Facebook'
  1. Spring Social Facebook
  2. SOCIALFB-138

Jackson Map Exception on checkinposts

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.1.0.M4
    • Fix Version/s: 1.1.0.RC1, 1.1.0.RELEASE
    • Component/s: API Binding
    • Labels:
      None

      Description

      Some checkins do not provide a complete location mapping, only a String telling the location.

      I suggest adding a location deserializer like this:

      @Override
      public Location deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException {
      try

      { Location node = jp.readValueAs(Location.class); return node; }

      catch (Exception e)

      { Location location = new Location(jp.getText()); return null; }

      }

        Attachments

          Activity

            People

            Assignee:
            habuma Craig Walls
            Reporter:
            jachzen Marcel Pater
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified