Results 1 to 4 of 4

Thread: getAccounts() --> java.lang.NoSuchMethodError

Hybrid View

  1. #1
    Join Date
    Jul 2011
    Posts
    4

    Default getAccounts() --> java.lang.NoSuchMethodError

    I'm using the RC2 version and this is my code:

    FacebookTemplate facebook = new FacebookTemplate(access);
    facebook.pageOperations().getAccounts();

    The last line throws this exception:
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
    .....
    Caused by: java.lang.NoSuchMethodError: org.codehaus.jackson.map.type.TypeFactory.defaultI nstance()Lorg/codehaus/jackson/map/type/TypeFactory;
    at org.springframework.social.facebook.api.impl.Faceb ookTemplate.deserializeDataList(FacebookTemplate.j ava:272)
    at org.springframework.social.facebook.api.impl.Faceb ookTemplate.fetchConnections(FacebookTemplate.java :201)
    at org.springframework.social.facebook.api.impl.Faceb ookTemplate.fetchConnections(FacebookTemplate.java :194)

    I'll be very gratefull if you could help me with this problem. Thank you!

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    I would check the version of Jackson you have in your classpath and see what it is and confirm that method is missing. Then I'd look to upgrade to the version where that method is available (we're currently depending on 1.8.4, which is the latest). Let us know how it goes.

    Keith
    Keith Donald
    Core Spring Development Team

  3. #3
    Join Date
    Jul 2011
    Posts
    4

    Default

    Thank you for your quick reply.
    I've just checked my version of Jackson and it was the 17.7.4 so I've just changed and the problem has gone Thank you again!

  4. #4
    Join Date
    Feb 2013
    Posts
    2

    Default

    Quote Originally Posted by Keith Donald View Post
    I would check the version of Jackson you have in your classpath and see what it is and confirm that method is missing. Then I'd look to upgrade to the version where that method is available (we're currently depending on 1.8.4, which is the latest). Let us know how it goes.

    Keith
    That was it, thank you!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •