omit / linkedin-j

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

not able to use postNetworkUpdate #87

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am not able to run the following code:
  LinkedInAccessToken accessToken = oauthService.getOAuthAccessToken(requestToken, verifier);

client =  factory.createLinkedInApiClient(accessToken.getToken(), 
accessToken.getTokenSecret());

client.postNetworkUpdate("msg updated");

The error that I am facing is:

Found tag that we don't recognize: head
Default buffer size used in BufferedInputStream constructor. It would be better 
to be explicit if an 8k buffer is required.
Found tag that we don't recognize: head
Found tag that we don't recognize: body
WARN/System.err(20510): 
com.google.code.linkedinapi.client.LinkedInApiClientException
     at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.createLinkedInApiClientException(BaseLinkedInApiClient.java:3906)
     at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(BaseLinkedInApiClient.java:3846)
     at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.postNetworkUpdate(BaseLinkedInApiClient.java:1172)
     at com.abc.myComp.LinkedInDetail.onNewIntent(LinkedInDetail.java:345)
     at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1119)
     at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2744)
     at android.app.ActivityThread.performNewIntents(ActivityThread.java:2756)
     at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2764)
     at android.app.ActivityThread.access$3100(ActivityThread.java:126)
     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2085)
     at android.os.Handler.dispatchMessage(Handler.java:99)
     at android.os.Looper.loop(Looper.java:123)
Found tag that we don't recognize: body
 com.google.code.linkedinapi.client.LinkedInApiClientException
     at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.createLinkedInApiClientException(BaseLinkedInApiClient.java:3906)
     at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.callApiMethod(BaseLinkedInApiClient.java:3846)
     at com.google.code.linkedinapi.client.impl.BaseLinkedInApiClient.postNetworkUpdate(BaseLinkedInApiClient.java:1172)
     at com.abc.myComp.LinkedInDetail.onNewIntent(LinkedInDetail.java:345)
     at android.app.Instrumentation.callActivityOnNewIntent(Instrumentation.java:1119)
     at android.app.ActivityThread.deliverNewIntents(ActivityThread.java:2744)
     at android.app.ActivityThread.performNewIntents(ActivityThread.java:2756)
     at android.app.ActivityThread.handleNewIntent(ActivityThread.java:2764)
     at android.app.ActivityThread.access$3100(ActivityThread.java:126)
     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2085)
     at android.os.Handler.dispatchMessage(Handler.java:99)
     at android.os.Looper.loop(Looper.java:123)
     at android.app.ActivityThread.main(ActivityThread.java:4633)
     at java.lang.reflect.Method.invokeNative(Native Method)
     at java.lang.reflect.Method.invoke(Method.java:521)
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
     at dalvik.system.NativeStart.main(Native Method)
com.google.code.linkedinapi.client.LinkedInApiClientException
     at android.app.ActivityThread.main(ActivityThread.java:4633)
     at java.lang.reflect.Method.invokeNative(Native Method)
     at java.lang.reflect.Method.invoke(Method.java:521)
     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
     at dalvik.system.NativeStart.main(Native Method)

Please help.

Thanks in advance

Original issue reported on code.google.com by dummy311...@gmail.com on 10 Dec 2011 at 12:06