Topic
  • 1 reply
  • Latest Post - ‏2009-04-16T10:06:14Z by SystemAdmin
SystemAdmin
SystemAdmin
9224 Posts

Pinned topic java.lang.ClassCastException occurs while debugging PHP code

‏2009-04-16T08:52:25Z |
NOTE: this thread was migrated from projectzero.org. Some content and formatting may have been lost in the move.


Originally posted by projectzero userid: KentaTakahashi - f=4&t=1643#p6929
Hi,

I use PDT2.0 all-in-one package, and sMash PHP plug-in.
When I run application in debug mode, java.lang.ClassCastException occur in Global Context view.
How do I avoid this error?

I attach the screenshot and error message. Thanks in advance.


Could not create the view: Plug-in 
"zero.eclipseui" was unable to instantiate 

class 
"zero.eclipseui.debug.views.GlobalContextView".



java.lang.ClassCastException: org.eclipse.php.internal.debug.core.xdebug.dbgp.model.DBGpThread incompatible with org.eclipse.jdt.debug.core.IJavaThread<br/> at zero.eclipseui.debug.views.GlobalContextView.updateContext(GlobalContextView.java:170)<br/> at zero.eclipseui.debug.views.GlobalContextView.<init>(GlobalContextView.java:64)<br/> at java.lang.Class.newInstanceImpl(Native Method)<br/> at java.lang.Class.newInstance(Class.java:1316)<br/> at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:170)<br/> at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:867)<br/> at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:243)<br/> at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:51)<br/> at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:259)<br/> at org.eclipse.ui.internal.registry.ViewDescriptor.createView(ViewDescriptor.java:63)<br/> at org.eclipse.ui.internal.ViewReference.createPartHelper(ViewReference.java:328)<br/> at org.eclipse.ui.internal.ViewReference.createPart(ViewReference.java:230)<br/> at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:594)<br/> at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:306)<br/> at org.eclipse.ui.internal.ViewPane.setVisible(ViewPane.java:531)<br/> at org.eclipse.ui.internal.presentations.PresentablePart.setVisible(PresentablePart.java:180)<br/> at org.eclipse.ui.internal.presentations.util.PresentablePartFolder.select(PresentablePartFolder.java:270)<br/> at org.eclipse.ui.internal.presentations.util.LeftToRightTabOrder.select(LeftToRightTabOrder.java:65)<br/> at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation.selectPart(TabbedStackPresentation.java:473)<br/> at org.eclipse.ui.internal.PartStack.refreshPresentationSelection(PartStack.java:1256)<br/> at org.eclipse.ui.internal.PartStack.setSelection(PartStack.java:1209)<br/> at org.eclipse.ui.internal.PartStack.presentationSelectionChanged(PartStack.java:843)<br/> at org.eclipse.ui.internal.PartStack.access$1(PartStack.java:829)<br/> at org.eclipse.ui.internal.PartStack$1.selectPart(PartStack.java:139)<br/> at org.eclipse.ui.internal.presentations.util.TabbedStackPresentation$1.handleEvent(TabbedStackPresentation.java:133)<br/> at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:267)<br/> at org.eclipse.ui.internal.presentations.util.AbstractTabFolder.fireEvent(AbstractTabFolder.java:276)<br/> at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder.access$1(DefaultTabFolder.java:1)<br/> at org.eclipse.ui.internal.presentations.defaultpresentation.DefaultTabFolder$2.handleEvent(DefaultTabFolder.java:87)<br/> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)<br/> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)<br/> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)<br/> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)<br/> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:770)<br/> at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:3242)<br/> at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:2017)<br/> at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:320)<br/> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)<br/> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)<br/> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)<br/> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)<br/> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)<br/> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)<br/> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)<br/> at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)<br/> at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)<br/> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)<br/> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)<br/> at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)<br/> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)<br/> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)<br/> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)<br/> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)<br/> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)<br/> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:59)<br/> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:39)<br/> at java.lang.reflect.Method.invoke(Method.java:612)<br/> at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)<br/> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)<br/> at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Updated on 2009-04-16T10:06:14Z at 2009-04-16T10:06:14Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    9224 Posts

    Re: java.lang.ClassCastException occurs while debugging PHP code

    ‏2009-04-16T10:06:14Z  

    Originally posted by projectzero userid: kelseyd - f=4&t=1643#p6930
    The global context view is only available during debug if you have a java thread suspended. You get this problem if you have suspended in a php thread and try to view the global context. Unfortunately you cannot view the global context while suspended in a php thread. For now the best thing to do is just close the global context view.

    I have raised a bug
    https://www.projectzero.org/bugzilla/sh ... gi?id=8456

    to at least fix the global context view reporting the error.
    This feature has, as far as I can tell, never been available for the PHP plugin and for debugging php code. Is this something you wanted to be able to do, or maybe just hide the view completely ?