java.lang.ClassCastException: org.eclipse.core.internal.resources.Folder

Spring JIRA | Imported | 10 years ago
  1. 0

    I receive the following {code}ClassCastException{code} after trying to open the folder ''/src/main/webapp/WEB-INF/classes'' from the SpringProjectProperties dialog. The folder is on the project's classpath as class folder. {code} eclipse.buildId=M20070212-1330 java.version=1.5.0_11 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE Command-line arguments: -os win32 -ws win32 -arch x86 Error Thu Apr 05 14:03:43 CEST 2007 Problems occurred when invoking code from plug-in: "org.eclipse.jface". java.lang.ClassCastException: org.eclipse.core.internal.resources.Folder at org.springframework.ide.eclipse.beans.ui.properties.NonJavaResourceContentProvider.getNonJavaResources(NonJavaResourceContentProvider.java:144) at org.springframework.ide.eclipse.beans.ui.properties.NonJavaResourceContentProvider.getPackageFragments(NonJavaResourceContentProvider.java:129) at org.springframework.ide.eclipse.beans.ui.properties.NonJavaResourceContentProvider.getChildren(NonJavaResourceContentProvider.java:77) at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1166) at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:768) at org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren(AbstractTreeViewer.java:574) at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:543) at org.eclipse.jface.viewers.AbstractTreeViewer####1.run(AbstractTreeViewer.java:728) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:705) at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:892) at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1497) at org.eclipse.jface.viewers.AbstractTreeViewer.expandToLevel(AbstractTreeViewer.java:886) at org.springframework.ide.eclipse.ui.dialogs.FilteredElementTreeSelectionDialog####4.doubleClick(FilteredElementTreeSelectionDialog.java:316) at org.eclipse.jface.viewers.StructuredViewer####1.run(StructuredViewer.java:796) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:843) at org.eclipse.ui.internal.JFaceUtil####1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:794) at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1227) at org.eclipse.jface.viewers.StructuredViewer####4.widgetDefaultSelected(StructuredViewer.java:1158) at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:223) at org.eclipse.jface.util.OpenStrategy.access####0(OpenStrategy.java:220) at org.eclipse.jface.util.OpenStrategy####1.handleEvent(OpenStrategy.java:281) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.springframework.ide.eclipse.ui.dialogs.FilteredElementTreeSelectionDialog.open(FilteredElementTreeSelectionDialog.java:193) at org.springframework.ide.eclipse.beans.ui.properties.ConfigFilesTab.handleAddButtonPressed(ConfigFilesTab.java:319) at org.springframework.ide.eclipse.beans.ui.properties.ConfigFilesTab.handleButtonPressed(ConfigFilesTab.java:278) at org.springframework.ide.eclipse.beans.ui.properties.ConfigFilesTab.access####0(ConfigFilesTab.java:276) at org.springframework.ide.eclipse.beans.ui.properties.ConfigFilesTab####1.widgetSelected(ConfigFilesTab.java:103) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.springframework.ide.eclipse.ui.SpringUIUtils####1.run(SpringUIUtils.java:212) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.springframework.ide.eclipse.ui.SpringUIUtils.showPreferencePage(SpringUIUtils.java:207) at org.springframework.ide.eclipse.beans.ui.BeansUIUtils.showProjectPropertyPage(BeansUIUtils.java:164) at org.springframework.ide.eclipse.beans.ui.navigator.internal.actions.OpenPropertiesAction.run(OpenPropertiesAction.java:85) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539) at org.eclipse.jface.action.ActionContributionItem.access####2(ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem####5.handleEvent(ActionContributionItem.java:400) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator####1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 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:585) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) {code}

    Spring JIRA | 10 years ago | Imported
    java.lang.ClassCastException: org.eclipse.core.internal.resources.Folder
  2. 0

    I receive the following {code}ClassCastException{code} after trying to open the folder ''/src/main/webapp/WEB-INF/classes'' from the SpringProjectProperties dialog. The folder is on the project's classpath as class folder. {code} eclipse.buildId=M20070212-1330 java.version=1.5.0_11 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE Command-line arguments: -os win32 -ws win32 -arch x86 Error Thu Apr 05 14:03:43 CEST 2007 Problems occurred when invoking code from plug-in: "org.eclipse.jface". java.lang.ClassCastException: org.eclipse.core.internal.resources.Folder at org.springframework.ide.eclipse.beans.ui.properties.NonJavaResourceContentProvider.getNonJavaResources(NonJavaResourceContentProvider.java:144) at org.springframework.ide.eclipse.beans.ui.properties.NonJavaResourceContentProvider.getPackageFragments(NonJavaResourceContentProvider.java:129) at org.springframework.ide.eclipse.beans.ui.properties.NonJavaResourceContentProvider.getChildren(NonJavaResourceContentProvider.java:77) at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1166) at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:768) at org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren(AbstractTreeViewer.java:574) at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:543) at org.eclipse.jface.viewers.AbstractTreeViewer####1.run(AbstractTreeViewer.java:728) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:705) at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:892) at org.eclipse.jface.viewers.AbstractTreeViewer.internalExpandToLevel(AbstractTreeViewer.java:1497) at org.eclipse.jface.viewers.AbstractTreeViewer.expandToLevel(AbstractTreeViewer.java:886) at org.springframework.ide.eclipse.ui.dialogs.FilteredElementTreeSelectionDialog####4.doubleClick(FilteredElementTreeSelectionDialog.java:316) at org.eclipse.jface.viewers.StructuredViewer####1.run(StructuredViewer.java:796) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:843) at org.eclipse.ui.internal.JFaceUtil####1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:149) at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:794) at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1227) at org.eclipse.jface.viewers.StructuredViewer####4.widgetDefaultSelected(StructuredViewer.java:1158) at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:223) at org.eclipse.jface.util.OpenStrategy.access####0(OpenStrategy.java:220) at org.eclipse.jface.util.OpenStrategy####1.handleEvent(OpenStrategy.java:281) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.springframework.ide.eclipse.ui.dialogs.FilteredElementTreeSelectionDialog.open(FilteredElementTreeSelectionDialog.java:193) at org.springframework.ide.eclipse.beans.ui.properties.ConfigFilesTab.handleAddButtonPressed(ConfigFilesTab.java:319) at org.springframework.ide.eclipse.beans.ui.properties.ConfigFilesTab.handleButtonPressed(ConfigFilesTab.java:278) at org.springframework.ide.eclipse.beans.ui.properties.ConfigFilesTab.access####0(ConfigFilesTab.java:276) at org.springframework.ide.eclipse.beans.ui.properties.ConfigFilesTab####1.widgetSelected(ConfigFilesTab.java:103) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.jface.window.Window.runEventLoop(Window.java:820) at org.eclipse.jface.window.Window.open(Window.java:796) at org.springframework.ide.eclipse.ui.SpringUIUtils####1.run(SpringUIUtils.java:212) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67) at org.springframework.ide.eclipse.ui.SpringUIUtils.showPreferencePage(SpringUIUtils.java:207) at org.springframework.ide.eclipse.beans.ui.BeansUIUtils.showProjectPropertyPage(BeansUIUtils.java:164) at org.springframework.ide.eclipse.beans.ui.navigator.internal.actions.OpenPropertiesAction.run(OpenPropertiesAction.java:85) at org.eclipse.jface.action.Action.runWithEvent(Action.java:499) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:539) at org.eclipse.jface.action.ActionContributionItem.access####2(ActionContributionItem.java:488) at org.eclipse.jface.action.ActionContributionItem####5.handleEvent(ActionContributionItem.java:400) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3348) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95) at org.eclipse.core.internal.runtime.PlatformActivator####1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) 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:585) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336) at org.eclipse.core.launcher.Main.basicRun(Main.java:280) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952) {code}

    Spring JIRA | 10 years ago | Imported
    java.lang.ClassCastException: org.eclipse.core.internal.resources.Folder
  3. 0

    ClassCastException due to unknown reason

    Eclipse Bugzilla | 7 years ago | valerio.schiavoni
    java.lang.ClassCastException: org.eclipse.core.internal.resources.Folder
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Click on the hyperlink in a console view causes an ClassCastException in OawConsoleHyperLink

    Eclipse Bugzilla | 8 years ago | dennis.huebner
    java.lang.ClassCastException: org.eclipse.core.internal.resources.Folder
  6. 0

    DND of a folder onto a file will cause exception

    Eclipse Bugzilla | 7 years ago | johann.draschwandtner
    java.lang.ClassCastException: org.eclipse.core.internal.resources.Folder

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.eclipse.core.internal.resources.Folder

      at org.springframework.ide.eclipse.beans.ui.properties.NonJavaResourceContentProvider.getNonJavaResources()
    2. org.springframework.ide
      NonJavaResourceContentProvider.getChildren
      1. org.springframework.ide.eclipse.beans.ui.properties.NonJavaResourceContentProvider.getNonJavaResources(NonJavaResourceContentProvider.java:144)
      2. org.springframework.ide.eclipse.beans.ui.properties.NonJavaResourceContentProvider.getPackageFragments(NonJavaResourceContentProvider.java:129)
      3. org.springframework.ide.eclipse.beans.ui.properties.NonJavaResourceContentProvider.getChildren(NonJavaResourceContentProvider.java:77)
      3 frames
    3. JFace
      AbstractTreeViewer.getSortedChildren
      1. org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1166)
      2. org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:768)
      3. org.eclipse.jface.viewers.AbstractTreeViewer.getFilteredChildren(AbstractTreeViewer.java:574)
      4. org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:543)
      4 frames