Community
Participate
Working Groups
CQ:WIND00098774 In remote system start a remote shell via ssh to a linux machine In remote shell session type: # ps select icon next to process id right click --> Following Java exception is logged to the PDE Errorlog: Exception should not happen. java.lang.ClassCastException: org.eclipse.core.internal.resources.Folder cannot be cast to org.eclipse.core.resources.IFile at org.eclipse.rse.internal.files.ui.actions.SystemRemoteFileOpenWithMenu.getLocalResource(SystemRemoteFileOpenWithMenu.java:263) at org.eclipse.rse.internal.files.ui.actions.SystemRemoteFileOpenWithMenu.getPreferredEditor(SystemRemoteFileOpenWithMenu.java:275) at org.eclipse.rse.internal.files.ui.actions.SystemRemoteFileOpenWithMenu.fill(SystemRemoteFileOpenWithMenu.java:338) at org.eclipse.rse.internal.files.ui.actions.SystemRemoteFileLineOpenWithMenu.fill(SystemRemoteFileLineOpenWithMenu.java:76) at org.eclipse.jface.action.MenuManager.update(MenuManager.java:666) at org.eclipse.jface.action.MenuManager.update(MenuManager.java:585) at org.eclipse.jface.action.MenuManager.fill(MenuManager.java:236) at org.eclipse.jface.action.MenuManager.update(MenuManager.java:666) at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:396) at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:391) at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:417) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:962) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:943) at org.eclipse.swt.widgets.Control.WM_INITMENUPOPUP(Control.java:3981) at org.eclipse.swt.widgets.Control.windowProc(Control.java:3698) at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:291) at org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1584) at org.eclipse.swt.widgets.Shell.windowProc(Shell.java:1753) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4351) at org.eclipse.swt.internal.win32.OS.TrackPopupMenu(Native Method) at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:228) at org.eclipse.swt.widgets.Display.runPopups(Display.java:3708) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3287) 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) at org.eclipse.equinox.launcher.Main.main(Main.java:1144) -----------Enter bugs above this line----------- TM 2.0 installation : eclipse-SDK-3.3 (I20070625-1500), cdt-4.0.0, emf-2.3.0 RSE install : workspace HEAD java.runtime : Sun 1.6.0_01-b06 os.name: : Windows XP 5.1, Service Pack 1 ------------------------------------------------ systemtype : Windows-local, Dstore-win, Dstore-linux targetos : Red Hat Enterprise Linux WS release 4 (Nahant Update 3) targetuname : Linux parser 2.6.9-34.EL #1 i686 athlon i386 GNU/Linux targetvm : Sun Java HotSpot(TM) Client VM (build 1.4.2_12-b03, mixed mode) ------------------------------------------------
I've put a fix in here. The problem was we were not distinguishing files from non-files.