Monday, 15 September 2014

android - I am using Spring Social framework .Getting org.springframework.social.MissingAuthorizationException with Proper access token -


I got a token entry Android native applications I tested through the Graph API debugger and activate it in the next two months Happened. The same access token. When I try template.isAuthorized it returns true. But when I try to use template.userOperations through the following error please try it using the Facebook Template.

  Exception in formula "main" java.lang.NoSuchMethodError: org.springframework.social.MissingAuthorizationException: By method & lt; Init & gt; (Ljava / lang / String;) org.springframework.social.facebook.api.impl.FacebookErrorHandler.handleFacebookError (v found on FacebookErrorHandler. Java: 89) org.springframework.social.facebook.api.impl.FacebookErrorHandler.handleError ( FacebookErrorHandler.java:65) org.springframework.web.client.RestTemplate.handleResponseError (.web.client.RestTemplate.doExecute (RestTemplate.java:443) work on RestTemplate.java:486) on Org.springframe on org.springframework on .web.client.RestTemplate.execute org.springframework.web.client.RestTemplate.getForObject (RestTemplate.java:415) (RestTemplate.java:213) on org.springframework.social.facebook.api.impl.FacebookTemplate. fetchConnections org.springframework.social.facebook.api.impl.FacebookTemplate.fetchConnections on (FacebookTemplate.java:222) (FacebookTemplate.java:216)  

stacktrace because you actually> java.lang.NoSuchMethodError in org.springframework, is a little misleading. Specifically, this method & lt; Init & gt; (Ljava / lang / String;) V not found , or in other words: The constructor which takes the string parameter is not present in the class already in it.

It seems to me that you are running an older version of Spring, which is probably 1.0.x release, i.e. Compare Constructors for version 1.0.3 and 1.1.0:

1.0.3:

1.1.0:

Resolve your problem soon You should switch to the version of Spring which contains the missing authorization exception constructor with string-parameter.

// Edit: Constructor was changed to include provider ID in October 2012. To be precise


No comments:

Post a Comment