Eclipse导入github报错

  1. 报错:cannot open git-upload-pack

    第一次通过eclipse导入github 项目,按照百度步骤进行操作,发现不能连接 github,cannot open git-upload-pack。

  2. 报错原因
    通过 eclipse 日志排查报错
    !MESSAGE https://github.com/making/spring-boot-jersey-blank.git: cannot open git-upload-pack
    !STACK 0
    org.eclipse.jgit.api.errors.TransportException: https://github.com/making/spring-boot-jersey-blank.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.clone.SourceBranchPage$8.run(SourceBranchPage.java:324)
        at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
    Caused by: org.eclipse.jgit.errors.TransportException: https://github.com/making/spring-boot-jersey-blank.git: cannot open git-upload-pack
        at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:499)
        at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:308)
        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.util.HttpSupport.response(HttpSupport.java:167)
        at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:462)
        ... 5 more

    重点在于 : javax.net.ssl.SSLException: Received fatal alert: protocol_version , ssl 协议版本存在问题。
    在 github 的 Weak cryptographic standards removal notice 中有提到,取消 TLSv1/TLSv1.1 的连接方式,对于jdk1.7 的用户可以显示的进行配置,对于jdk1.6 的客户建议升级jdk版本,jdk1.8及以上版本支出 TLSV1.2,故不用配置。

  3. 解决方法
    我本地是1.7 需要进行相关的配置操作。
    操作: 在 eclipse.ini 文件的最后加上 -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2(另起一行)

原文地址:https://www.cnblogs.com/zz-1q/p/10323095.html

时间: 2024-08-28 17:07:23

Eclipse导入github报错的相关文章

android studio - 导入工程报错[Plugin with id 'com.android.application' not found]

出错现象: 大概意思是找不到:com.android.application 插件,以上现象对于初学者来说会经常碰到,下面分析下产生的原因. 原因分析 首先来看看导入后的工程结构: 对于此工程结构,是否有个疑问? 这是未正常同步完成的结构,Gradle Scripts下面似乎少了个 build.gradle ,上图红框部分描述清楚了是 Module: GraphicsDemo ,表示该 build.gradle 是Module的,而不是Project的.来看看一个正常的 Project+Modu

导入导出报错

导入导出报错: 另: 右键--共享:停止共享: 可能无效. 此时,可以通过修改文件夹的权限,来达到停止共享的目的:

Android见招拆招九:字符编码问题导入项目报错

导入项目报错 问题原因及解决 字符编码问题,UTF-8和GBK Android见招拆招九:字符编码问题导入项目报错,布布扣,bubuko.com

python 导入beautifulsoup报错

导入Beautifulsoup 报错 AttributeError: 'module' object has no attribute '_base' 解决方法:   pip install --upgrade beautifulSoup4 pip install --upgrade html5lib

【转载】如何从Eclipse导入github上的项目源码

如何从Eclipse导入github上的项目源码 分类: Android2013-02-03 10:04 21027人阅读 评论(15) 收藏 举报 1.首先在github.com上申请一个账号,比如笔者的账号为puma0072.Eclipse需要安装egit插件,在Eclipse中选择help->Marketplace,在search中输入egit,找到后安装即可3.在github上找到你要导入的源码项目,比如笔者以oschina的Android客户端为例,网址:https://github.

关于导入excel报错的处理(xls,xlsx)

最近在做一个将excel导入到dataGriview中的小功能在做的过程中遇到以下问题: 链接excel的链接串是这样写的 string strConnection = "Provider=Microsoft.JET.OLEDB.4.0;Data Source = " + strFileName + ";Extended Properties = Excel 8.0"; 这样写连接串导入*xls时一切顺利,当我导入*xlsx文件时报这样一个错误:“System.Da

C# 导入EXCEL 报错外部表不是预期的格式错误 .

错误经过:在读取Excel时,出现外部表不是预期的格式 错误原因1: 由于Excel 97-2003的连接格式与Excel 2010 的 不同造成. 以下是从网上摘抄原文 Excel “External table is not in the expected format.” . Question: I'm trying to read an Excel (xlsx) file using the code shown below. I get an "External table is no

Android--如何用AndroidStudio和Eclipse导入github项目

如何用AndroidStudio导入github项目 Eclipse导入github项目 直接右键git 就完成了. AndroidStudio导入github项目 第一步: 你的电脑上首先要有git和AndroidStudio 第二步:settings界面设置Git,配置Git路径 第三步:settings配置github的账号,输入帐号密码. 第四步:配置你要clone的项目地址了   VCS --> Checkout from Version Control --> Github  存入

解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element

解决eclipse spring配置报错:cvc-elt.1: Cannot find the declaration of element 'beans'.Referenced file contains errors (http://www.springframework.org/schema/aop/spring-aop-3.1.xsd). 原因是无法从网络上读取到相应的schema文件,但实际上在浏览器中是可以访问的.却一直在eclipse中显示红叉,当然,并不影响编译打包. 查看所依赖