michaellavelle / spring-social-lastfm

LastFm API binding and connect support using Spring Social. This project adapts LastFm's APi to be pseudo-oauth so it can be used with ProviderSignInController and ConnectController - work in progress
9 stars 4 forks source link

getRecentTracks fails with jackson mapper versions > 1.8.5 #14

Open michaellavelle opened 12 years ago

michaellavelle commented 12 years ago

The following exception occurs within the getRecentTracks method if jackson mapper version 1.9.2 is on the classpath instead of the 1.8.5 pulled in by spring-social-lastfm

org.springframework.http.converter.HttpMessageNotReadableException: Could not read JSON: Can not deserialize instance of java.util.ArrayList out of FIELD_NAME token.

michaellavelle commented 12 years ago

If jackson mapper version > 1.8.5 is on the classpath, the following tests fail, indicating the error occurs when the JSON returned contains a single nested element instead of a nested list.

getRecentTracksSingleTrackResponse(org.springframework.social.lastfm.api.UserTemplateTest) getTopTracksSingleTrackResponse(org.springframework.social.lastfm.api.UserTemplateTest) getLibraryTracks_SingleTrackResponse(org.springframework.social.lastfm.api.UserTemplateTest) getShoutsSingleShoutResponse(org.springframework.social.lastfm.api.UserTemplateTest) getFriendsSingleFriendResponse(org.springframework.social.lastfm.api.UserTemplateTest) getLovedTracksSingleTrackResponse(org.springframework.social.lastfm.api.UserTemplateTest)