java.lang.ClassCastException: org.eclipse.ui.internal.ErrorEditorPart cannot be cast to org.eclipse.ui.texteditor.ITextEditor

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

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

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
, 11 months 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.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.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.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.internal.cocoa.OS.objc_msgSendSuper(Native Method)
at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5218)
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.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 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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.