1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Yahoo! ID連携 Java SDKを利用したトークン発行でのエラー

Posted at

Yahoo! ID連携 Java SDKでTokenエンドポイントにリクエストしてアクセストークンを取得する際、下記のエクセプションが発生してしまうのですが、設定含めて注意点などあればご教示いただけないでしょうか。

java.net.ConnectException: Connection timed out: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:345)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:656)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:524)
at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403)
at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57)
at jp.co.yahoo.yconnect.core.http.YHttpClient.requestPost(YHttpClient.java:228)
at jp.co.yahoo.yconnect.core.oauth2.TokenClient.fetch(TokenClient.java:58)
at jp.co.yahoo.yconnect.YConnectExplicit.requestToken(YConnectExplicit.java:167)

当方、Play Framework 2.4.xで実装しております。
また、この前段でのコールバックURLでの認可コードの抽出はYConnectExplicit.getAuthorizationCode()より取得できております。
http://developer.yahoo.co.jp/yconnect/server_app/java/sample.html
に従い、必要なライブラリーはlib配下に配置しbuild.sbtにも記載しました。

Play自体さわり始めたばかりにつき、的を得ない質問はご容赦下さい。
どうぞ宜しくお願い致します。

1
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?