我的手机 (htc g8 wildfire os2.1) 不支持 LinkedIn

发布于 2024-10-04 02:16:18 字数 2718 浏览 3 评论 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
“///“ 是 ”//”

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.
....
....

My code as follows:

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;

}

I don't have power put more than one hyperlink at here.
So I'm sorry!

Note: "htts" it means https
"///" is "//"

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

青朷 2024-10-11 02:16:18

@塞缪尔。不确定我是否理解你的意思注意:“htts”意味着https,但我刚刚查看了linkedin API,它说https://api.linkedin.com/uas/oauth/requestToken

@samuel. not sure if I understand what you mean Note: "htts" it mean https but I just looked at the linkedin API and it says https://api.linkedin.com/uas/oauth/requestToken.

倚栏听风 2024-10-11 02:16:18

我提前 8 分钟解决了这个问题,将其恢复为实时

Ashok 的答案
设备和模拟器上的 Android LinkedIn 集成错误

"时间、日期和时区应该是正确的,如果有任何错误,甚至 1 分钟的差异都会出现此异常”。

I had my time 8 mins ahead and solved it putting it back to the real time

Ashok's answer
Android LinkedIn Integration Error on Device And Emulator

"Time,Date and Timezone should be correct if anything is wrong or even 1 min difference will give this exception".

仙气飘飘 2024-10-11 02:16:18

答案是:

我手机的时间设置有问题。不是我的申请。如果您想使用 LinkedIn,需要正确的时间设置。

The answer is :

My phone's time setting have problem. Not my application. Need the correct time setting if you want to use LinkedIn.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文