Hi Im trying to connect to linkedin I already manage to connect to twitter so I followed the same aproach and every worked fine until i tryed to create the LinkedInTemplate.
Here is a sniped of my when the access token is retrieved.
public static void linkedin(OAuthToken anyAccess)
{
LinkedIn linkedin = new LinkedInTemplate(
SpringPropertiesUtil.getProperty("linkedin.consume rKey"),
SpringPropertiesUtil.getProperty("linkedin.consume rSecret"),
anyAccess.getValue(),
anyAccess.getSecret());
}
this is the error that I received when trying to build the LinkedInTemplate.
Caused by: java.lang.NoSuchMethodError: org.codehaus.jackson.map.SerializationConfig.withS erializationInclusion(Lorg/codehaus/jackson/map/annotate/JsonSerialize$InclusionLorg/codehaus/jackson/map/SerializationConfig;
at org.springframework.social.linkedin.api.impl.Linke dInTemplate.registerLinkedInJsonModule(LinkedInTem plate.java:103)
at org.springframework.social.linkedin.api.impl.Linke dInTemplate.<init>(LinkedInTemplate.java:62)
at social.AccountsPersistanceConfig.linkedin(Accounts PersistanceConfig.java:125)
and this is my connectionFactoryConfiguration
<bean id="connectionFactoryLocator"
class="org.springframework.social.connect.support. ConnectionFactoryRegistry">
<property name="connectionFactories">
<list>
<bean
class="org.springframework.social.facebook.connect .FacebookConnectionFactory">
<constructor-arg name="clientId" value="${facebook.clientId}" />
<constructor-arg name="clientSecret" value="${facebook.clientSecret}" />
</bean>
<bean
class="org.springframework.social.twitter.connect. TwitterConnectionFactory">
<constructor-arg name="consumerKey" value="${twitter.consumerKey}" />
<constructor-arg name="consumerSecret" value="${twitter.consumerSecret}" />
</bean>
<bean
class="org.springframework.social.linkedin.connect .LinkedInConnectionFactory">
<constructor-arg name="consumerKey" value="${linkedin.consumerKey}" />
<constructor-arg name="consumerSecret" value="${linkedin.consumerSecret}" />
</bean>
</list>
</property>
</bean>
Facebook and twitter work without problems.
Am I doing something wrong? how can I solve the problem?
Thanks =)


Lorg/codehaus/jackson/map/SerializationConfig;
Reply With Quote
).
