|
Re: Storing GMF diagram object with teneo [message #113104 is a reply to message #113077] |
Mon, 25 February 2008 06:49 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Manfred,
I think you have encountered the same issue with gmf as I have a long while back:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=159226#c12
Probably I will be looking into the gmf integration the coming weeks (before eclipsecon). So then I
will look again at this topic. Until that time I don't know if it is solvable.
gr. Martin
Manfred Hahn wrote:
> Hi everybody
>
> I am writing a GMF application and try for the first time to store the
> GMF diagram model information into a Hibernate database using teneo. The
> diagram itself is empty, but I have to create a diagram object when I
> want to open a new diagram editor.
>
> I got a null pointer exception when I am saving this resource. The
> exception is thrown in the EListPropertyHandler.set() method, because
> the javaField, determined with FieldUtil.getField(), is null.
>
> Debugging the problem I found out, that the field name for the
> getField-method is the name of a feature of the diagram-object:
> "children" (in fact it is a feature of the base class "View").
>
> The getField() method tries to get a java class field in the class
> "Diagram" or the base classes, but there is no field with that name. The
> fields that are found have names like "persistedChildren" or
> "transientChildren" or "allChildren".
> So the features of the Diagram class and the fields of the Diagram class
> are different. The field to save will never be found using this strategie.
>
> Has anyone a hint how I can solve this problem?
>
> Thank you,
> Manfred
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
|
|
Re: Storing GMF diagram object with teneo [message #615550 is a reply to message #113077] |
Mon, 25 February 2008 06:49 |
Martin Taal Messages: 5468 Registered: July 2009 |
Senior Member |
|
|
Hi Manfred,
I think you have encountered the same issue with gmf as I have a long while back:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=159226#c12
Probably I will be looking into the gmf integration the coming weeks (before eclipsecon). So then I
will look again at this topic. Until that time I don't know if it is solvable.
gr. Martin
Manfred Hahn wrote:
> Hi everybody
>
> I am writing a GMF application and try for the first time to store the
> GMF diagram model information into a Hibernate database using teneo. The
> diagram itself is empty, but I have to create a diagram object when I
> want to open a new diagram editor.
>
> I got a null pointer exception when I am saving this resource. The
> exception is thrown in the EListPropertyHandler.set() method, because
> the javaField, determined with FieldUtil.getField(), is null.
>
> Debugging the problem I found out, that the field name for the
> getField-method is the name of a feature of the diagram-object:
> "children" (in fact it is a feature of the base class "View").
>
> The getField() method tries to get a java class field in the class
> "Diagram" or the base classes, but there is no field with that name. The
> fields that are found have names like "persistedChildren" or
> "transientChildren" or "allChildren".
> So the features of the Diagram class and the fields of the Diagram class
> are different. The field to save will never be found using this strategie.
>
> Has anyone a hint how I can solve this problem?
>
> Thank you,
> Manfred
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03518 seconds