java.lang.ClassCastException: org.cloudfoundry.ide.eclipse.internal.server.ui.editor.AppStatsContentProvider$InstanceStatsAndInfo cannot be cast to org.cloudfoundry.client.lib.domain.InstanceStats

SpringSource Issue Tracker | Nieraj Singh (c) | 4 years ago
  1. 0

    Deploy an application and start it. In the Instances stats table, right click to invoke context menu. Although no context menu actions are currently available for instances stats, an exception is still thrown: java.lang.ClassCastException: org.cloudfoundry.ide.eclipse.internal.server.ui.editor.AppStatsContentProvider$InstanceStatsAndInfo cannot be cast to org.cloudfoundry.client.lib.domain.InstanceStats at org.cloudfoundry.ide.eclipse.internal.server.ui.editor.ApplicationDetailsPart.fillInstancesContextMenu(ApplicationDetailsPart.java:1121) at org.cloudfoundry.ide.eclipse.internal.server.ui.editor.ApplicationDetailsPart.access$16(ApplicationDetailsPart.java:1116) at org.cloudfoundry.ide.eclipse.internal.server.ui.editor.ApplicationDetailsPart$14.menuAboutToShow(ApplicationDetailsPart.java:980) at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:343) at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:475) at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:470) at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:500) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:255) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1462) at org.eclipse.swt.widgets.Menu.menuWillOpen(Menu.java:806) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5549) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSMenu.popUpContextMenu(NSMenu.java:77) at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:278) at org.eclipse.swt.widgets.Display.runPopups(Display.java:4059) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3614) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 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:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

    SpringSource Issue Tracker | 4 years ago | Nieraj Singh (c)
    java.lang.ClassCastException: org.cloudfoundry.ide.eclipse.internal.server.ui.editor.AppStatsContentProvider$InstanceStatsAndInfo cannot be cast to org.cloudfoundry.client.lib.domain.InstanceStats
  2. 0

    Deploy an application and start it. In the Instances stats table, right click to invoke context menu. Although no context menu actions are currently available for instances stats, an exception is still thrown: java.lang.ClassCastException: org.cloudfoundry.ide.eclipse.internal.server.ui.editor.AppStatsContentProvider$InstanceStatsAndInfo cannot be cast to org.cloudfoundry.client.lib.domain.InstanceStats at org.cloudfoundry.ide.eclipse.internal.server.ui.editor.ApplicationDetailsPart.fillInstancesContextMenu(ApplicationDetailsPart.java:1121) at org.cloudfoundry.ide.eclipse.internal.server.ui.editor.ApplicationDetailsPart.access$16(ApplicationDetailsPart.java:1116) at org.cloudfoundry.ide.eclipse.internal.server.ui.editor.ApplicationDetailsPart$14.menuAboutToShow(ApplicationDetailsPart.java:980) at org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:343) at org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:475) at org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:470) at org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:500) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:255) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1462) at org.eclipse.swt.widgets.Menu.menuWillOpen(Menu.java:806) at org.eclipse.swt.widgets.Display.windowProc(Display.java:5549) at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method) at org.eclipse.swt.internal.cocoa.NSMenu.popUpContextMenu(NSMenu.java:77) at org.eclipse.swt.widgets.Menu._setVisible(Menu.java:278) at org.eclipse.swt.widgets.Display.runPopups(Display.java:4059) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3614) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 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:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438)

    SpringSource Issue Tracker | 4 years ago | Nieraj Singh (c)
    java.lang.ClassCastException: org.cloudfoundry.ide.eclipse.internal.server.ui.editor.AppStatsContentProvider$InstanceStatsAndInfo cannot be cast to org.cloudfoundry.client.lib.domain.InstanceStats
  3. 0

    Memcached Java客户端2.6.1发布 - 编程语言 - ITeye资讯

    iteye.com | 1 year ago
    java.lang.ClassCastException: cannot be cast to
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    cannot be cast to javax.servlet.Filter

    Oracle Community | 6 years ago | YE
    java.lang.ClassCastException: cannot be cast to javax.servlet.Filter
  6. 0

    ClassCastException at org.eclipse.zest.core.viewers.internal.GraphModelEntityFactory.doBuildGraph(GraphModelEntityFactory.java:87)

    Eclipse Bugzilla | 7 years ago | phil_fj12
    java.lang.ClassCastException: [...] cannot be cast to org.eclipse.zest.core.viewers.IGraphEntityContentProvider

    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.cloudfoundry.ide.eclipse.internal.server.ui.editor.AppStatsContentProvider$InstanceStatsAndInfo cannot be cast to org.cloudfoundry.client.lib.domain.InstanceStats

      at org.cloudfoundry.ide.eclipse.internal.server.ui.editor.ApplicationDetailsPart.fillInstancesContextMenu()
    2. org.cloudfoundry.ide
      ApplicationDetailsPart$14.menuAboutToShow
      1. org.cloudfoundry.ide.eclipse.internal.server.ui.editor.ApplicationDetailsPart.fillInstancesContextMenu(ApplicationDetailsPart.java:1121)
      2. org.cloudfoundry.ide.eclipse.internal.server.ui.editor.ApplicationDetailsPart.access$16(ApplicationDetailsPart.java:1116)
      3. org.cloudfoundry.ide.eclipse.internal.server.ui.editor.ApplicationDetailsPart$14.menuAboutToShow(ApplicationDetailsPart.java:980)
      3 frames
    3. JFace
      MenuManager$2.menuShown
      1. org.eclipse.jface.action.MenuManager.fireAboutToShow(MenuManager.java:343)
      2. org.eclipse.jface.action.MenuManager.handleAboutToShow(MenuManager.java:475)
      3. org.eclipse.jface.action.MenuManager.access$1(MenuManager.java:470)
      4. org.eclipse.jface.action.MenuManager$2.menuShown(MenuManager.java:500)
      4 frames
    4. RWT
      Display.windowProc
      1. org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:255)
      2. org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      3. org.eclipse.swt.widgets.Display.sendEvent(Display.java:4136)
      4. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1458)
      5. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1481)
      6. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1462)
      7. org.eclipse.swt.widgets.Menu.menuWillOpen(Menu.java:806)
      8. org.eclipse.swt.widgets.Display.windowProc(Display.java:5549)
      8 frames
    5. org.eclipse.swt
      NSMenu.popUpContextMenu
      1. org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
      2. org.eclipse.swt.internal.cocoa.NSMenu.popUpContextMenu(NSMenu.java:77)
      2 frames
    6. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.Menu._setVisible(Menu.java:278)
      2. org.eclipse.swt.widgets.Display.runPopups(Display.java:4059)
      3. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3614)
      3 frames
    7. Eclipse Workbench SWT
      PartRenderingEngine$9.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)
      1 frame
    8. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    9. Eclipse Workbench SWT
      PartRenderingEngine.run
      1. org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:942)
      1 frame
    10. Eclipse Workbench
      E4Workbench.createAndRunUI
      1. org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
      1 frame
    11. Eclipse UI
      Workbench$5.run
      1. org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
      1 frame
    12. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      1 frame
    13. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
      1 frame
    14. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    15. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      1 frame
    16. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      1 frame
    17. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
      4 frames
    18. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    19. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1438)
      3 frames