【问题标题】:netbeans cannot open git-upload-packnetbeans 无法打开 git-upload-pack
【发布时间】:2018-07-01 18:12:56
【问题描述】:

今天我尝试将工作中的更改上传到我的 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) [catch] 在 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 握手异常或类似原因引起的。在这种情况下有所不同,我找不到解决方案。有人可以帮助我吗?谢谢

【问题讨论】:

  • 出现上述错误后,您是否确认可以在 NetBeans 之外成功访问 git?
  • 是的。我通常可以通过网络浏览器访问它。也像往常一样在家里推作品。它在我的工作场所不起作用(但以前确实如此)。它必须改变一些软件,但我不知道具体是什么

标签: git netbeans push


【解决方案1】:

这是工作网络的问题(代理地址错误)。一旦我切换到我的个人 WiFi 热点,它就可以工作了

【讨论】:

    猜你喜欢
    • 2018-08-08
    • 2011-10-27
    • 2014-01-27
    • 2013-09-19
    • 1970-01-01
    • 2012-07-30
    • 2020-09-15
    • 2013-02-25
    • 2015-02-11
    相关资源
    最近更新 更多