在尝试通过HTTP建立连接时,Eclipse的现有实例突然出现了问题。
尝试通过HTTP进行通信时,出现以下错误:
java.net.SocketException: Permission denied: connect
at java.net.TwoStacksPlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
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.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:211)
at sun.net.www.http.HttpClient.New(HttpClient.java:308)
at sun.net.www.http.HttpClient.New(HttpClient.java:326)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933)
at com.cardinalcommerce.util.io.TimedHttpUrlConnection$URLStreamReader.run(TimedHttpUrlConnection.java:264)
at java.lang.Thread.run(Thread.java:745)
我已验证相关网址确实存在且可通过我的浏览器访问。
其他有趣的事实:Eclipse安装程序(由Oomph!)在尝试安装Eclipse时遇到相同的错误。如果我在没有安装程序的情况下安装Eclipse的新实例,那么Eclipse市场会遇到同样的错误 - 但我现有的实例在与市场沟通方面没有遇到任何问题。