org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppImpl cannot be cast to org.eclipse.core.resources.IResource)

pydev | *anonymous | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    PyDev plugin conflicts with "Dynamic Web Project" (Java)

    pydev | 9 years ago | *anonymous
    org.eclipse.swt.SWTException: Failed to execute runnable (java.lang.ClassCastException: org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppImpl cannot be cast to org.eclipse.core.resources.IResource)

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.eclipse.jst.j2ee.webapplication.internal.impl.WebAppImpl cannot be cast to org.eclipse.core.resources.IResource

      at org.python.pydev.navigator.PythonModelProvider.wrapChildren()
    2. org.python.pydev
      PythonModelProvider.interceptAdd
      1. org.python.pydev.navigator.PythonModelProvider.wrapChildren(PythonModelProvider.java:327)
      2. org.python.pydev.navigator.PythonModelProvider.convertToPythonElementsAddOrRemove(PythonModelProvider.java:250)
      3. org.python.pydev.navigator.PythonModelProvider.interceptAdd(PythonModelProvider.java:106)
      3 frames
    3. Common Navigator View
      CommonViewer.add
      1. org.eclipse.ui.internal.navigator.extensions.SafeDelegateTreeContentProvider.interceptAdd(SafeDelegateTreeContentProvider.java:224)
      2. org.eclipse.ui.internal.navigator.NavigatorPipelineService.pipelineInterceptAdd(NavigatorPipelineService.java:124)
      3. org.eclipse.ui.internal.navigator.NavigatorPipelineService.interceptAdd(NavigatorPipelineService.java:81)
      4. org.eclipse.ui.navigator.CommonViewer.add(CommonViewer.java:242)
      4 frames
    4. J2EE Extensions to Common Navigator
      ClearPlaceHolderJob.runInUIThread
      1. org.eclipse.jst.j2ee.navigator.internal.ClearPlaceHolderJob.runInUIThread(ClearPlaceHolderJob.java:41)
      1 frame
    5. Workbench
      UIJob$1.run
      1. org.eclipse.ui.progress.UIJob$1.run(UIJob.java:94)
      1 frame
    6. RWT
      Display.readAndDispatch
      1. org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
      2. org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
      3. org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
      4. org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
      4 frames
    7. Eclipse UI
      Workbench$4.run
      1. org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
      2. org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
      3. org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
      4. org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
      4 frames
    8. Databinding
      Realm.runWithDefault
      1. org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
      1 frame
    9. Eclipse UI
      Workbench.createAndRunWorkbench
      1. org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
      1 frame
    10. Eclipse UI
      PlatformUI.createAndRunWorkbench
      1. org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      1 frame
    11. Eclipse IDE
      IDEApplication.start
      1. org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
      1 frame
    12. Equinox Container
      EclipseAppHandle.run
      1. org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
      1 frame
    13. Eclipse OSGi
      EclipseStarter.run
      1. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
      2. org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
      3. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
      4. org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
      4 frames
    14. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    15. Equinox
      Main.run
      1. org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
      2. org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
      3. org.eclipse.equinox.launcher.Main.run(Main.java:1173)
      3 frames