本文主要是介绍Eclipse 在loading workbench时闪退并提示查看.log,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
启动Eclipse时,在loading workbench时很快就闪退,反复启动几次都是这种情况,关机重启后还是出现这种情况,并且每次闪退后都提示查看\workspace\.metadata\.log ,进入该目录中,发现有如下异常信息记录:- !ENTRY org.eclipse.e4.ui.workbench.swt 4 2 2016-08-23 08:42:49.516
- !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.e4.ui.workbench.swt".
- !STACK 0
- java.lang.IllegalArgumentException: Argument cannot be null
- at org.eclipse.swt.SWT.error(SWT.java:4472)
- at org.eclipse.swt.SWT.error(SWT.java:4406)
- at org.eclipse.swt.SWT.error(SWT.java:4377)
- at org.eclipse.swt.widgets.Widget.error(Widget.java:482)
- at org.eclipse.swt.widgets.Widget.checkParent(Widget.java:291)
- at org.eclipse.swt.widgets.Widget.<init>(Widget.java:158)
- at org.eclipse.swt.widgets.Control.<init>(Control.java:109)
- at org.eclipse.swt.widgets.Scrollable.<init>(Scrollable.java:81)
- at org.eclipse.swt.widgets.Composite.<init>(Composite.java:96)
- at org.eclipse.e4.ui.workbench.renderers.swt.SashRenderer.createWidget(SashRenderer.java:127)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createWidget(PartRenderingEngine.java:971)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:640)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeCreateGui(PartRenderingEngine.java:746)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access$0(PartRenderingEngine.java:717)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$2.run(PartRenderingEngine.java:711)
- at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
- at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.createGui(PartRenderingEngine.java:695)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.createElement(PartServiceImpl.java:1205)
- at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.showPart(PartServiceImpl.java:1170)
- at org.eclipse.ui.internal.WorkbenchPage.showPart(WorkbenchPage.java:1301)
- at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:1266)
- at org.eclipse.ui.internal.WorkbenchPage$12.run(WorkbenchPage.java:4211)
- at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
- at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:4207)
- at org.eclipse.ui.internal.ide.IDEWorkbenchPlugin$2.run(IDEWorkbenchPlugin.java:376)
- at org.eclipse.swt.widgets.Display.runTimer(Display.java:4281)
- at org.eclipse.swt.widgets.Display.messageProc(Display.java:3368)
- at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
- at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)
- at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3767)
- at org.eclipse.swt.widgets.Display.release(Display.java:3825)
- at org.eclipse.swt.graphics.Device.dispose(Device.java:295)
- at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)
- 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:380)
- at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
- 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:669)
- at org.eclipse.equinox.launcher.Main.basicRun(Main.java:608)
- at org.eclipse.equinox.launcher.Main.run(Main.java:1515)
- at org.eclipse.equinox.launcher.Main.main(Main.java:1488)
解决办法:
找到<workspace>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi"文件,将其删掉,再重启Eclipse,恢复正常。
这篇关于Eclipse 在loading workbench时闪退并提示查看.log的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!