Eclipse安装插件报错An error occurred while collecting items to be installed session context was...解决方法

Eclipse安装插件报错An error occurred while collecting items to be installed session context was...解决方法_第1张图片
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
HTTP Server ‘Internal Error’: http://updates-cdn.genuitec.com/devstyle/updates/ds20190916a/plugins/com.genuitec.eclipse.theming.epl_1.11.0.201909171704.jar
HttpComponents connection error response code 500.

报错:
收集要安装的项目会话上下文时发生错误:(profile = epp.package.jee,phase = org.eclipse.equinox.internal.p2.engine.phases.Collect,operand =,action =)。HTTP服务器’内部错误’:http ://updates-cdn.genuitec.com/devstyle/updates/ds20190916a/plugins/com.genuitec.eclipse.theming.epl_1.11.0.201909171704.jar HttpComponents连接错误响应代码500。
出错原因:
Eclipse的更新管理P2出错了。
p2有它的一个垃圾回收机制,之前删除的JAR包在未被回收之前,再次重装,系统不会做重新download的动作,但是它又找不到那个JAR包了,故而报错。
解决方式:
(1)、在运行命令行中切换到Eclipse的安装根目录,即eclipse.exe所在目录执行命令:
cd bailu\eclipse-jee-2019-09-R-win32-x86_64\eclipse
Eclipse安装插件报错An error occurred while collecting items to be installed session context was...解决方法_第2张图片
(2)、eclipse -application org.eclipse.equinox.p2.garbagecollector.application -profile 0000
(0000是configuration/concfig.ini里eclipse.p2.profile项的值)

Eclipse安装插件报错An error occurred while collecting items to be installed session context was...解决方法_第3张图片
适用范围:

1、安装插件报错,找不到某jar包;

2、安装插件报错,An error occurred while collecting items to be installed session context was:(profile=epp.package.je…。
1、第一种常见的情况:Access is denied 访问被拒绝

An error occurred while collecting items to be installed
session context was:(profile=epp.package.java, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to write to repository: file:/C:/Program%20Files/eclipse/.
C:\Program Files\eclipse\plugins\org.jboss.netty_3.2.4.Final-201112281337.jar (Access is denied)

问题分析及解决方法:
在Windows 7上,Program Files目录受到保护,因此应用程序无法自动在那里写入。最简单的解决方案就是将Eclipse安装到用户可写的位置。例如,C:\Java\Eclipse
应该能够移动整个eclipse目录,没有任何注册表项或其他任何将Eclipse绑定到提取它的地方。
or建议是只下载最新的Eclipse,将其安装到一个新的位置(不要将它安装在现有的Eclipse之上),并将其指向现有的工作区。
2、第二种常见的情况:

An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
Unable to read repository at http://sourceforge.net/projects/jautodoc/files/updatesite/1.14.0/net.sf.jautodoc_1.14.0.jar/download.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Unable to read repository at http://sourceforge.net/projects/jautodoc/files/updatesite/1.14.0/net.sf.jautodoc.velocity_1.14.0.jar/download.
sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

问题分析及解决方法:
这是新的Sourceforge SSL证书和旧JRE安装中缺少根证书的问题。有关详细信息,请参阅
我可以在使用Java 8u92运行Eclipse时重现错误。它适用于Java 8u112。
您可以更新您的JRE或从8u112 下载并解压缩此密钥库并更新您的“eclipse.ini”,如下所示:

-vmargs 
-Djavax.net.ssl.trustStore = <你的路径> \ cacerts 
-Djavax.net.ssl.trustStorePassword = changeit

关闭eclipse并从eclipse中的features文件夹中删除以下文件夹(如果存在):

net.sf.jautodoc.feature_1.14.0

以及eclipse中plugins文件夹中的以下任何文件(如果它们存在(有些在安装失败期间安装):

net.sf.jautodoc_1.14.0.jar
net.sf.jautodoc.velocity_1.14.0.jar

现在重新启动eclipse并验证JAutoDoc肯定不存在,然后再次关闭eclipse。现在将上面命名的文件从下载的存档中复制回plugins / features文件夹,然后再次启动eclipse。JAutoDoc现在应该再次出现在那里

你可能感兴趣的:(#,Eclipse,集成开发环境(IDE,),Eclipse安装插件报错An,error,occurred,whil,Eclipse安装插件报错,Eclipse)