Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » null pointer exception with draw2d
null pointer exception with draw2d [message #152508] Fri, 28 September 2007 12:22 Go to next message
Eclipse UserFriend
Originally posted by: r.c.ladan.tue.nl

Hi,

I'm getting the below null pointer exception when I first draw a model in a
generated GMF editor, alter the gmfgraph/gmfmap file, regenerate the gmfgen
file and the Java code, and then try to reload the model. The ecore file is not
modified, so the model itself should still be valid. I first thought that it
was caused by a small change in the representation of the Component element (see
the marked line, changing the Fill property from false to true) but that wasn't
the case. I also deleted and recreated the gmfgen file, which didn't help
either. All gmf* model files are validated ok.

Versions:
* Eclipse 3.4 Integration 20070921919
* EMF 2.3.1 20070925
* OCL 2.0.* 20070921
* GEF 3.4.0 20070919
* GMF SDK 2.0 20070903 (Integration)
* Apache Batik 1.6.0 200706111724

Any clues?

Thanks,
Rene

java.lang.NullPointerException
at org.eclipse.draw2d.Figure.add(Figure.java:146)
at org.eclipse.draw2d.Figure.add(Figure.java:179)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChild Visual(AbstractGraphicalEditPart.java:198)
at meta.diagram.edit.parts.ComponentEditPart.addChildVisual(Com ponentEditPart.java:135) <-- ?
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1292)
at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:564)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:836)
at org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:262)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:826)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1292)
at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:564)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:836)
at org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:262)
at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:826)
at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:857)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:850)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:112)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:794)
at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1548)
at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:310)
at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:263)
at org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1405)
at org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:939)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:124)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3719)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3356)
at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:801)
at org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1342)
at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:124)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3719)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3356)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
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: 515)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:455)
at org.eclipse.equinox.launcher.Main.run(Main.java:1193)
at org.eclipse.equinox.launcher.Main.main(Main.java:1169)
Re: null pointer exception with draw2d [message #152695 is a reply to message #152508] Mon, 01 October 2007 07:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: r.c.ladan.tue.nl

Rene Ladan wrote:
> Hi,
>
> I'm getting the below null pointer exception when I first draw a model in a
> generated GMF editor, alter the gmfgraph/gmfmap file, regenerate the gmfgen
> file and the Java code, and then try to reload the model. The ecore file is not
> modified, so the model itself should still be valid. I first thought that it
> was caused by a small change in the representation of the Component element (see
> the marked line, changing the Fill property from false to true) but that wasn't
> the case. I also deleted and recreated the gmfgen file, which didn't help
> either. All gmf* model files are validated ok.
>
> Versions:
> * Eclipse 3.4 Integration 20070921919
> * EMF 2.3.1 20070925
> * OCL 2.0.* 20070921
> * GEF 3.4.0 20070919
> * GMF SDK 2.0 20070903 (Integration)
> * Apache Batik 1.6.0 200706111724
>
Upgrading to GMF 2.0.1 20070928 and regenerating the gmfgen and java files
doesn't help (same backtrace). Could this be caused by an undetected
modeling error?

> Any clues?
>
> Thanks,
> Rene
>
> java.lang.NullPointerException
> at org.eclipse.draw2d.Figure.add(Figure.java:146)
> at org.eclipse.draw2d.Figure.add(Figure.java:179)
> at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChild Visual(AbstractGraphicalEditPart.java:198)
> at meta.diagram.edit.parts.ComponentEditPart.addChildVisual(Com ponentEditPart.java:135) <-- ?
> at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1292)
> at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
> at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
> at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:564)
> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:836)
> at org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:262)
> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:826)
> at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
> at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
> at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1292)
> at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
> at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
> at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:564)
> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:836)
> at org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:262)
> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:826)
> at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
> at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
> at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
> at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
> at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
> at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:857)
> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:850)
> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:112)
> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:794)
> at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1548)
> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:310)
> at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
> at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
> at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
> at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
> at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:263)
> at org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1405)
> at org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:939)
> at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:124)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3719)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3356)
> at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:801)
> at org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1342)
> at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:124)
> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3719)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3356)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
> at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
> at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
> 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: 515)
> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:455)
> at org.eclipse.equinox.launcher.Main.run(Main.java:1193)
> at org.eclipse.equinox.launcher.Main.main(Main.java:1169)
Re: null pointer exception with draw2d [message #152718 is a reply to message #152695] Mon, 01 October 2007 11:04 Go to previous messageGo to next message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi Rene,

The stack trace indicates that the child you are creating returns null
from its createFigure() method. AFAIK, no GMF generated edit parts
exhibit this behavior, so please check if there is some hand-modified
code (or use of custom templates).

Best regards,
Boris



Rene Ladan wrote:
> Rene Ladan wrote:
>> Hi,
>>
>> I'm getting the below null pointer exception when I first draw a model in a
>> generated GMF editor, alter the gmfgraph/gmfmap file, regenerate the gmfgen
>> file and the Java code, and then try to reload the model. The ecore file is not
>> modified, so the model itself should still be valid. I first thought that it
>> was caused by a small change in the representation of the Component element (see
>> the marked line, changing the Fill property from false to true) but that wasn't
>> the case. I also deleted and recreated the gmfgen file, which didn't help
>> either. All gmf* model files are validated ok.
>>
>> Versions:
>> * Eclipse 3.4 Integration 20070921919
>> * EMF 2.3.1 20070925
>> * OCL 2.0.* 20070921
>> * GEF 3.4.0 20070919
>> * GMF SDK 2.0 20070903 (Integration)
>> * Apache Batik 1.6.0 200706111724
>>
> Upgrading to GMF 2.0.1 20070928 and regenerating the gmfgen and java files
> doesn't help (same backtrace). Could this be caused by an undetected
> modeling error?
>
>> Any clues?
>>
>> Thanks,
>> Rene
>>
>> java.lang.NullPointerException
>> at org.eclipse.draw2d.Figure.add(Figure.java:146)
>> at org.eclipse.draw2d.Figure.add(Figure.java:179)
>> at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChild Visual(AbstractGraphicalEditPart.java:198)
>> at meta.diagram.edit.parts.ComponentEditPart.addChildVisual(Com ponentEditPart.java:135) <-- ?
>> at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
>> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1292)
>> at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>> at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>> at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:564)
>> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:836)
>> at org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:262)
>> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:826)
>> at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>> at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>> at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1292)
>> at org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>> at org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>> at org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:564)
>> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:836)
>> at org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:262)
>> at org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:826)
>> at org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>> at org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>> at org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>> at org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
>> at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
>> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
>> at org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
>> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:857)
>> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:850)
>> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:112)
>> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:794)
>> at org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
>> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1548)
>> at org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:310)
>> at org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
>> at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>> at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>> at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>> at org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:263)
>> at org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1405)
>> at org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:939)
>> at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:124)
>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3719)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3356)
>> at org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:801)
>> at org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1342)
>> at org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:124)
>> at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3719)
>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3356)
>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>> at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>> at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>> at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>> at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>> at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>> at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>> at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>> 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: 515)
>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:455)
>> at org.eclipse.equinox.launcher.Main.run(Main.java:1193)
>> at org.eclipse.equinox.launcher.Main.main(Main.java:1169)
Re: null pointer exception with draw2d [message #152969 is a reply to message #152718] Tue, 02 October 2007 13:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: r.c.ladan.tue.nl

Boris Blajer wrote:
> Hi Rene,
>
> The stack trace indicates that the child you are creating returns null
> from its createFigure() method. AFAIK, no GMF generated edit parts
> exhibit this behavior, so please check if there is some hand-modified
> code (or use of custom templates).
>
I didn't modify any GMF-related code (only some code in the generated EMF
editor meta.editor.MetaEditor.java), nor did I use any custom JET templates.

