2011-06-24 9 views
0

私はLinkedInアプリケーションを作成するためにLinkedIn-j APIを使用しています。私が直面している問題は、単純なデスクトップアプリケーションを開発したいということです。むしろ私はコンソールアプリケーションを言う必要があります。私はLinkedin-jを使用したLinkedinデスクトップアプリケーション?

Exception in thread "main" com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceException: oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: api.linkedin.com 
    at com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceImpl.getOAuthRequestToken(LinkedInOAuthServiceImpl.java:159) 
    at com.lineedapp.common.LinkedinApp.main(LinkedinApp.java:17) 
Caused by: oauth.signpost.exception.OAuthCommunicationException: Communication with the service provider failed: api.linkedin.com 
    at oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:214) 
    at oauth.signpost.AbstractOAuthProvider.retrieveRequestToken(AbstractOAuthProvider.java:69) 
    at com.google.code.linkedinapi.client.oauth.LinkedInOAuthServiceImpl.getOAuthRequestToken(LinkedInOAuthServiceImpl.java:148) 
    ... 1 more 
Caused by: java.net.UnknownHostException: api.linkedin.com 
    at java.net.PlainSocketImpl.connect(Unknown Source) 
    at java.net.SocksSocketImpl.connect(Unknown Source) 
    at java.net.Socket.connect(Unknown Source) 
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source) 
    at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect(Unknown Source) 
    at sun.net.NetworkClient.doConnect(Unknown Source) 
    at sun.net.www.http.HttpClient.openServer(Unknown Source) 
    at sun.net.www.http.HttpClient.openServer(Unknown Source) 
    at sun.net.www.protocol.https.HttpsClient.<init>(Unknown Source) 
    at sun.net.www.protocol.https.HttpsClient.New(Unknown Source) 
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(Unknown Source) 
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) 
    at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) 
    at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(Unknown Source) 
    at oauth.signpost.basic.DefaultOAuthProvider.sendRequest(DefaultOAuthProvider.java:48) 
    at oauth.signpost.AbstractOAuthProvider.retrieveToken(AbstractOAuthProvider.java:177) 
    ... 3 more 

このエラーが出るという問題が来る私は、アプリケーションの登録フォームでホストを提供することはできませんしていたとします。私はローカルホストを提供しましたが、動作しません。助けてください??

答えて

1
Caused by: java.net.UnknownHostException: api.linkedin.com 

api.linkedin.comへのネットワークアクセスがないようです。プロキシの背後にいる場合は、https://api.linkedin.comにアクセスしてください。

1

java.net.UnknownHostException: api.linkedin.comは、サーバーにアクセスできないことを意味します。

あなたがプロキシの背後にないことを確認します。その場合は、linkedin APIでこのプロキシをバイパスする方法を見つける必要があります。

+0

Ok ...私はそれを得た。私はブラウジングのためのユーザー名とパスワードを入力する... tatは私が指定されたドメインにいるプロキシcozの背後にあることを意味します。私はそれをバイパスすることができるいくつかのJavaコードを教えてくれますか? –

関連する問題