Eclipse安装错误-NullPointerException和HTTP代理身份验证

时间:2018-12-27 14:24:04

标签: http proxy nullpointerexception

我正在尝试在工作中安装Eclipse,但遇到错误。我将在下面粘贴日志,但在此之前,让我简要介绍一下我的问题。

我正在尝试在我工作地点的公司的便携式计算机上安装Eclipse。他们确实使用代理标识,甚至具有管理员权限,但我似乎无法安装Eclipse。运行Eclipse安装程序时遇到的第一个错误是NullPointerException错误。日志是:

  

java.lang.NullPointerException在   org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl $ AuthorizationHandlerImpl.reauthorize(ECFURIHandlerImpl.java:772)     在   org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl $ ConnectionHandler.process(ECFURIHandlerImpl.java:1674)     在   org.eclipse.oomph.setup.internal.core.util.ECFURIHandlerImpl.createInputStream(ECFURIHandlerImpl.java:319)     在   org.eclipse.emf.ecore.resource.impl.ExtensibleURIConverterImpl.createInputStream(ExtensibleURIConverterImpl.java:360)     在   org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1314)     在   org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.handleArchiveRedirection(SetupCoreUtil.java:546)     在   org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:348)     在   org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.configureResourceSet(SetupCoreUtil.java:174)     在   org.eclipse.oomph.setup.internal.core.util.SetupCoreUtil.createResourceSet(SetupCoreUtil.java:168)     在   org.eclipse.oomph.setup.ui.wizards.SetupWizard。(SetupWizard.java:167)     在   org.eclipse.oomph.setup.ui.wizards.SetupWizard。(SetupWizard.java:159)     在   org.eclipse.oomph.setup.internal.installer.Installer。(Installer.java:40)     在   org.eclipse.oomph.setup.internal.installer.InstallerApplication.run(InstallerApplication.java:222)     在   org.eclipse.oomph.setup.internal.installer.InstallerApplication.start(InstallerApplication.java:408)     在   org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)     在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)     在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)     在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)     在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处   sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)位于   sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)位于   java.lang.reflect.Method.invoke(来源未知)   org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)位于   org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)在   org.eclipse.equinox.launcher.Main.run(Main.java:1501)

单击“更新”按钮或“确定”继续后,出现另一个错误。这次,这是“内部错误。需要HTTP代理身份验证”。 THAT的日志如下:

  

java.lang.reflect.InvocationTargetException在   org.eclipse.oomph.setup.internal.installer.InstallerApplication $ 6 $ 2.run(InstallerApplication.java:484)     在   org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:122)   引起原因:org.eclipse.equinox.p2.core.ProvisionException:HTTP代理   要求验证:   http://download.eclipse.org/oomph/products/repository/content.xml在   org.eclipse.equinox.internal.p2.repository.CacheManager.createCache(CacheManager.java:246)     在   org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:69)     在   org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:89)     在   org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:63)     在   org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:770)     在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处   sun.reflect.NativeMethodAccessorImpl.invoke(未知来源)位于   sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)位于   java.lang.reflect.Method.invoke(来源未知)   org.eclipse.oomph.util.ReflectUtil.invokeMethod(ReflectUtil.java:117)     在   org.eclipse.oomph.p2.internal.core.CachingRepositoryManager.loadRepository(CachingRepositoryManager.java:409)     在   org.eclipse.oomph.p2.internal.core.CachingRepositoryManager.loadRepository(CachingRepositoryManager.java:201)     在   org.eclipse.oomph.p2.internal.core.CachingRepositoryManager $ Metadata.loadRepository(CachingRepositoryManager.java:476)     在   org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:110)     在   org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:105)     在   org.eclipse.oomph.p2.internal.core.ProfileTransactionImpl $ RepositoryLoader $ Worker.perform(ProfileTransactionImpl.java:1613)     在org.eclipse.oomph.util.WorkerPool $ Worker.run(WorkerPool.java:428)     在org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)上引起   创建人:org.eclipse.ecf.filetransfer.BrowseFileTransferException:代理   需要验证   org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:291)     在   org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser $ DirectoryJob.run(AbstractFileSystemBrowser.java:69)     ...还有1个

我尝试过的解决方案: 转到eclipse.ini并输入 -Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4,但无效。

任何解决方案都会有所帮助。我个人认为,最终是代理设置阻止了我安装Eclipse,因为我在打开Unity时也遇到了同样的问题。 (我可以安装Unity,但无法登录)。谢谢。

0 个答案:

没有答案