Could this be caused by some mismatch between the gmfgraph and gmfmap file?
Both validate ok, so either the validation is too loose or there exists a
bug in the GMF code generator (the gmfgen file also validates ok).

Regards,
Rene
> Best regards,
> Boris
>
>
>
> Rene Ladan wrote:
>> Rene Ladan wrote:
>>>
[..]
>>>
>>> java.lang.NullPointerException
>>> at org.eclipse.draw2d.Figure.add(Figure.java:146)
>>> at org.eclipse.draw2d.Figure.add(Figure.java:179)
>>> at
>>> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChild Visual(AbstractGraphicalEditPart.java:198)
>>>
>>> at
>>> meta.diagram.edit.parts.ComponentEditPart.addChildVisual(Com ponentEditPart.java:135)
>>> <-- ?
>>> at
>>> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1292)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:564)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:836)
>>>
>>> at
>>> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:262)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:826)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1292)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:564)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:836)
>>>
>>> at
>>> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:262)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:826)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>>>
>>> at
>>> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>>>
>>> at
>>> org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
>>>
>>> at
>>> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
>>>
>>> at
>>> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:857)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:850)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:112)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:794)
>>>
>>> at
>>> org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1548)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:310)
>>>
>>> at
>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>>
>>> at
>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:263)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1405)
>>>
>>> at
>>> org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:939)
>>>
>>> at
>>> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>>>
>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>> at
>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:124)
>>>
>>> at
>>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3719)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3356)
>>> at
>>> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:801)
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1342)
>>>
>>> at
>>> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>>>
>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>> at
>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:124)
>>>
>>> at
>>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3719)
>>> at
>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3356)
>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>> at
>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>
>>> at
>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>>
>>> at
>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>> at
>>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>>>
>>> at
>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>
>>> at
>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>>
>>> at
>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>>
>>> 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: 515)
>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:455)
>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1193)
>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1169)
Re: null pointer exception with draw2d [message #153102 is a reply to message #152969] Tue, 02 October 2007 17:49 Go to previous message
Eclipse UserFriend
Originally posted by: 5d5.mail.ru

But you can use Eclipse debugger, right? )))

