今天,我试图将所做的更改从我的工作上传到我的git,以便我可以继续在家工作。和往常一样。直到我发现我再也无法推动更改了。我检查了日志文件并找到了
INFO [org.netbeans.modules.git.ui.repository.remote.SelectUriStep]: Cannot connect to https://github.com/someuser/someproject
java.net.SocketException: Socket is not connected: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
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.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:673)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1199)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1040)
at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1038)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1037)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1564)
at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:91)
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1484)
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1482)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivilegedWithCombiner(AccessController.java:782)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1481)
at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:347)
at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:98)
at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:168)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:475)
Caused: org.eclipse.jgit.errors.TransportException: https://someuser@github.com/someuser/someproject
:无法打开git-upload-pack 在org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:524) 在org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309) 在org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:74) 原因:org.netbeans.libs.git.GitException:https://someuser@github.com/someuser/someproject:无法打开git-upload-pack 在org.netbeans.libs.git.jgit.commands.TransportCommand.handleException(TransportCommand.java:261) 在org.netbeans.libs.git.jgit.commands.ListRemoteObjectsCommand.runTransportCommand(ListRemoteObjectsCommand.java:87) 在org.netbeans.libs.git.jgit.commands.TransportCommand.run(TransportCommand.java:191) 在org.netbeans.libs.git.jgit.commands.GitCommand $ 1.run(GitCommand.java:80) 在org.netbeans.libs.git.jgit.commands.GitCommand $ 1.run(GitCommand.java:77) 在java.security.AccessController.doPrivileged(本机方法) 在org.netbeans.libs.git.jgit.commands.GitCommand.execute(GitCommand.java:77) 在org.netbeans.libs.git.GitClient.listRemoteBranches(GitClient.java:916) 在org.netbeans.modules.git.client.GitClient $ 36.call(GitClient.java:605) 在org.netbeans.modules.git.client.GitClient $ 36.call(GitClient.java:601) 在org.openide.util.NetworkSettings.suppressAuthenticationDialog(NetworkSettings.java:140) 在org.netbeans.modules.git.client.GitClient $ CommandInvoker $ 1 $ 1.call(GitClient.java:954) 在org.netbeans.modules.git.client.GitClient $ CommandInvoker $ 1.call(GitClient.java:979) 在org.netbeans.modules.git.client.GitClient $ CommandInvoker.runMethodIntern(GitClient.java:991)上 在org.netbeans.modules.git.client.GitClient $ CommandInvoker.runMethod(GitClient.java:920) 在org.netbeans.modules.git.client.GitClient $ CommandInvoker.runMethod(GitClient.java:898) 在org.netbeans.modules.git.client.GitClient $ CommandInvoker.access $ 400(GitClient.java:892) 在org.netbeans.modules.git.client.GitClient.listRemoteBranches(GitClient.java:601) [抓住] org.netbeans.modules.git.ui.repository.remote.SelectUriStep $ 2.perform(SelectUriStep.java:263) 在org.netbeans.modules.git.client.GitProgressSupport.performIntern(GitProgressSupport.java:115) 在org.netbeans.modules.git.client.GitProgressSupport.run(GitProgressSupport.java:108) 在org.openide.util.RequestProcessor $ Task.run(RequestProcessor.java:1443) 在org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68) 在org.openide.util.lookup.Lookups.executeWith(Lookups.java:303) 在org.openide.util.RequestProcessor $ Processor.run(RequestProcessor.java:2058) 警告[org.netbeans.modules.progress.spi.InternalHandle]:无法调用从未在org.netbeans.modules.git.client.GitProgressSupport.setProgressMessage(GitProgressSupport.java:281)上从未启动过的任务的进度
我在互联网上发现了一些类似的错误,但是大多数错误是由SSL握手异常或类似现象引起的。在这种情况下是不同的,我找不到解决方案。 C有人可以帮我吗?谢谢
答案 0 :(得分:0)
这是工作网络的问题(代理地址错误)。一切换到我的个人WiFi热点,它就起作用了