java.lang.ClassCastException: java.lang.Object cannot be cast to org.eclipse.jface.viewers.ISelection

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 Eclipse Bugzilla by robin.rosenberg, 1 year ago
java.lang.Object cannot be cast to org.eclipse.jface.viewers.ISelection
via Eclipse Bugzilla by jamesblackburn+eclipse, 1 year ago
java.lang.Object cannot be cast to org.eclipse.jface.viewers.ISelection
via Eclipse Bugzilla by robert.munteanu, 1 year ago
java.lang.Object cannot be cast to org.eclipse.jface.viewers.ISelection
java.lang.ClassCastException: java.lang.Object cannot be cast to org.eclipse.jface.viewers.ISelection
at org.eclipse.egit.ui.internal.actions.RepositoryActionHandler.getSelection(RepositoryActionHandler.java:196)
at org.eclipse.egit.ui.internal.actions.RepositoryActionHandler.getSelectedResources(RepositoryActionHandler.java:280)
at org.eclipse.egit.ui.internal.actions.RepositoryActionHandler.getSelectedProjects(RepositoryActionHandler.java:259)
at org.eclipse.egit.ui.internal.actions.RepositoryActionHandler.getRepository(RepositoryActionHandler.java:128)
at org.eclipse.egit.ui.internal.actions.FetchActionHandler.isEnabled(FetchActionHandler.java:52)
at org.eclipse.egit.ui.internal.actions.RepositoryAction.isEnabled(RepositoryAction.java:128)
at org.eclipse.egit.ui.internal.actions.RepositoryAction.selectionChanged(RepositoryAction.java:105)
at org.eclipse.ui.internal.PluginAction.refreshEnablement(PluginAction.java:206)
at org.eclipse.ui.internal.PluginAction.selectionChanged(PluginAction.java:277)
at org.eclipse.ui.internal.ObjectPluginAction.partClosed(ObjectPluginAction.java:49)
at org.eclipse.ui.internal.PartListenerList2$3.run(PartListenerList2.java:100)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55)
at org.eclipse.ui.internal.PartListenerList2.firePartClosed(PartListenerList2.java:98)
at org.eclipse.ui.internal.PartService.firePartClosed(PartService.java:227)
at org.eclipse.ui.internal.WorkbenchPagePartList.firePartClosed(WorkbenchPagePartList.java:39)
at org.eclipse.ui.internal.PartList.partClosed(PartList.java:274)
at org.eclipse.ui.internal.PartList.removePart(PartList.java:186)
at org.eclipse.ui.internal.WorkbenchPage.disposePart(WorkbenchPage.java:1720)
at org.eclipse.ui.internal.WorkbenchPage.partRemoved(WorkbenchPage.java:1713)
at org.eclipse.ui.internal.ViewFactory.releaseView(ViewFactory.java:257)
at org.eclipse.ui.internal.Perspective.dispose(Perspective.java:292)
at org.eclipse.ui.internal.WorkbenchPage.dispose(WorkbenchPage.java:1792)
at org.eclipse.ui.internal.WorkbenchWindow.closeAllPages(WorkbenchWindow.java:861)
at org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1696)
at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:734)
at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:710)
at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:826)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:824)
at org.eclipse.ui.internal.Workbench$18.run(Workbench.java:1105)
at org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:1102)
at org.eclipse.ui.internal.Workbench.access$15(Workbench.java:1031)
at org.eclipse.ui.internal.Workbench$25.run(Workbench.java:1275)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1273)
at org.eclipse.ui.internal.Workbench.close(Workbench.java:1245)
at org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:731)
at org.eclipse.ui.internal.WorkbenchWindow.access$0(WorkbenchWindow.java:710)
at org.eclipse.ui.internal.WorkbenchWindow$5.run(WorkbenchWindow.java:826)
at org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:824)
at org.eclipse.jface.window.Window.handleShellCloseEvent(Window.java:741)

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.