Rene Ladan wrote:
> Boris Blajer wrote:
>> Hi Rene,
>>
>> The stack trace indicates that the child you are creating returns null
>> from its createFigure() method. AFAIK, no GMF generated edit parts
>> exhibit this behavior, so please check if there is some hand-modified
>> code (or use of custom templates).
>>
> I didn't modify any GMF-related code (only some code in the generated EMF
> editor meta.editor.MetaEditor.java), nor did I use any custom JET templates.
>
> Could this be caused by some mismatch between the gmfgraph and gmfmap file?
> Both validate ok, so either the validation is too loose or there exists a
> bug in the GMF code generator (the gmfgen file also validates ok).
>
> Regards,
> Rene
>> Best regards,
>> Boris
>>
>>
>>
>> Rene Ladan wrote:
>>> Rene Ladan wrote:
> [..]
>>>> java.lang.NullPointerException
>>>> at org.eclipse.draw2d.Figure.add(Figure.java:146)
>>>> at org.eclipse.draw2d.Figure.add(Figure.java:179)
>>>> at
>>>> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addChild Visual(AbstractGraphicalEditPart.java:198)
>>>>
>>>> at
>>>> meta.diagram.edit.parts.ComponentEditPart.addChildVisual(Com ponentEditPart.java:135)
>>>> <-- ?
>>>> at
>>>> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:197)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1292)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:564)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:836)
>>>>
>>>> at
>>>> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:262)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:826)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.addChild(GraphicalEditPart.java:1292)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractEditPart.refreshChildren(A bstractEditPart.java:727)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractEditPart.refresh(AbstractE ditPart.java:677)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractGraphicalEditPart.refresh( AbstractGraphicalEditPart.java:564)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.access$3(GraphicalEditPart.java:1)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt$3.run(GraphicalEditPart.java:836)
>>>>
>>>> at
>>>> org.eclipse.emf.transaction.impl.TransactionalEditingDomainI mpl.runExclusive(TransactionalEditingDomainImpl.java:262)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.editparts.GraphicalEditPa rt.refresh(GraphicalEditPart.java:826)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractEditPart.addNotify(Abstrac tEditPart.java:235)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractGraphicalEditPart.addNotif y(AbstractGraphicalEditPart.java:212)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.AbstractEditPart.addChild(Abstract EditPart.java:198)
>>>>
>>>> at
>>>> org.eclipse.gef.editparts.SimpleRootEditPart.setContents(Sim pleRootEditPart.java:101)
>>>>
>>>> at
>>>> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:601)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramGraphicalVie wer.setContents(DiagramGraphicalViewer.java:378)
>>>>
>>>> at
>>>> org.eclipse.gef.ui.parts.AbstractEditPartViewer.setContents( AbstractEditPartViewer.java:610)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewerContents(DiagramEditor.java:857)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.initi alizeGraphicalViewer(DiagramEditor.java:850)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.initializeGraphicalViewer(DiagramEditorWithFlyOu tPalette.java:112)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat eGraphicalViewer(DiagramEditor.java:794)
>>>>
>>>> at
>>>> org.eclipse.gef.ui.parts.GraphicalEditor.createPartControl(G raphicalEditor.java:163)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditor.creat ePartControl(DiagramEditor.java:1548)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.parts.DiagramEditorWithFl yOutPalette.createPartControl(DiagramEditorWithFlyOutPalette .java:310)
>>>>
>>>> at
>>>> org.eclipse.gmf.runtime.diagram.ui.resources.editor.parts.Di agramDocumentEditor.createPartControl(DiagramDocumentEditor. java:1459)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:661)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:426)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:594)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(Ed itorAreaHelper.java:263)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorManager.setVisibleEditor(Edito rManager.java:1405)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.EditorManager$5.runWithException(Edi torManager.java:939)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>>>>
>>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>>> at
>>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:124)
>>>>
>>>> at
>>>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3719)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3356)
>>>> at
>>>> org.eclipse.ui.application.WorkbenchAdvisor.openWindows(Work benchAdvisor.java:801)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.Workbench$25.runWithException(Workbe nch.java:1342)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.StartupThreading$StartupRunnable.run (StartupThreading.java:31)
>>>>
>>>> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
>>>> at
>>>> org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:124)
>>>>
>>>> at
>>>> org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3719)
>>>> at
>>>> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3356)
>>>> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2309)
>>>> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 19)
>>>> at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
>>>> at
>>>> org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:289)
>>>>
>>>> at
>>>> org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:461)
>>>>
>>>> at
>>>> org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
>>>> at
>>>> org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:106)
>>>>
>>>> at
>>>> org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:169)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:106)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:76)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:363)
>>>>
>>>> at
>>>> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:176)
>>>>
>>>> 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: 515)
>>>> at org.eclipse.equinox.launcher.Main.basicRun(Main.java:455)
>>>> at org.eclipse.equinox.launcher.Main.run(Main.java:1193)
>>>> at org.eclipse.equinox.launcher.Main.main(Main.java:1169)
Previous Topic:How to present ParserEditStatus error validation messages for direct edits
Next Topic:Layout problem
Goto Forum:
  


Current Time: Fri Dec 27 06:30:04 GMT 2024

Powered by FUDForum. Page generated in 0.02944 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top