#512 Override/Implement Methods Error

1.3.9
closed-fixed
nobody
6
2008-02-05
2007-06-25
Hannes Mueller
No

I get some errors when invoking "Override/Implement Methods" (executed in a class derived from a wxPython class)

Error Log:
Problems occurred when invoking code from plug-in: "org.eclipse.jface".

Stack Trace:
java.lang.NullPointerException
at org.python.pydev.refactoring.ast.adapters.FunctionArgAdapter.getSignature(FunctionArgAdapter.java:66)
at org.python.pydev.refactoring.ast.adapters.FunctionDefAdapter.getSignature(FunctionDefAdapter.java:36)
at org.python.pydev.refactoring.ui.model.overridemethods.FunctionTreeNode.getLabel(FunctionTreeNode.java:24)
at org.python.pydev.refactoring.ui.model.tree.TreeLabelProvider.getText(TreeLabelProvider.java:26)
at org.eclipse.jface.viewers.StructuredViewer.buildLabel(StructuredViewer.java:2102)
at org.eclipse.jface.viewers.TreeViewer.doUpdateItem(TreeViewer.java:258)
at org.eclipse.jface.viewers.AbstractTreeViewer$UpdateItemSafeRunnable.run(AbstractTreeViewer.java:95)
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.AbstractTreeViewer.doUpdateItem(AbstractTreeViewer.java:849)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:465)
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.updateItem(StructuredViewer.java:1955)
at org.eclipse.jface.viewers.AbstractTreeViewer.createTreeItem(AbstractTreeViewer.java:753)
at org.eclipse.jface.viewers.AbstractTreeViewer$1.run(AbstractTreeViewer.java:731)
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.internalExpandToLevel(AbstractTreeViewer.java:1507)
at org.eclipse.jface.viewers.AbstractTreeViewer$5.run(AbstractTreeViewer.java:1289)
at org.eclipse.jface.viewers.StructuredViewer.preservingSelection(StructuredViewer.java:1323)
at org.eclipse.jface.viewers.CheckboxTreeViewer.preservingSelection(CheckboxTreeViewer.java:371)
at org.eclipse.jface.viewers.AbstractTreeViewer.inputChanged(AbstractTreeViewer.java:1277)
at org.eclipse.jface.viewers.ContentViewer.setInput(ContentViewer.java:250)
at org.eclipse.jface.viewers.StructuredViewer.setInput(StructuredViewer.java:1542)
at org.python.pydev.refactoring.ui.pages.OverrideMethodsPage.createTreeViewer(OverrideMethodsPage.java:193)
at org.python.pydev.refactoring.ui.pages.OverrideMethodsPage.createTreeComp(OverrideMethodsPage.java:149)
at org.python.pydev.refactoring.ui.pages.OverrideMethodsPage.createMainComp(OverrideMethodsPage.java:88)
at org.python.pydev.refactoring.ui.pages.OverrideMethodsPage.createControl(OverrideMethodsPage.java:198)
at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:180)
at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:614)
at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:502)
at org.eclipse.jface.window.Window.create(Window.java:426)
at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1124)
at org.eclipse.jface.window.Window.open(Window.java:785)
at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(RefactoringWizardOpenOperation.java:132)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:145)
at org.python.pydev.refactoring.ui.actions.internal.AbstractRefactoringAction.openWizard(AbstractRefactoringAction.java:94)
at org.python.pydev.refactoring.ui.actions.internal.AbstractRefactoringAction.run(AbstractRefactoringAction.java:109)
at org.python.pydev.refactoring.ui.actions.OverrideMethodsAction.run(OverrideMethodsAction.java:11)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:254)
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(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
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)

Session Data:
eclipse.buildId=M20060921-0945
java.version=1.5.0_09
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_AT
Command-line arguments: -os win32 -ws win32 -arch x86

Discussion

  • Logged In: NO

    I get the same errors when I use Override/Implement methods. It will generate multiple "An error has occurred" popups and then display a screen where "object" will show correctly, but other superclasses will just appear as a name with a series of blank check boxes following it. If I select those checkboxes it will produce a set of overriding methods, but none of them will take arguments of any kind. Multiple copies of the NullPointerException will then appear in my console, one for every dialogue I had to dismiss.

    System: MacOS X
    Eclipse: 3.2.2
    PyDev: 1.3.6

     
  • Hannes Mueller
    Hannes Mueller
    2007-07-10

    Logged In: YES
    user_id=693100
    Originator: YES

    Still the same problems with:
    Eclipse 3.3
    PyDev 1.3.7 (+extensions)
    System: WinXP

     
  • Hannes Mueller
    Hannes Mueller
    2007-07-31

    Logged In: YES
    user_id=693100
    Originator: YES

    Still present in 1.3.8

    java.lang.NullPointerException
    at org.python.pydev.refactoring.ast.adapters.FunctionArgAdapter.getSignature(FunctionArgAdapter.java:66)
    at org.python.pydev.refactoring.ast.adapters.FunctionDefAdapter.getSignature(FunctionDefAdapter.java:36)
    ....

    eclipse.buildId=I20070625-1500
    java.version=1.5.0_09
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_AT
    Command-line arguments: -os win32 -ws win32 -arch x86
    This is a continuation of log file D:\workspace\.metadata\.bak_1.log
    Created Time: 2007-07-31 16:12:14.355

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2007-09-09

    • labels: --> refactoring
     
  • Hannes Mueller
    Hannes Mueller
    2007-09-13

    Logged In: YES
    user_id=693100
    Originator: YES

    Still present in 1.3.9

     
  • Hannes Mueller
    Hannes Mueller
    2007-09-13

    • milestone: 723895 --> 1.3.9
    • priority: 5 --> 6
     
  • Hannes Mueller
    Hannes Mueller
    2007-11-06

    Logged In: YES
    user_id=693100
    Originator: YES

    still present in 1.3.10

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2008-02-05

    Logged In: YES
    user_id=617340
    Originator: NO

    Fixed for 1.3.14

     
  • Fabio Zadrozny
    Fabio Zadrozny
    2008-02-05

    • status: open --> closed-fixed