eclipse启动出现“An Error has Occurred. See the log file”的解决方法
!ENTRY org.eclipse.core.resources 4 568 2017-10-25 14:00:25.579
!MESSAGE Internal error in history store
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Could not read metadata for ‘D:\fw.metadata.plugins\org.eclipse.core.resources.projects\WorkOrderManagementSystem.indexes\6e\26\history.index’. Unexpected version: 0.
at org.eclipse.core.internal.localstore.Bucket.load(Bucket.java:304)
at org.eclipse.core.internal.localstore.Bucket.load(Bucket.java:275)
at org.eclipse.core.internal.localstore.BucketTree.loadBucketFor(BucketTree.java:115)
at org.eclipse.core.internal.localstore.HistoryStore2 HistoryCopyVisitor.saveChanges(HistoryStore2.java:48)atorg.eclipse.core.internal.localstore.HistoryStore2 HistoryCopyVisitor.afterSaving(HistoryStore2.java:38)
at org.eclipse.core.internal.localstore.Bucket.accept(Bucket.java:208)
at org.eclipse.core.internal.localstore.BucketTree.internalAccept(BucketTree.java:99)
at org.eclipse.core.internal.localstore.BucketTree.accept(BucketTree.java:76)
at org.eclipse.core.internal.localstore.HistoryStore2.copyHistory(HistoryStore2.java:253)
at org.eclipse.core.internal.localstore.FileSystemResourceManager.copy(FileSystemResourceManager.java:326)
at org.eclipse.core.internal.resources.Resource.copy(Resource.java:552)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.copyResource(AbstractImageBuilder.java:383)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder 3.visit(BatchImageBuilder.java:223)atorg.eclipse.core.internal.resources.Resource 1.visitElement(Resource.java:84)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:129)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:52)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.copyExtraResourcesBack(BatchImageBuilder.java:192)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.cleanOutputFolders(BatchImageBuilder.java:120)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:47)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:256)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:180)
at org.eclipse.core.internal.events.BuildManager 2.run(BuildManager.java:735)atorg.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)atorg.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)atorg.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)atorg.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:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.core.resources 4 567 2017-10-25 14:00:25.579
!MESSAGE Could not read metadata for ‘D:\fw.metadata.plugins\org.eclipse.core.resources.projects\WorkOrderManagementSystem.indexes\6e\26\history.index’. Unexpected version: 0.
!ENTRY org.eclipse.core.resources 4 568 2017-10-25 14:00:25.595
!MESSAGE Internal error in history store
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Could not read metadata for ‘D:\fw.metadata.plugins\org.eclipse.core.resources.projects\WorkOrderManagementSystem.indexes\6e\26\history.index’. Unexpected version: 0.
at org.eclipse.core.internal.localstore.Bucket.load(Bucket.java:304)
at org.eclipse.core.internal.localstore.Bucket.load(Bucket.java:275)
at org.eclipse.core.internal.localstore.BucketTree.internalAccept(BucketTree.java:98)
at org.eclipse.core.internal.localstore.BucketTree.accept(BucketTree.java:76)
at org.eclipse.core.internal.localstore.HistoryStore2.applyPolicy(HistoryStore2.java:145)
at org.eclipse.core.internal.localstore.HistoryStore2.copyHistory(HistoryStore2.java:255)
at org.eclipse.core.internal.localstore.FileSystemResourceManager.copy(FileSystemResourceManager.java:326)
at org.eclipse.core.internal.resources.Resource.copy(Resource.java:552)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.copyResource(AbstractImageBuilder.java:383)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder 3.visit(BatchImageBuilder.java:223)atorg.eclipse.core.internal.resources.Resource 1.visitElement(Resource.java:84)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:129)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:52)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.copyExtraResourcesBack(BatchImageBuilder.java:192)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.cleanOutputFolders(BatchImageBuilder.java:120)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:47)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:256)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:180)
at org.eclipse.core.internal.events.BuildManager 2.run(BuildManager.java:735)atorg.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)atorg.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)atorg.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)atorg.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:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.core.resources 4 567 2017-10-25 14:00:25.595
!MESSAGE Could not read metadata for ‘D:\fw.metadata.plugins\org.eclipse.core.resources.projects\WorkOrderManagementSystem.indexes\6e\26\history.index’. Unexpected version: 0.
!ENTRY org.eclipse.core.resources 4 568 2017-10-25 14:00:25.642
!MESSAGE Internal error in history store
!STACK 1
org.eclipse.core.internal.resources.ResourceException: Could not read metadata for ‘D:\fw.metadata.plugins\org.eclipse.core.resources.projects\WorkOrderManagementSystem.indexes\6e\26\history.index’. Unexpected version: 0.
at org.eclipse.core.internal.localstore.Bucket.load(Bucket.java:304)
at org.eclipse.core.internal.localstore.Bucket.load(Bucket.java:275)
at org.eclipse.core.internal.localstore.BucketTree.loadBucketFor(BucketTree.java:115)
at org.eclipse.core.internal.localstore.HistoryStore2 HistoryCopyVisitor.saveChanges(HistoryStore2.java:48)atorg.eclipse.core.internal.localstore.HistoryStore2 HistoryCopyVisitor.afterSaving(HistoryStore2.java:38)
at org.eclipse.core.internal.localstore.Bucket.accept(Bucket.java:208)
at org.eclipse.core.internal.localstore.BucketTree.internalAccept(BucketTree.java:99)
at org.eclipse.core.internal.localstore.BucketTree.accept(BucketTree.java:76)
at org.eclipse.core.internal.localstore.HistoryStore2.copyHistory(HistoryStore2.java:253)
at org.eclipse.core.internal.localstore.FileSystemResourceManager.copy(FileSystemResourceManager.java:326)
at org.eclipse.core.internal.resources.Resource.copy(Resource.java:552)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.copyResource(AbstractImageBuilder.java:383)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder 3.visit(BatchImageBuilder.java:223)atorg.eclipse.core.internal.resources.Resource 1.visitElement(Resource.java:84)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:87)
at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:129)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:94)
at org.eclipse.core.internal.resources.Resource.accept(Resource.java:52)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.copyExtraResourcesBack(BatchImageBuilder.java:192)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.cleanOutputFolders(BatchImageBuilder.java:120)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:47)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:256)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:180)
at org.eclipse.core.internal.events.BuildManager 2.run(BuildManager.java:735)atorg.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)atorg.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)atorg.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)atorg.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:144)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SUBENTRY 1 org.eclipse.core.resources 4 567 2017-10-25 14:00:25.642
!MESSAGE Could not read metadata for ‘D:\fw.metadata.plugins\org.eclipse.core.resources.projects\WorkOrderManagementSystem.indexes\6e\26\history.index’. Unexpected version: 0.
!ENTRY org.eclipse.e4.ui.workbench 4 0 2017-10-25 14:00:40.236
!MESSAGE Error setting focus to : org.eclipse.e4.ui.model.application.ui.basic.impl.PartImpl dicts.jsp
!STACK 0
org.eclipse.swt.SWTException: Widget is disposed
at org.eclipse.swt.SWT.error(SWT.java:4533)
at org.eclipse.swt.SWT.error(SWT.java:4448)
at org.eclipse.swt.SWT.error(SWT.java:4419)
at org.eclipse.swt.widgets.Widget.error(Widget.java:482)
at org.eclipse.swt.widgets.Widget.checkWidget(Widget.java:354)
at org.eclipse.swt.widgets.Control.setFocus(Control.java:3445)
at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1122)
at org.eclipse.swt.widgets.Composite.setFocus(Composite.java:1122)
at org.eclipse.ui.texteditor.StatusTextEditor.setFocus(StatusTextEditor.java:118)
at org.eclipse.ui.internal.e4.compatibility.CompatibilityPart.delegateSetFocus(CompatibilityPart.java:203)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:288)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:259)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:107)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.focusGui(PartRenderingEngine.java:779)
at org.eclipse.e4.ui.workbench.renderers.swt.ContributedPartRenderer 2.setFocus(ContributedPartRenderer.java:102)atorg.eclipse.swt.custom.CTabItem.setFocus(CTabItem.java:332)atorg.eclipse.swt.custom.CTabFolder.setFocus(CTabFolder.java:2611)atorg.eclipse.swt.widgets.Control.fixFocus(Control.java:1069)atorg.eclipse.swt.widgets.Control.setVisible(Control.java:3972)atorg.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3155)atorg.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3112)atorg.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.showTab(StackRenderer.java:1336)atorg.eclipse.e4.ui.workbench.renderers.swt.LazyStackRenderer 1.handleEvent(LazyStackRenderer.java:72)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler 1.run(UIEventHandler.java:40)atorg.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:233)atorg.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:145)atorg.eclipse.swt.widgets.Display.syncExec(Display.java:4821)atorg.eclipse.e4.ui.internal.workbench.swt.E4Application 1.syncExec(E4Application.java:211)
at org.eclipse.e4.ui.services.internal.events.UIEventHandler.handleEvent(UIEventHandler.java:36)
at org.eclipse.equinox.internal.event.EventHandlerWrapper.handleEvent(EventHandlerWrapper.java:201)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:197)
at org.eclipse.equinox.internal.event.EventHandlerTracker.dispatchEvent(EventHandlerTracker.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)
at org.eclipse.equinox.internal.event.EventAdminImpl.dispatchEvent(EventAdminImpl.java:135)
at org.eclipse.equinox.internal.event.EventAdminImpl.sendEvent(EventAdminImpl.java:78)
at org.eclipse.equinox.internal.event.EventComponent.sendEvent(EventComponent.java:39)
at org.eclipse.e4.ui.services.internal.events.EventBroker.send(EventBroker.java:94)
at org.eclipse.e4.ui.internal.workbench.UIEventPublisher.notifyChanged(UIEventPublisher.java:60)
at org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify(BasicNotifierImpl.java:374)
at org.eclipse.e4.ui.model.application.ui.impl.ElementContainerImpl.setSelectedElement(ElementContainerImpl.java:173)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1331)
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.hidePart(PartServiceImpl.java:1284)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.closePart(StackRenderer.java:1296)
at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer.access 2(StackRenderer.java:1278)atorg.eclipse.e4.ui.workbench.renderers.swt.StackRenderer 7.close(StackRenderer.java:1163)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1930)
at org.eclipse.swt.custom.CTabFolder 1.handleEvent(CTabFolder.java:338)atorg.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)atorg.eclipse.swt.widgets.Display.sendEvent(Display.java:4418)atorg.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)atorg.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4236)atorg.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3824)atorg.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine 4.run(PartRenderingEngine.java:1121)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
1.删除工作区目录“.metadata/.plugins/org.eclipse.core.resources/.snap”文件即可
2.可以备份工作区间的项目,之后删除工作区间重建,导入备份的项目。