hirday / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

SEVERE: The RuntimeException could not be mapped to a response, re-throwing to the HTTP container com.google.code.linkedinapi.client.LinkedInApiClientException: [unauthorized]. #137

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I use

 MyProfile = client.getProfileForCurrentUser();  after I got token.

I go an exception

SEVERE: The RuntimeException could not be mapped to a response, re-throwing to 
the HTTP container
com.google.code.linkedinapi.client.LinkedInApiClientException: [unauthorized]. 
OAU:2bei61enxbtt|dba07228-5e14-406a-bb7b-9994f4f8d5d8|*01|*01:1368626273:8zCX4r+
xzMCYsuD7S+it3X3TVAI=

at 
com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.createLinkedInApiC
lientException(BaseLinkedInApiClient.java:3906)

at 
com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(Base
LinkedInApiClient.java:3781)

at 
com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(Base
LinkedInApiClient.java:3725)

at 
com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.getProfileForCurre
ntUser(BaseLinkedInApiClient.java:1109)

Code : 

LinkedInAccessToken litoken = new LinkedInAccessToken(token, tokensecret);

LinkedInApiClientFactory factory = 
LinkedInApiClientFactory.newInstance(ConsumerKey, ConsumerKeySecret);

final LinkedInApiClient client = factory.createLinkedInApiClient(litoken);

Person profile = client.getProfileForCurrentUser();

What am I doing wrong??

Original issue reported on code.google.com by chhipa.p...@gmail.com on 15 May 2013 at 2:06

GoogleCodeExporter commented 9 years ago
Im in the same case. Somebody to help??

Original comment by Fco.Muno...@gmail.com on 3 Jun 2013 at 10:46