运行eclipse时发生错误:由于java.io.EOFException而导致初始化存储错误

时间:2018-06-26 17:24:48

标签: java linux eclipse rhel5

我正在使用Eclipse,一切都还好,但是突然之间,我无法在Linux(RHEL)中打开我的日食。我也已经卸载并重新安装了Eclipse,但是错误仍然存​​在。

这是日志

  

java.lang.RuntimeException:初始化存储时出错。
   在org.eclipse.osgi.internal.framework.EquinoxContainer中。    在org.eclipse.osgi.launch.Equinox。(Equinox.java:31)
   在org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:303)
   在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:239)
   在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)
   在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   在java.lang.reflect.Method.invoke(Method.java:498)
   在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
   在org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
   在org.eclipse.equinox.launcher.Main.run(Main.java:1499)
   在org.eclipse.equinox.launcher.Main.main(Main.java:1472)造成原因:java.io.EOFException
   在java.io.DataInputStream.readInt(DataInputStream.java:392)
   在org.eclipse.osgi.storage.Storage.loadGenerations(Storage.java:1160)
   在org.eclipse.osgi.storage.Storage。(Storage.java:137)
   在org.eclipse.osgi.storage.Storage.createStorage(Storage.java:85)
   在org.eclipse.osgi.internal.framework.EquinoxContainer中。     ...另外11个

已经尝试过的东西:

删除配置文件下的org.eclipse.osgi(无法解决问题)

更新:

在{workspace} /../ metadata / .log

org.eclipse.core.runtime.CoreException: Failed to open archive: /home/***/tracecompass-incubator-workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse$
        at org.eclipse.pde.api.tools.internal.model.ApiElement.abort(ApiElement.java:103)
        at org.eclipse.pde.api.tools.internal.model.ArchiveApiTypeContainer$ArchiveApiTypeRoot.getContents(ArchiveApiTypeContainer.java:105)
        at org.eclipse.pde.api.tools.internal.model.AbstractApiTypeRoot.getStructure(AbstractApiTypeRoot.java:52)
        at org.eclipse.pde.api.tools.internal.provisional.comparator.ApiComparator$2.visit(ApiComparator.java:662)
        at org.eclipse.pde.api.tools.internal.model.ArchiveApiTypeContainer.accept(ArchiveApiTypeContainer.java:201)
        at org.eclipse.pde.api.tools.internal.provisional.comparator.ApiComparator.internalCompare(ApiComparator.java:656)
        at org.eclipse.pde.api.tools.internal.provisional.comparator.ApiComparator.compare(ApiComparator.java:286)
        at org.eclipse.pde.api.tools.internal.provisional.comparator.ApiComparator.compare(ApiComparator.java:312)
        at org.eclipse.pde.api.tools.internal.builder.BaseApiAnalyzer.checkCompatibility(BaseApiAnalyzer.java:1421)
        at org.eclipse.pde.api.tools.internal.builder.BaseApiAnalyzer.analyzeComponent(BaseApiAnalyzer.java:255)
        at org.eclipse.pde.api.tools.internal.builder.ApiAnalysisBuilder.buildAll(ApiAnalysisBuilder.java:757)
        at org.eclipse.pde.api.tools.internal.builder.ApiAnalysisBuilder.build(ApiAnalysisBuilder.java:368)
        at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
        at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
        at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
        at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
        at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
    at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
        at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:142)
        at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:232)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.io.FileNotFoundException: /home/****/tracecompass-incubator-workspace/.metadata/.plugins/org.eclipse.pde.core/.bundle_pool/plugins/org.eclipse.tracecompass.lttng2.c$
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:219)
        at java.util.zip.ZipFile.<init>(ZipFile.java:149)
        at java.util.zip.ZipFile.<init>(ZipFile.java:120)
        at org.eclipse.pde.api.tools.internal.model.ArchiveApiTypeContainer$ArchiveApiTypeRoot.getContents(ArchiveApiTypeContainer.java:103)
        ... 22 more

提前谢谢!

0 个答案:

没有答案