Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Showstopper?
Showstopper? [message #107270] Tue, 27 February 2007 09:03 Go to next message
Eclipse UserFriend
I had happily designed my app and was at a stage where I was going to
"beautify" it (i.e. tweaking spacings and alignments here and there)
when I suddenly during a diagram code generation got:

--------------------
!ENTRY org.eclipse.gmf.codegen.ui 4 0 2007-02-27 14:52:33.750
!MESSAGE Exception occurred while generating code
!STACK 0
java.lang.RuntimeException: Unknown viewmap:
org.eclipse.gmf.codegen.gmfgen.impl.ParentAssignedViewmapImp l @6b926b92
(requiredPluginIDs: null, layoutType: UNKNOWN) (getterName:
getFigureUpdatesFigure, setterName: null, figureQualifiedClassName:
org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnection Ex)
at
org.eclipse.gmf.internal.xpand.ast.ErrorStatement.evaluateIn ternal(ErrorStatement.java:47)
at
org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statem ent.java:27)
at
org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evalua te(AbstractDefinition.java:94)
at
org.eclipse.gmf.internal.xpand.ast.ExpandStatement.invokeDef inition(ExpandStatement.java:190)
at
org.eclipse.gmf.internal.xpand.ast.ExpandStatement.evaluateI nternal(ExpandStatement.java:161)
at
org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statem ent.java:27)
at
org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evalua te(AbstractDefinition.java:94)
at
org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFac ade.java:60)
at
org.eclipse.gmf.internal.common.codegen.XpandTextEmitter.gen erate(XpandTextEmitter.java:50)
at
org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGene rateJavaClass(GeneratorBase.java:320)
at
org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGene rateJavaClass(GeneratorBase.java:307)
at
org.eclipse.gmf.codegen.util.Generator.generateLinkEditPart( Generator.java:368)
at org.eclipse.gmf.codegen.util.Generator.customRun(Generator.j ava:137)
at
org.eclipse.gmf.internal.common.codegen.GeneratorBase$1.run( GeneratorBase.java:451)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1798)
at
org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1780)
at
org.eclipse.gmf.internal.common.codegen.GeneratorBase.doRun( GeneratorBase.java:448)
at
org.eclipse.gmf.internal.common.codegen.GeneratorBase.run(Ge neratorBase.java:87)
at
org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTempla tesOperation.run(ExecuteTemplatesOperation.java:176)
at
org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)

!ENTRY org.eclipse.core.resources 4 368 2007-02-27 14:52:34.672
!MESSAGE Resource '/leonardo2.diagram/build.properties' does not exist.
--------------------

I tried to undo what I remembered as my last changes, but I don't get
this error away any more, i.e. each time I run "generate diagram code" I
get the above. Alas, my backup is more than a day old and so I would
loose an annoying amount of work, if I had to go back to that version.

Needless to say, that validation doesn't indicate any errrors and that -
just in case - I already removed all generated code and tried
regenerating from scratch, but that didn't help either.

Is there ANY way to find out, what or which element is causing this???

