以编程方式从Eclipse插件安装插件:错误处理镜像URL

时间:2013-11-07 11:43:32

标签: eclipse eclipse-plugin eclipse-pde eclipse-jdt

在我们的项目(Eclipse插件)中,我们尝试以编程方式安装几个插件(不用担心,用户首先必须接受所有许可证)。一切正常,插件安装完毕,除了某个错误不断弹出:

eclipse.buildId=M20120208-0800
java.version=1.6.0_43
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=nl_BE
Framework arguments:  -product org.eclipse.epp.package.rcp.product
command-line arguments:  -os win32 -ws win32 -arch x86_64 -product
    org.eclipse.epp.package.rcp.product

Error
Thu Nov 07 12:32:22 CET 2013
Error processing mirrors URL:
    http://www.eclipse.org/modeling/updates/countryCode=be&timeZone=1&format=xml

java.io.FileNotFoundException:
    http://www.eclipse.org/modeling/updates/countryCode=be&timeZone=1&format=xml
    at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryStatusHelper.checkFileNotFound(RepositoryStatusHelper.java:297)
    at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.checkException(FileReader.java:384)
    at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.sendRetrieveRequest(FileReader.java:358)
    at org.eclipse.equinox.internal.p2.transport.ecf.FileReader.read(FileReader.java:213)
    at org.eclipse.equinox.internal.p2.transport.ecf.RepositoryTransport.stream(RepositoryTransport.java:153)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.computeMirrors(MirrorSelector.java:274)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.initMirrors(MirrorSelector.java:336)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.selectMirror(MirrorSelector.java:406)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorSelector.getMirrorLocation(MirrorSelector.java:314)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getMirror(SimpleArtifactRepository.java:651)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.downloadArtifact(SimpleArtifactRepository.java:568)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:680)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.getArtifact(MirrorRequest.java:260)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transferSingle(MirrorRequest.java:235)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.transfer(MirrorRequest.java:191)
    at org.eclipse.equinox.internal.p2.artifact.repository.MirrorRequest.perform(MirrorRequest.java:122)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.SimpleArtifactRepository.getArtifact(SimpleArtifactRepository.java:664)
    at org.eclipse.equinox.internal.p2.artifact.repository.simple.DownloadJob.run(DownloadJob.java:63)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

我们已经尝试了一些方法,比如在pom.xml中设置我们不想使用镜像的tycho,或者将它作为JVM参数设置,或者只是将System属性设置为不使用镜像。但是,据我所知,这只会取消noneclipse.org网站,这是一个eclipse.org网站......

要安装的更新内容是:http://download.eclipse.org/modeling/emf/teneo/updates/2.0.0/interim/(适用于Teneo)。

如何防止此错误发生?要明确:这不会阻止代码按预期运行。 Teneo安装完毕。我只是不希望在错误日志中弹出这种错误。

感谢您的任何提示。

0 个答案:

没有答案