解决eclipse连接GIT问题

博客给出参考链接,提醒重启eclipse,主要展示了使用Git连接GitHub仓库时出现的错误信息,包括org.eclipse.jgit.api.errors.TransportException等,还给出了具体的错误堆栈信息,如javax.net.ssl.SSLException等。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >



        参考:https://blog.youkuaiyun.com/royal__moon/article/details/79427431

          记得重启eclipse;     

具体错误信息:

org.eclipse.jgit.api.errors.TransportException: https://github.com/uuidsjd/jindongwar.git: cannot open git-upload-pack
 at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:196)
 at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:99)
 at org.eclipse.egit.ui.internal.components.RefSpecPage$3.run(RefSpecPage.java:250)
 at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/uuidsjd/jindongwar.git: cannot open git-upload-pack
 at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:521)
 at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:309)
 at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:175)
 ... 3 more
Caused by: javax.net.ssl.SSLException: Received fatal alert: protocol_version
 at sun.security.ssl.Alerts.getSSLException(Unknown Source)
 at sun.security.ssl.Alerts.getSSLException(Unknown Source)
 at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
 at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
 at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
 at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
 at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
 at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source)
 at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source)
 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
 at java.net.HttpURLConnection.getResponseCode(Unknown Source)
 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(Unknown Source)
 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)
 ... 5 more

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值