0
11-17 15:04:15.477: ERROR/AndroidRuntime(3411): ***Uncaught handler: thread main exiting due to uncaught exception***
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): ***com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceException:*** ***oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed:*** htts:///api.linkedin.com/uas/oauth/requestToken
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceImpl.getOAuthRequestToken(LinkedInOAuthServiceImpl.java:146)
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at com.ceosoft.alumlife.util.LinkedInAuthenticateHelper.getRequestToken(LinkedInAuthenticateHelper.java:66)
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at com.ceosoft.alumlife.util.LinkedInAuthenticateHelper.authenticateApp(LinkedInAuthenticateHelper.java:53)
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at 
.....
....
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): ***Caused by: oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: htts:///api.linkedin.com/uas/oauth/requestToken***
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:214)
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at oauth.signpost.AbstractOAuthProvider.retrieveRequestToken(AbstractOAuthProvider.java:69)
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceImpl.getOAuthRequestToken(LinkedInOAuthServiceImpl.java:138)
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): ... 25 more
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): ***Caused by: java.io.FileNotFoundException: https:/.//api.linkedin.com/uas/oauth/requestToken***
11-17 15:04:15.507: ERROR/AndroidRuntime(3411): at org.apache.harmony.luni.internal.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.
....
....

私のコードは次のとおりです。

private LinkedInRequestToken getRequestToken() {

   Log.d(TAG, "API_KEY = " + OAUTH_CONSUMER_KEY);
   Log.d(TAG, "SECRET_KEY = " + OAUTH_CONSUMER_SECRET );

   mOauthService = LinkedInOAuthServiceFactory.getInstance().createLinkedInOAuthService(OAUTH_CONSUMER_KEY, OAUTH_CONSUMER_SECRET);
   Log.d(TAG, "mOauthService = LinkedInOAuthServiceFactory.getInstance()");
   requestToken = mOauthService.getOAuthRequestToken(CALLBACK_URL); //this line occur error
   Log.d(TAG, "LinkedInRequestToken requestToken = mOauthService");
   return requestToken;

}

私はここに複数のハイパーリンクを置く力を持っていません。だからごめんなさい!

注:「htts」はhttps
「///」が「//」であることを意味します

4

3 に答える 3

0

@samuel。意味がわからない注:「htts」はhttpsを意味しますが、LinkedIn APIを調べたところ、https://api.linkedin.com/uas/oauth/requestTokenと表示されています

于 2010-11-23T09:03:19.387 に答える
0

私は8分先に時間を持っていて、それを解決してリアルタイムに戻しました

Ashokの回答 デバイスとエミュレーターでのAndroidLinkedIn統合エラー

「何かが間違っている場合、または1分の違いでもこの例外が発生する場合は、時刻、日付、およびタイムゾーンが正しいはずです」。

于 2012-06-19T13:22:25.190 に答える
-2

答えは:

電話の時刻設定に問題があります。私のアプリケーションではありません。LinkedInを使用する場合は、正しい時刻設定が必要です。

于 2011-01-10T01:34:56.967 に答える