BUYER ASSIST

java.net.SocketException: Address family not supported by protocol family: connect

下記のようなエラーが発生した時はIPV6で接続を試みて接続エラーになっている可能性があります。

java.net.SocketException: Address family not supported by protocol family: conne
ct

 

https://www.youtube.com/watch?v=serdRSsl5wE

こちらの動画で紹介しているコマンドプロンプトに

setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true

を入力してエンターを押す方法か

 

インターネット接続の確認で失敗するそうです。で回答されているIPv6を利用しない設定にする方法をお試しください。

IPv6の設定を解除するにはZAQのページで紹介されています。

※設定後、再起動が必要です。

 

java.net.SocketException: Address family not supported by protocol family: conne
ct
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.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.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Sou
rce)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown S
ource)
at net.monokoko.db.newDisplayTool.DBProxy.sendQuery(DBProxy.java:126)
at net.monokoko.db.newDisplayTool.DBProxy.select(DBProxy.java:53)
at net.monokoko.db.newDisplayTool.Dao.selectUserByMail(Dao.java:21)
at com.buyma.newDisplayTool.User.load(User.java:124)
at com.buyma.newDisplayTool.NewDisplayTool$7.run(NewDisplayTool.java:497
)
at java.lang.Thread.run(Unknown Source)
Exception in thread “Thread-3” java.lang.RuntimeException: サーバアクセスに失敗
しました。
at net.monokoko.db.newDisplayTool.DBProxy.sendQuery(DBProxy.java:162)
at net.monokoko.db.newDisplayTool.DBProxy.select(DBProxy.java:53)
at net.monokoko.db.newDisplayTool.Dao.selectUserByMail(Dao.java:21)
at com.buyma.newDisplayTool.User.load(User.java:124)
at com.buyma.newDisplayTool.NewDisplayTool$7.run(NewDisplayTool.java:497
)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketException: Address family not supported by protocol fa
mily: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.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.http.HttpClient.(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.http.HttpClient.New(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Sou
rce)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(Unknown
Source)
at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown S
ource)
at net.monokoko.db.newDisplayTool.DBProxy.sendQuery(DBProxy.java:126)
… 5 more

モバイルバージョンを終了