This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

However when I try to implement, faced lot of issues.
a) Does any one have a working example with appropriate libraries.
b) If not, I am having issue with the code I have downloaded. when I run the app, I am getting the following problem

Comment

Even am also getting the same error. I tried with jackson 1.9.9 also as as you said above but still am seeing the same error.
Can you suggest me how to resolve this issue. I tried with all other versions of jackson jars also.

I have one more question,how to get the access code from the url which is redirected from FB to our controller through OAuth2 params and how Connect Controller will work. Do i need code some for this.

Comment

Well, if you go look at the code for Jackson 1.9.9 or if you do code completion on the ObjectMapper type, you'll see that the method being complained about *does* exist. Moreover, the Spring Social samples (showcase, et al) all use it with no problem.

Therefore, my instinct tells me that there's something awry with your project's classpath. Either you have an older version of Jackson in the classpath, you have more than one Jackson in your classpath, or there's something else missing. And, narrowing it down further, I suspect that it's a case where you have more than one Jackson in your classpath.

I've seen this kind of thing before (not with Jackson, necessarily, but with Java libraries in general). Here's how it plays out:

Let's say you have Jackson 1.9.9 in your classpath, but you *also* have an older version of Jackson in the classpath. Both have ObjectMapper.registerModule(Module) and both have Module. But for whatever reason, Module is being resolved from one version while ObjectMapper is being resolved from another. Those two are incompatible and you get the exception you see.

Again, this is all just speculation based on what I see here. I can't know for certain because I don't see your code, nor can I do a dependency analysis on it to find evidence to support or deny my theory. If you're building with Maven, use the dependency:tree goal to see what dependencies are resolved. If you build it into a WAR file, crack the WAR file open and see what's in WEB-INF/lib. If there are two Jacksons, then that's your problem.

If that's not your problem, then I'm at a loss. Unless you can put your code somewhere in GitHub or elsewhere for me to look at, I am not sure what further help I can offer.

Comment

Again, this is very much a dependency issue, specifically with Jackson. I thank you for sharing your code with me, but you've only shared Java code and some Eclipse metadata. There's no Maven pom.xml, Gradle build.gradle, or even an Eclipse .classpath file for me to examine for dependency details.

How are you building this? If you're using the IDE's build facilities, then share your .classpath file. That said, I do *NOT* recommend that build approach and do recommend Maven or Gradle. If you're using one of those, then can I see your pom.xml or build.gradle file?

Once more, this is likely not an issue with Spring Social. The samples projects work fine and don't have this kind of Jackson dependency issue. The issue is very likely a dependency issue and to be able to help you, I'll need to better understand how you're resolving dependencies in your project.