Michael
Re: Showstopper? [message #108257 is a reply to message #107270] Thu, 01 March 2007 10:37 Go to previous messageGo to next message
Eclipse UserFriend
Hi Michael,

Probably the generation team has better advice to offer in this case,
but I've found that I can successfully debug the code generation by
using the following setup:

1. Start with a development workspace 'A' that contains your application
plug-ins and the GMF plug-ins from the milestone you are using (I've
imported mine as plug-ins and fragments with source from my target
environment, but alternately you could check them out from CVS). In
workspace 'A', set breakpoints in the GMF code as desired.

2. Create and launch a debug configuration for a workspace 'B' in which
you will edit your models and perform code generation. In workspace
'B', import your application plug-ins from workspace 'A' using the
"Import->Existing Projects into Workspace" wizard (do NOT copy the
projects into the workspace)

3. After generating your application code in workspace 'B', update the
application plug-ins in workspace 'A' and launch a second runtime
workspace 'C' to test your generated application.

Regards,
Linda


Michael Moser wrote:
> I had happily designed my app and was at a stage where I was going to
> "beautify" it (i.e. tweaking spacings and alignments here and there)
> when I suddenly during a diagram code generation got:
>
> --------------------
> !ENTRY org.eclipse.gmf.codegen.ui 4 0 2007-02-27 14:52:33.750
> !MESSAGE Exception occurred while generating code
> !STACK 0
> java.lang.RuntimeException: Unknown viewmap:
> org.eclipse.gmf.codegen.gmfgen.impl.ParentAssignedViewmapImp l @6b926b92
> (requiredPluginIDs: null, layoutType: UNKNOWN) (getterName:
> getFigureUpdatesFigure, setterName: null, figureQualifiedClassName:
> org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnection Ex)
> at
> org.eclipse.gmf.internal.xpand.ast.ErrorStatement.evaluateIn ternal(ErrorStatement.java:47)
>
> at org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statem ent.java:27)
> at
> org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evalua te(AbstractDefinition.java:94)
>
> at
> org.eclipse.gmf.internal.xpand.ast.ExpandStatement.invokeDef inition(ExpandStatement.java:190)
>
> at
> org.eclipse.gmf.internal.xpand.ast.ExpandStatement.evaluateI nternal(ExpandStatement.java:161)
>
> at org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statem ent.java:27)
> at
> org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evalua te(AbstractDefinition.java:94)
>
> at org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFac ade.java:60)
> at
> org.eclipse.gmf.internal.common.codegen.XpandTextEmitter.gen erate(XpandTextEmitter.java:50)
>
> at
> org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGene rateJavaClass(GeneratorBase.java:320)
>
> at
> org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGene rateJavaClass(GeneratorBase.java:307)
>
> at
> org.eclipse.gmf.codegen.util.Generator.generateLinkEditPart( Generator.java:368)
>
> at org.eclipse.gmf.codegen.util.Generator.customRun(Generator.j ava:137)
> at
> org.eclipse.gmf.internal.common.codegen.GeneratorBase$1.run( GeneratorBase.java:451)
>
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1798)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1780)
> at
> org.eclipse.gmf.internal.common.codegen.GeneratorBase.doRun( GeneratorBase.java:448)
>
> at
> org.eclipse.gmf.internal.common.codegen.GeneratorBase.run(Ge neratorBase.java:87)
>
> at
> org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTempla tesOperation.run(ExecuteTemplatesOperation.java:176)
>
> at
> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)
>
>
> !ENTRY org.eclipse.core.resources 4 368 2007-02-27 14:52:34.672
> !MESSAGE Resource '/leonardo2.diagram/build.properties' does not exist.
> --------------------
>
> I tried to undo what I remembered as my last changes, but I don't get
> this error away any more, i.e. each time I run "generate diagram code" I
> get the above. Alas, my backup is more than a day old and so I would
> loose an annoying amount of work, if I had to go back to that version.
>
> Needless to say, that validation doesn't indicate any errrors and that -
> just in case - I already removed all generated code and tried
> regenerating from scratch, but that didn't help either.
>
> Is there ANY way to find out, what or which element is causing this???
>
> Michael
>
Re: Showstopper? [message #108271 is a reply to message #108257] Thu, 01 March 2007 11:28 Go to previous message
Eclipse UserFriend
Good idea to use a debug setup! I'll try next time I run into something
like this.

In the meantime though (it's already a while since I posted this) I
actually stepped back to the last backup and worked forward from there
again.

Michael


"Linda Damus" <ldamus@ca.ibm.com> wrote in message
news:es6rvg$ksv$1@utils.eclipse.org...
> Hi Michael,
>
> Probably the generation team has better advice to offer in this case,
> but I've found that I can successfully debug the code generation by
> using the following setup:
>
> 1. Start with a development workspace 'A' that contains your
> application plug-ins and the GMF plug-ins from the milestone you are
> using (I've imported mine as plug-ins and fragments with source from
> my target environment, but alternately you could check them out from
> CVS). In workspace 'A', set breakpoints in the GMF code as desired.
>
> 2. Create and launch a debug configuration for a workspace 'B' in
> which you will edit your models and perform code generation. In
> workspace 'B', import your application plug-ins from workspace 'A'
> using the "Import->Existing Projects into Workspace" wizard (do NOT
> copy the projects into the workspace)
>
> 3. After generating your application code in workspace 'B', update the
> application plug-ins in workspace 'A' and launch a second runtime
> workspace 'C' to test your generated application.
>
> Regards,
> Linda
>
>
> Michael Moser wrote:
>> I had happily designed my app and was at a stage where I was going to
>> "beautify" it (i.e. tweaking spacings and alignments here and there)
>> when I suddenly during a diagram code generation got:
>>
>> --------------------
>> !ENTRY org.eclipse.gmf.codegen.ui 4 0 2007-02-27 14:52:33.750
>> !MESSAGE Exception occurred while generating code
>> !STACK 0
>> java.lang.RuntimeException: Unknown viewmap:
>> org.eclipse.gmf.codegen.gmfgen.impl.ParentAssignedViewmapImp l @6b926b92
>> (requiredPluginIDs: null, layoutType: UNKNOWN) (getterName:
>> getFigureUpdatesFigure, setterName: null, figureQualifiedClassName:
>> org.eclipse.gmf.runtime.draw2d.ui.figures.PolylineConnection Ex)
>> at
>> org.eclipse.gmf.internal.xpand.ast.ErrorStatement.evaluateIn ternal(ErrorStatement.java:47)
>> at
>> org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statem ent.java:27)
>> at
>> org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evalua te(AbstractDefinition.java:94)
>> at
>> org.eclipse.gmf.internal.xpand.ast.ExpandStatement.invokeDef inition(ExpandStatement.java:190)
>> at
>> org.eclipse.gmf.internal.xpand.ast.ExpandStatement.evaluateI nternal(ExpandStatement.java:161)
>> at
>> org.eclipse.gmf.internal.xpand.ast.Statement.evaluate(Statem ent.java:27)
>> at
>> org.eclipse.gmf.internal.xpand.ast.AbstractDefinition.evalua te(AbstractDefinition.java:94)
>> at
>> org.eclipse.gmf.internal.xpand.XpandFacade.evaluate(XpandFac ade.java:60)
>> at
>> org.eclipse.gmf.internal.common.codegen.XpandTextEmitter.gen erate(XpandTextEmitter.java:50)
>> at
>> org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGene rateJavaClass(GeneratorBase.java:320)
>> at
>> org.eclipse.gmf.internal.common.codegen.GeneratorBase.doGene rateJavaClass(GeneratorBase.java:307)
>> at
>> org.eclipse.gmf.codegen.util.Generator.generateLinkEditPart( Generator.java:368)
>> at
>> org.eclipse.gmf.codegen.util.Generator.customRun(Generator.j ava:137)
>> at
>> org.eclipse.gmf.internal.common.codegen.GeneratorBase$1.run( GeneratorBase.java:451)
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1798)
>> at
>> org.eclipse.core.internal.resources.Workspace.run(Workspace. java:1780)
>> at
>> org.eclipse.gmf.internal.common.codegen.GeneratorBase.doRun( GeneratorBase.java:448)
>> at
>> org.eclipse.gmf.internal.common.codegen.GeneratorBase.run(Ge neratorBase.java:87)
>> at
>> org.eclipse.gmf.internal.codegen.popup.actions.ExecuteTempla tesOperation.run(ExecuteTemplatesOperation.java:176)
>> at
>> org.eclipse.jface.operation.ModalContext$ModalContextThread. run(ModalContext.java:113)
>> !ENTRY org.eclipse.core.resources 4 368 2007-02-27 14:52:34.672
>> !MESSAGE Resource '/leonardo2.diagram/build.properties' does not
>> exist.
>> --------------------
>>
>> I tried to undo what I remembered as my last changes, but I don't get
>> this error away any more, i.e. each time I run "generate diagram
>> code" I get the above. Alas, my backup is more than a day old and so
>> I would loose an annoying amount of work, if I had to go back to that
>> version.
>>
>> Needless to say, that validation doesn't indicate any errrors and
>> that - just in case - I already removed all generated code and tried
>> regenerating from scratch, but that didn't help either.
>>
>> Is there ANY way to find out, what or which element is causing
>> this???
>>
>> Michael
>>
Previous Topic:Popup contribution for different location of a connection
Next Topic:java.lang.LinkageError on diagram export
Goto Forum:
  


Current Time: Mon Jun 09 08:25:44 EDT 2025

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

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

Back to the top