0

I am using the following code and which throws the exception

accessTokenResponse = new GoogleAccessTokenRequest.GoogleAuthorizationCodeGrant(new NetHttpTransport(), new JacksonFactory(), CLIENT_ID,CLIENT_SECRET, authorizationCode, REDIRECT_URI).execute();

Exception:

java.lang.NoSuchMethodError: org.codehaus.jackson.JsonFactory.configure(Lorg/codehaus/jackson/JsonGenerator$Feature;Z)Lorg/codehaus/jackson/JsonFactory;

The JavaType class is in the jackson-core JAR, and the ObjectMapper class is in jackson-mapper are both of the same version.

gnat
  • 6,213
  • 108
  • 53
  • 73
srp
  • 521
  • 11
  • 22
  • 1
    Double-check the versions of core vs mapper, and make sure you don't have more than one of each of those jars on the classpath. All evidence is they are out of sync. [Similar issue](http://stackoverflow.com/questions/5094180/jackson-objectmapper-constructor-throws-nosuchmethod). – maksimov Jun 06 '12 at 16:06
  • Thank you for your reply, I have updated the jars to the latest version and it has solved the problem :) – srp Jun 07 '12 at 08:08

0 Answers0