Menu

#13 Cast exception org.eclipse.ui.views.navigator.ResourceSorter

v1.1.2
closed
5
2012-09-15
2007-06-19
No

When opening the ODT perspective in Eclipse, I get the following exception from the OCaml Package Explorer:

java.lang.ClassCastException: org.eclipse.ui.views.navigator.ResourceSorter cannot be cast to org.eclipse.ui.views.navigator.ResourceComparator

------------------Detailed error log

!MESSAGE Unable to create view ID sf.eclipse.odt.ui.views.PackageExplorer: org.eclipse.ui.views.navigator.ResourceSorter cannot be cast to org.eclipse.ui.views.navigator.ResourceComparator
!STACK 0
java.lang.ClassCastException: org.eclipse.ui.views.navigator.ResourceSorter cannot be cast to org.eclipse.ui.views.navigator.ResourceComparator
at org.eclipse.ui.views.navigator.ResourceNavigator.getComparator(ResourceNavigator.java:596)
at org.eclipse.ui.views.navigator.SortAndFilterActionGroup.updateActionBars(SortAndFilterActionGroup.java:61)
at org.eclipse.ui.views.navigator.MainActionGroup.updateActionBars(MainActionGroup.java:319)
at org.eclipse.ui.views.navigator.ResourceNavigator.updateActionBars(ResourceNavigator.java:1343)
at org.eclipse.ui.views.navigator.ResourceNavigator.setSorter(ResourceNavigator.java:1267)
at org.eclipse.ui.views.navigator.ResourceNavigator.initResourceSorter(ResourceNavigator.java:854)
at sf.eclipse.odt.ui.views.PackageExplorerView.initializeSorter(PackageExplorerView.java:71)
at sf.eclipse.odt.ui.views.PackageExplorerView.createPartControl(PackageExplorerView.java:62)
at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:370)
at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:227)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:592)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:299)
at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:531)
at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:179)
at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:268)
at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)
at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:400)
at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)
at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)
at org.eclipse.ui.internal.PartStack.showPart(PartStack.java:1604)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:649)
at org.eclipse.ui.internal.PartStack.createControl(PartStack.java:576)
at org.eclipse.ui.internal.PartSashContainer.createControl(PartSashContainer.java:563)
at org.eclipse.ui.internal.PerspectiveHelper.activate(PerspectiveHelper.java:270)
at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:931)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3461)
at org.eclipse.ui.internal.WorkbenchPage.busySetPerspective(WorkbenchPage.java:988)
at org.eclipse.ui.internal.WorkbenchPage.access$17(WorkbenchPage.java:972)
at org.eclipse.ui.internal.WorkbenchPage$18.run(WorkbenchPage.java:3560)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.internal.WorkbenchPage.setPerspective(WorkbenchPage.java:3558)
at org.eclipse.ui.internal.ChangeToPerspectiveMenu.run(ChangeToPerspectiveMenu.java:92)
at org.eclipse.ui.actions.PerspectiveMenu.run(PerspectiveMenu.java:336)
at org.eclipse.ui.actions.PerspectiveMenu.runOther(PerspectiveMenu.java:352)
at org.eclipse.ui.actions.PerspectiveMenu$3.runWithEvent(PerspectiveMenu.java:108)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)

------------ My installation details:
- Eclipse 3.3RC4
- Ubuntu Feisty, Linux 2.6.20, gtk
- Sun Java 1.6.0
- ODT 1.1.1 release
- OCaml 3.09.2

Discussion

  • Emmanuel Dieul

    Emmanuel Dieul - 2007-06-20

    Logged In: YES
    user_id=1014034
    Originator: NO

    ODT has not benn tested on Eclipse 3.3, since Eclipse 3.2.2 is the current official release of Eclipse.
    I've got to check Eclipse backward compatibility before switching to Eclipse 3.3.

    For the moment, you can use Eclipse 3.2.x.

    Manu

     
  • Martijn Rutten

    Martijn Rutten - 2007-06-20

    Logged In: YES
    user_id=1563356
    Originator: YES

    Ok. Thanks for the quick response!

    It may help to modify the text on the website under "installation notes", which says:
    "If Eclipse is already installed, its version should be at least 3.2. If you don’t have any Eclipse distribution installed, please download the latest version (Eclipse is free)."

    I read this as that 3.3 would also be supported...

     
  • Emmanuel Dieul

    Emmanuel Dieul - 2007-06-28

    Logged In: YES
    user_id=1014034
    Originator: NO

    I hoped I had time to test ODT on Eclipse 3.3... but I don't have so much time for the moment !
    So I've just updated ODT website.

    Thanks,

    Manu

     
  • Emmanuel Dieul

    Emmanuel Dieul - 2007-11-05

    Logged In: YES
    user_id=1014034
    Originator: NO

    I've just passed ODT to Eclipse 3.3. This creates a compatibility break between ODT 1.1.2 and the future ODT release: those which use the next ODT release will have to use Eclipse 3.3.

     
  • Emmanuel Dieul

    Emmanuel Dieul - 2008-12-10

    I've updated the website and the plugins. The version to be used is 1.1.3.

     

Log in to post a comment.