Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by arimus
, 1 year ago
org.eclipse.ui.internal.ErrorEditorPart cannot be cast to org.eclipse.ui.texteditor.ITextEditor
via GitHub by maparole
, 1 year ago
org.eclipse.ui.internal.ErrorEditorPart cannot be cast to org.eclipse.ui.texteditor.ITextEditor
java.lang.ClassCastException: org.eclipse.ui.internal.ErrorEditorPart cannot be cast to org.eclipse.ui.texteditor.ITextEditor	at com.axmor.eclipse.typescript.editor.TypeScriptEditorActionContributor.setActiveEditor(TypeScriptEditorActionContributor.java:28)	at org.eclipse.ui.internal.EditorActionBars.partChanged(EditorActionBars.java:341)	at org.eclipse.ui.internal.WorkbenchPage.updateActivations(WorkbenchPage.java:309)	at org.eclipse.ui.internal.WorkbenchPage.access$18(WorkbenchPage.java:291)	at org.eclipse.ui.internal.WorkbenchPage$E4PartListener.partActivated(WorkbenchPage.java:209)	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl$3.run(PartServiceImpl.java:250)	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.firePartActivated(PartServiceImpl.java:247)	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:757)	at org.eclipse.e4.ui.internal.workbench.PartServiceImpl.activate(PartServiceImpl.java:682)	at org.eclipse.e4.ui.internal.workbench.swt.AbstractPartRenderer.activate(AbstractPartRenderer.java:95)	at org.eclipse.e4.ui.workbench.renderers.swt.StackRenderer$4.handleEvent(StackRenderer.java:1077)	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4248)	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501)	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1509)	at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1612)	at org.eclipse.swt.widgets.Control.sendMouseEvent(Control.java:3484)	at org.eclipse.swt.widgets.Control.mouseEvent(Control.java:2603)	at org.eclipse.swt.widgets.Composite.mouseEvent(Composite.java:933)	at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2612)	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5725)	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)	at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)	at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2140)	at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2402)	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5789)	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)	at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5218)	at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5367)	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)	at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3695)	at org.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:687)	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)	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(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:673)	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)