티스토리 뷰

반응형

오랜만에 이클립스 환경에서 개발하는데, 아래 화면과 같은 에러를 보게 되었다.

 

workspace > .metadata > .log 파일을 확인하면 이클립스에서 발생한 에러를 확인할 수 있다.

에러를 확인해보니 아래와 같이 출력되어 있었다.

 

!ENTRY org.eclipse.ui.workbench 4 2 2019-08-07 13:51:47.632 
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". 
!STACK 0 
java.lang.NullPointerException 
at org.eclipse.wst.sse.ui.internal.contentoutline.ConfigurableContentOutlinePage.unconfigure(ConfigurableContentOutlinePage.java:626) 
at org.eclipse.wst.sse.ui.internal.contentoutline.ConfigurableContentOutlinePage.setConfiguration(ConfigurableContentOutlinePage.java:539) 
at org.eclipse.wst.sse.ui.StructuredTextEditor.update(StructuredTextEditor.java:3195) 
at org.eclipse.m2e.editor.pom.MavenPomEditor$MavenPomActivationListener.handleActivation(MavenPomEditor.java:1019) 
at org.eclipse.m2e.editor.pom.MavenPomEditor$MavenPomActivationListener.partActivated(MavenPomEditor.java:951) 
at org.eclipse.ui.internal.PartService$1.run(PartService.java:85) 
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) 
at org.eclipse.ui.internal.PartService.partActivated(PartService.java:82) 
at org.eclipse.ui.internal.WorkbenchWindow$WWinPartService.partActivated(WorkbenchWindow.java:3173) 
at org.eclipse.ui.internal.WorkbenchPage$3.run(WorkbenchPage.java:4905) 
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) 
at org.eclipse.ui.internal.WorkbenchPage.firePartActivated(WorkbenchPage.java:4902) 
at org.eclipse.ui.internal.WorkbenchPage.access$3(WorkbenchPage.java:4887) 
at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:214) 
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$3.run(PartServiceImpl.java:253) 
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) 
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:250) 
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:775) 
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:684) 
at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:679) 
at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:975) 
at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:3171) 
at org.eclipse.ui.internal.WorkbenchPage.lambda$9(WorkbenchPage.java:3114) 
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72) 
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3112) 
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3083) 
at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:3074) 
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:570) 
at org.eclipse.ui.ide.IDE.openEditor(IDE.java:525) 
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:363) 
at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:170) 
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:287) 
at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:252) 
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) 
at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:252) 
at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:53) 
at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:215) 
at org.eclipse.ui.navigator.CommonNavigatorManager$1.open(CommonNavigatorManager.java:183) 
at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) 
at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:796) 
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45) 
at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:47) 
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:176) 
at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:793) 
at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1108) 
at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:454) 
at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275) 
at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:270) 
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:310) 
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89) 
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131) 
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1056) 
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944) 
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547) 
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173) 
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) 
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062) 
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155) 
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:635) 
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) 
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559) 
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155) 
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) 
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137) 
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
at java.lang.reflect.Method.invoke(Method.java:498) 
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660) 
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597) 
at org.eclipse.equinox.launcher.Main.run(Main.java:1468) 

!ENTRY org.eclipse.ui 4 0 2019-08-07 13:51:49.002 
!MESSAGE Unhandled event loop exception 
!STACK 0 
java.lang.NullPointerException 
at org.eclipse.wst.sse.ui.internal.contentoutline.ConfigurableContentOutlinePage.unconfigure(ConfigurableContentOutlinePage.java:626) 
at org.eclipse.wst.sse.ui.internal.contentoutline.ConfigurableContentOutlinePage.setConfiguration(ConfigurableContentOutlinePage.java:539) 
at org.eclipse.wst.sse.ui.StructuredTextEditor.update(StructuredTextEditor.java:3195) 
at org.eclipse.m2e.editor.pom.MavenPomEditor$MavenPomActivationListener.handleActivation(MavenPomEditor.java:1019) 
at org.eclipse.m2e.editor.pom.MavenPomEditor$MavenPomActivationListener$1.run(MavenPomEditor.java:979) 
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40) 
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185) 
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3919) 
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3550) 
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173) 
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) 
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062) 
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155) 
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:635) 
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338) 
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:559) 
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) 
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155) 
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203) 
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137) 
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) 
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
at java.lang.reflect.Method.invoke(Method.java:498) 
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:660) 
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597) 
at org.eclipse.equinox.launcher.Main.run(Main.java:1468)

이 중 내 눈에 들어온건

!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.ui.workbench". 

 

구글에 검색해보니 workspace > .metadata > plugins >org.eclipse.e4.workbench 경로에 있는 workbench.xmi 파일을

지우면 된다고 한다.

 

workbench관련한 오류는 강제종료나 플러그인 오류로 인해 workbench가 정상으로 저장되지 않아서 주로 발생한다.

workbench.xmi는 이클립스 실행시 이전 종료시에 있던 상태들(UI구성, 작업하던 파일들)을 로드하기 위한 파일이다. 

삭제 후 이클립스를 재실행하면 해당 에러가 더이상 발생하지 않는다. 대신 UI구성은 초기화 된다.

반응형

'develop etc.. > etc' 카테고리의 다른 글

GDG DevFest Seoul 2019 후기  (0) 2019.10.28
Eclipse로 자동 주석달기(Code Template)  (0) 2019.08.08
Disqus로 댓글 서비스 구현하기  (0) 2019.07.18
VSC(Visual Studio Code)로 DB연결  (0) 2019.07.14
Docker 및 postgresql 설치  (0) 2019.07.09
댓글
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
글 보관함