Help save net neutrality! Learn more.
Close

#86 Unhandled Event Loop Exception: NullPointerException

open
nobody
Exceptions (14)
8
2010-03-21
2010-03-21
genodeftest
No

Green sometimes does not repaint my diagram (Green 3.5.0) , If I open it, it is not painted but the Error (at the bottom) is thrown,
I have to change anything or open and close any preferences page to see the diagram painted correctly.
On refreshing (pressing key 'r'), the diagram is sometimes not repainted and the same Error is thrown.
This occurrs only in the diagrams of one package, in other packages the Error does not occurr.
Every time a create any diagram for this package, this Error occurrs. The created diagram contains a abnormal "Instantiation Dependency" arrow (see Screenshot)

Exception code:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

eclipse.buildId=M20090917-0800
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
Framework arguments: -nl de_DE -product org.eclipse.epp.package.modeling.product
Command-line arguments: -os win32 -ws win32 -arch x86 -nl de_DE -product org.eclipse.epp.package.modeling.product

Error
Sun Mar 21 17:04:27 CET 2010
Unhandled event loop exception

java.lang.NullPointerException: Node is not a child of a MethodDeclaration or Initializer block.
at edu.buffalo.cse.green.editor.model.RelationshipModel.getCardinality(RelationshipModel.java:111)
at edu.buffalo.cse.green.editor.model.RelationshipModel.updateCardinality(RelationshipModel.java:553)
at edu.buffalo.cse.green.editor.model.RelationshipModel.refresh(RelationshipModel.java:565)
at edu.buffalo.cse.green.editor.model.AbstractModel.refresh(AbstractModel.java:363)
at edu.buffalo.cse.green.editor.model.RootModel.refresh(RootModel.java:704)
at edu.buffalo.cse.green.editor.DiagramEditor$3.run(DiagramEditor.java:1266)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at edu.buffalo.cse.green.editor.DiagramEditor.refresh(DiagramEditor.java:1245)
at edu.buffalo.cse.green.editor.DiagramEditor.refresh(DiagramEditor.java:1235)
at edu.buffalo.cse.green.editor.action.RefreshAction.doRun(RefreshAction.java:41)
at edu.buffalo.cse.green.editor.action.ContextAction$1.run(ContextAction.java:176)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at edu.buffalo.cse.green.editor.action.ContextAction.run(ContextAction.java:169)
at org.eclipse.gef.KeyHandler.performStroke(KeyHandler.java:76)
at org.eclipse.gef.KeyHandler.keyPressed(KeyHandler.java:50)
at org.eclipse.gef.KeyHandler.keyPressed(KeyHandler.java:54)
at org.eclipse.gef.ui.parts.GraphicalViewerKeyHandler.keyPressed(GraphicalViewerKeyHandler.java:318)
at org.eclipse.gef.tools.SelectionTool.handleKeyDown(SelectionTool.java:319)
at org.eclipse.gef.tools.PanningSelectionTool.handleKeyDown(PanningSelectionTool.java:160)
at org.eclipse.gef.tools.AbstractTool.keyDown(AbstractTool.java:912)
at org.eclipse.gef.tools.SelectionTool.keyDown(SelectionTool.java:468)
at org.eclipse.gef.EditDomain.keyDown(EditDomain.java:156)
at org.eclipse.gef.ui.parts.DomainEventDispatcher.dispatchKeyPressed(DomainEventDispatcher.java:246)
at org.eclipse.draw2d.LightweightSystem$EventHandler.keyPressed(LightweightSystem.java:488)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:155)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1027)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1012)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1040)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1036)
at org.eclipse.swt.widgets.Widget.wmChar(Widget.java:1368)
at org.eclipse.swt.widgets.Control.WM_CHAR(Control.java:4053)
at org.eclipse.swt.widgets.Canvas.WM_CHAR(Canvas.java:346)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:3946)
at org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:342)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4589)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2410)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3471)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2221)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
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:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

Discussion

  • genodeftest

    genodeftest - 2010-03-21

    Screenshot with crazy arrow in the left top corner

     
  • genodeftest

    genodeftest - 2010-03-21

    Some tuimes this Error occurrs Eclipse can no more be correctly repainted so items(Buttons, MenuItems, etc) are only shown if the mouse hovers over them.

     
  • genodeftest

    genodeftest - 2010-03-21
    • priority: 5 --> 8
     
  • genodeftest

    genodeftest - 2010-03-21

    Another thing:
    If iI close the diagram and want to open it again, the diagram can not be opened, the sam Exception is thrown again.

     
  • genodeftest

    genodeftest - 2010-03-21

    A possible workaround:
    delete the crazy arrow in the left top corner

     

Log in to post a comment.