Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [TENEO] Problem with GMF BasicDecorationNodeImpl
[TENEO] Problem with GMF BasicDecorationNodeImpl [message #430697] Thu, 04 June 2009 11:57 Go to next message
Markus Franz is currently offline Markus FranzFriend
Messages: 38
Registered: July 2009
Member
Hi all (especially Martin Taal),

i have got a problem since we tried to use the "Add note" feature of a
generated GMF Editor (i.e. add some kind of label to some graphical
model object). Everything is persisted without any problem, however if
we want to load the stuff from the database, we encounter the following
exception (as root for some other exception [namely ERROR The field
persistedChildren can not be set using object
org.hibernate.collection.PersistentList on target
org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l]):


java.lang.NullPointerException
at
org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler.set(EListPropertyHandler.java:356)
at
org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropert yValues(AbstractEntityTuplizer.java:360)
at
org.hibernate.persister.entity.AbstractEntityPersister.setPr opertyValues(AbstractEntityPersister.java:3594)
at
org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:152)
at
org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:877)
at org.hibernate.loader.Loader.doQuery(Loader.java:752)
at
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:259)
at org.hibernate.loader.Loader.loadCollection(Loader.java:2015)
at
org.hibernate.loader.collection.CollectionLoader.initialize( CollectionLoader.java:59)
at
org.hibernate.persister.collection.AbstractCollectionPersist er.initialize(AbstractCollectionPersister.java:587)
at
org.hibernate.event.def.DefaultInitializeCollectionEventList ener.onInitializeCollection(DefaultInitializeCollectionEvent Listener.java:83)
at
org.eclipse.emf.teneo.hibernate.mapping.EMFInitializeCollect ionEventListener.onInitializeCollection(EMFInitializeCollect ionEventListener.java:61)
at
org.hibernate.impl.SessionImpl.initializeCollection(SessionI mpl.java:1743)
at
org.hibernate.collection.AbstractPersistentCollection.initia lize(AbstractPersistentCollection.java:366)
at
org.hibernate.collection.AbstractPersistentCollection.read(A bstractPersistentCollection.java:108)
at org.hibernate.collection.PersistentList.toArray(PersistentLi st.java:146)
at
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList.doLoad(HibernatePersistableEList.java:139)
at
org.eclipse.emf.teneo.mapping.elist.PersistableEList.load(Pe rsistableEList.java:253)
at
org.eclipse.emf.teneo.mapping.elist.PersistableEList.delegat eIsEmpty(PersistableEList.java:430)
at
org.eclipse.emf.common.util.DelegatingEList.isEmpty(Delegati ngEList.java:83)
at
org.eclipse.gmf.runtime.notation.impl.ShapeImpl.eIsSet(Shape Impl.java:865)
at
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:1239)
at
org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImp l.hasNext(EContentsEList.java:407)
at
org.eclipse.emf.transaction.impl.TransactionChangeRecorder.s etTarget(TransactionChangeRecorder.java:155)
at
org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:488)
at
org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:1)
at
org.eclipse.emf.common.util.ArrayDelegatingEList.addUnique(A rrayDelegatingEList.java:395)
at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList. java:307)
at
org.eclipse.emf.ecore.change.util.ChangeRecorder.addAdapter( ChangeRecorder.java:631)
at
org.eclipse.emf.transaction.impl.TransactionChangeRecorder.s etTarget(TransactionChangeRecorder.java:157)
at
org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:488)
at
org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:1)
at
org.eclipse.emf.common.util.ArrayDelegatingEList.addUnique(A rrayDelegatingEList.java:395)
at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList. java:307)
at
org.eclipse.emf.ecore.change.util.ChangeRecorder.addAdapter( ChangeRecorder.java:631)
at
org.eclipse.emf.ecore.change.util.ChangeRecorder.notifyChang ed(ChangeRecorder.java:266)
at
org.eclipse.emf.transaction.impl.TransactionChangeRecorder.n otifyChanged(TransactionChangeRecorder.java:218)
at
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify (BasicNotifierImpl.java:280)
at
org.eclipse.emf.teneo.resource.StoreResource.load(StoreResou rce.java:310)
....


I debugged a little and the problem lies in line 352 of

EListPropertyHandler.set(Object target, Object value,
SessionFactoryImplementor factory)
where

final Field javaField = FieldUtil.getField(target.getClass(),
getFieldName(target));
sets javaField to null, because FieldUtil.getField return null for
target.getClass() being
org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l and
getFieldname(target) being "persistedChildren". When looking into the
problem i noticed that the API for BasicDecorationNode mentions that it
"Does not support addition/removal of: [...] children". May this be the
problem? If anyone has any isights on this issue, i would greatly
appreciate it!

Markus
Re: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430720 is a reply to message #430697] Fri, 05 June 2009 05:18 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Markus,
I did a check but afaics the issue here is that there is no java member called persistedChildren in
org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l
so that's the cause of this exception.

Can you check with the version of gmf you are working with?

When debugging can you check where in the instance the persistedChildren collection is stored? (it might be hidden in a
member called eSettings).

In the EListPropertyHandler the part which fails is in an else of a if block. The if-part handles the case that an
efeature is a dynamic efeature. Possibly that's the way to handle this efeature (although it is not detected as being
dynamic).

gr. Martin

Markus Franz wrote:
> Hi all (especially Martin Taal),
>
> i have got a problem since we tried to use the "Add note" feature of a
> generated GMF Editor (i.e. add some kind of label to some graphical
> model object). Everything is persisted without any problem, however if
> we want to load the stuff from the database, we encounter the following
> exception (as root for some other exception [namely ERROR The field
> persistedChildren can not be set using object
> org.hibernate.collection.PersistentList on target
> org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l]):
>
>
> java.lang.NullPointerException
> at
> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler.set(EListPropertyHandler.java:356)
>
> at
> org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropert yValues(AbstractEntityTuplizer.java:360)
>
> at
> org.hibernate.persister.entity.AbstractEntityPersister.setPr opertyValues(AbstractEntityPersister.java:3594)
>
> at
> org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:152)
> at
> org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:877)
>
> at org.hibernate.loader.Loader.doQuery(Loader.java:752)
> at
> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:259)
>
> at org.hibernate.loader.Loader.loadCollection(Loader.java:2015)
> at
> org.hibernate.loader.collection.CollectionLoader.initialize( CollectionLoader.java:59)
>
> at
> org.hibernate.persister.collection.AbstractCollectionPersist er.initialize(AbstractCollectionPersister.java:587)
>
> at
> org.hibernate.event.def.DefaultInitializeCollectionEventList ener.onInitializeCollection(DefaultInitializeCollectionEvent Listener.java:83)
>
> at
> org.eclipse.emf.teneo.hibernate.mapping.EMFInitializeCollect ionEventListener.onInitializeCollection(EMFInitializeCollect ionEventListener.java:61)
>
> at
> org.hibernate.impl.SessionImpl.initializeCollection(SessionI mpl.java:1743)
> at
> org.hibernate.collection.AbstractPersistentCollection.initia lize(AbstractPersistentCollection.java:366)
>
> at
> org.hibernate.collection.AbstractPersistentCollection.read(A bstractPersistentCollection.java:108)
>
> at
> org.hibernate.collection.PersistentList.toArray(PersistentLi st.java:146)
> at
> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList.doLoad(HibernatePersistableEList.java:139)
>
> at
> org.eclipse.emf.teneo.mapping.elist.PersistableEList.load(Pe rsistableEList.java:253)
>
> at
> org.eclipse.emf.teneo.mapping.elist.PersistableEList.delegat eIsEmpty(PersistableEList.java:430)
>
> at
> org.eclipse.emf.common.util.DelegatingEList.isEmpty(Delegati ngEList.java:83)
>
> at
> org.eclipse.gmf.runtime.notation.impl.ShapeImpl.eIsSet(Shape Impl.java:865)
> at
> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:1239)
>
> at
> org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImp l.hasNext(EContentsEList.java:407)
>
> at
> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.s etTarget(TransactionChangeRecorder.java:155)
>
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:488)
>
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:1)
>
> at
> org.eclipse.emf.common.util.ArrayDelegatingEList.addUnique(A rrayDelegatingEList.java:395)
>
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList. java:307)
> at
> org.eclipse.emf.ecore.change.util.ChangeRecorder.addAdapter( ChangeRecorder.java:631)
>
> at
> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.s etTarget(TransactionChangeRecorder.java:157)
>
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:488)
>
> at
> org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:1)
>
> at
> org.eclipse.emf.common.util.ArrayDelegatingEList.addUnique(A rrayDelegatingEList.java:395)
>
> at
> org.eclipse.emf.common.util.AbstractEList.add(AbstractEList. java:307)
> at
> org.eclipse.emf.ecore.change.util.ChangeRecorder.addAdapter( ChangeRecorder.java:631)
>
> at
> org.eclipse.emf.ecore.change.util.ChangeRecorder.notifyChang ed(ChangeRecorder.java:266)
>
> at
> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.n otifyChanged(TransactionChangeRecorder.java:218)
>
> at
> org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify (BasicNotifierImpl.java:280)
>
> at
> org.eclipse.emf.teneo.resource.StoreResource.load(StoreResou rce.java:310)
> ....
>
>
> I debugged a little and the problem lies in line 352 of
>
> EListPropertyHandler.set(Object target, Object value,
> SessionFactoryImplementor factory)
> where
>
> final Field javaField = FieldUtil.getField(target.getClass(),
> getFieldName(target));
> sets javaField to null, because FieldUtil.getField return null for
> target.getClass() being
> org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l and
> getFieldname(target) being "persistedChildren". When looking into the
> problem i noticed that the API for BasicDecorationNode mentions that it
> "Does not support addition/removal of: [...] children". May this be the
> problem? If anyone has any isights on this issue, i would greatly
> appreciate it!
>
> Markus


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430721 is a reply to message #430720] Fri, 05 June 2009 07:48 Go to previous messageGo to next message
Markus Franz is currently offline Markus FranzFriend
Messages: 38
Registered: July 2009
Member
Hi Martin,

i am working with GMF SDK version 2.2.0.v20090114[...], EMF SDK 2.5.0
and Teneo EMF Hibernate SDK 1.0.4. I am sorry, but i do not understand,
how i can check where in the instance the persistedChildren collection
is stored. As far as i can see, there should not be any
persistedChildren for a BasicDecorationNodeImpl. I try to give you more
information as best as i understand it considering the stack trace i
posted before:

at
org.eclipse.gmf.runtime.notation.impl.ShapeImpl.eIsSet(Shape Impl.java:865)
, a Shape containing two
org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l as its
"persisted children" is asked if said "persistedChildren" list is empty.
Then at
org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList.doLoad(HibernatePersistableEList.java:139)
the delegate of said list (containing the two BasicDecorationNodeImpl)
forces those children to be loaded. Then some Hibernate stuff happens
for which i do not (yet) have got the source code and thus may only
guess what is happening. At
org.hibernate.tuple.entity.AbstractEntityTuplizer i can see that the
"entity" is a
org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l and that
"values[6]" is a PersistentList with the
org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l as owner
and "View.children" as "role" (i am only guessing on this being
important here).

As to your guess that the feature should be detected as being dynamic, i
think it sounds good, but i have no idea if there indeed should be such
a feature at all. Maybe we should ask someone involved with GMF
development...

I am sorry for not being more helpful at the moment, but i did not dive
into the GMF code that deep yet. I will also integrate the source for
hibernate to be able to debug deeper.

Nonetheless thank you again for your fast respones to all problems :-)

Markus


> Hi Markus,
> I did a check but afaics the issue here is that there is no java member
> called persistedChildren in
> org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l
> so that's the cause of this exception.
>
> Can you check with the version of gmf you are working with?
>
> When debugging can you check where in the instance the persistedChildren
> collection is stored? (it might be hidden in a member called eSettings).
>
> In the EListPropertyHandler the part which fails is in an else of a if
> block. The if-part handles the case that an efeature is a dynamic
> efeature. Possibly that's the way to handle this efeature (although it
> is not detected as being dynamic).
>
> gr. Martin
>
> Markus Franz wrote:
>> Hi all (especially Martin Taal),
>>
>> i have got a problem since we tried to use the "Add note" feature of a
>> generated GMF Editor (i.e. add some kind of label to some graphical
>> model object). Everything is persisted without any problem, however if
>> we want to load the stuff from the database, we encounter the
>> following exception (as root for some other exception [namely ERROR
>> The field persistedChildren can not be set using object
>> org.hibernate.collection.PersistentList on target
>> org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l]):
>>
>>
>> java.lang.NullPointerException
>> at
>> org.eclipse.emf.teneo.hibernate.mapping.property.EListProper tyHandler.set(EListPropertyHandler.java:356)
>>
>> at
>> org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropert yValues(AbstractEntityTuplizer.java:360)
>>
>> at
>> org.hibernate.persister.entity.AbstractEntityPersister.setPr opertyValues(AbstractEntityPersister.java:3594)
>>
>> at
>> org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseL oad.java:152)
>> at
>> org.hibernate.loader.Loader.initializeEntitiesAndCollections (Loader.java:877)
>>
>> at org.hibernate.loader.Loader.doQuery(Loader.java:752)
>> at
>> org.hibernate.loader.Loader.doQueryAndInitializeNonLazyColle ctions(Loader.java:259)
>>
>> at org.hibernate.loader.Loader.loadCollection(Loader.java:2015)
>> at
>> org.hibernate.loader.collection.CollectionLoader.initialize( CollectionLoader.java:59)
>>
>> at
>> org.hibernate.persister.collection.AbstractCollectionPersist er.initialize(AbstractCollectionPersister.java:587)
>>
>> at
>> org.hibernate.event.def.DefaultInitializeCollectionEventList ener.onInitializeCollection(DefaultInitializeCollectionEvent Listener.java:83)
>>
>> at
>> org.eclipse.emf.teneo.hibernate.mapping.EMFInitializeCollect ionEventListener.onInitializeCollection(EMFInitializeCollect ionEventListener.java:61)
>>
>> at
>> org.hibernate.impl.SessionImpl.initializeCollection(SessionI mpl.java:1743)
>>
>> at
>> org.hibernate.collection.AbstractPersistentCollection.initia lize(AbstractPersistentCollection.java:366)
>>
>> at
>> org.hibernate.collection.AbstractPersistentCollection.read(A bstractPersistentCollection.java:108)
>>
>> at
>> org.hibernate.collection.PersistentList.toArray(PersistentLi st.java:146)
>> at
>> org.eclipse.emf.teneo.hibernate.mapping.elist.HibernatePersi stableEList.doLoad(HibernatePersistableEList.java:139)
>>
>> at
>> org.eclipse.emf.teneo.mapping.elist.PersistableEList.load(Pe rsistableEList.java:253)
>>
>> at
>> org.eclipse.emf.teneo.mapping.elist.PersistableEList.delegat eIsEmpty(PersistableEList.java:430)
>>
>> at
>> org.eclipse.emf.common.util.DelegatingEList.isEmpty(Delegati ngEList.java:83)
>>
>> at
>> org.eclipse.gmf.runtime.notation.impl.ShapeImpl.eIsSet(Shape Impl.java:865)
>>
>> at
>> org.eclipse.emf.ecore.impl.BasicEObjectImpl.eIsSet(BasicEObj ectImpl.java:1239)
>>
>> at
>> org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImp l.hasNext(EContentsEList.java:407)
>>
>> at
>> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.s etTarget(TransactionChangeRecorder.java:155)
>>
>> at
>> org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:488)
>>
>> at
>> org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:1)
>>
>> at
>> org.eclipse.emf.common.util.ArrayDelegatingEList.addUnique(A rrayDelegatingEList.java:395)
>>
>> at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList. java:307)
>> at
>> org.eclipse.emf.ecore.change.util.ChangeRecorder.addAdapter( ChangeRecorder.java:631)
>>
>> at
>> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.s etTarget(TransactionChangeRecorder.java:157)
>>
>> at
>> org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:488)
>>
>> at
>> org.eclipse.emf.ecore.impl.MinimalEObjectImpl$1.didAdd(Minim alEObjectImpl.java:1)
>>
>> at
>> org.eclipse.emf.common.util.ArrayDelegatingEList.addUnique(A rrayDelegatingEList.java:395)
>>
>> at org.eclipse.emf.common.util.AbstractEList.add(AbstractEList. java:307)
>> at
>> org.eclipse.emf.ecore.change.util.ChangeRecorder.addAdapter( ChangeRecorder.java:631)
>>
>> at
>> org.eclipse.emf.ecore.change.util.ChangeRecorder.notifyChang ed(ChangeRecorder.java:266)
>>
>> at
>> org.eclipse.emf.transaction.impl.TransactionChangeRecorder.n otifyChanged(TransactionChangeRecorder.java:218)
>>
>> at
>> org.eclipse.emf.common.notify.impl.BasicNotifierImpl.eNotify (BasicNotifierImpl.java:280)
>>
>> at
>> org.eclipse.emf.teneo.resource.StoreResource.load(StoreResou rce.java:310)
>> ....
>>
>>
>> I debugged a little and the problem lies in line 352 of
>>
>> EListPropertyHandler.set(Object target, Object value,
>> SessionFactoryImplementor factory)
>> where
>>
>> final Field javaField = FieldUtil.getField(target.getClass(),
>> getFieldName(target));
>> sets javaField to null, because FieldUtil.getField return null for
>> target.getClass() being
>> org.eclipse.gmf.runtime.notation.impl.BasicDecorationNodeImp l and
>> getFieldname(target) being "persistedChildren". When looking into the
>> problem i noticed that the API for BasicDecorationNode mentions that
>> it "Does not support addition/removal of: [...] children". May this be
>> the problem? If anyone has any isights on this issue, i would greatly
>> appreciate it!
>>
>> Markus
>
>
Re: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430724 is a reply to message #430721] Fri, 05 June 2009 09:31 Go to previous messageGo to next message
Markus Franz is currently offline Markus FranzFriend
Messages: 38
Registered: July 2009
Member
Hi Martin,

as additional hint: my colleague was working through the teneo GMF
tutorials at elver.org. One can easily reproduce the error following the
tutorial, opening the diagram editor, adding some "Topic" or "Subtopic"
and then choosing the "Note" tool from the palette (right on top of the
Creation Tools), writing something in the note and then saving the
diagram to database. When trying to reopen the diagram, the error
happens (without a "Note" everything is fine). (Further info: we are
using Eclipse Galileo (3.5) and i also tried the most recent versions of
Teneo and EMF).

Markus
Re: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430725 is a reply to message #430724] Fri, 05 June 2009 09:36 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Markus,
Did you use Teneo 1.1.0?
I will try to reproduce this error this weekend (follow the tutorial).

gr. Martin

Markus Franz wrote:
> Hi Martin,
>
> as additional hint: my colleague was working through the teneo GMF
> tutorials at elver.org. One can easily reproduce the error following the
> tutorial, opening the diagram editor, adding some "Topic" or "Subtopic"
> and then choosing the "Note" tool from the palette (right on top of the
> Creation Tools), writing something in the note and then saving the
> diagram to database. When trying to reopen the diagram, the error
> happens (without a "Note" everything is fine). (Further info: we are
> using Eclipse Galileo (3.5) and i also tried the most recent versions of
> Teneo and EMF).
>
> Markus


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430726 is a reply to message #430725] Fri, 05 June 2009 09:54 Go to previous messageGo to next message
Markus Franz is currently offline Markus FranzFriend
Messages: 38
Registered: July 2009
Member
Hi Martin,

my colleague mentioned he used Teneo 1.0.4, i myself used Teneo 1.1.0.
The error is the same.


Markus


> Hi Markus,
> Did you use Teneo 1.1.0?
> I will try to reproduce this error this weekend (follow the tutorial).
>
> gr. Martin
>
Re: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430742 is a reply to message #430726] Sun, 07 June 2009 09:29 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Markus,
I can reproduce the issue. There are some parts of the gmf BasicDecorationNodeImpl which I don't understand. I have
asked on the gmf newsgroup about it:
See the post with title: Question about: BasicDecorationNodeImpl and persistedChildren feature
on eclipse.modeling.gmf
or for a hyperlink:
http://www.eclipse.org/newsportal/article.php?id=18537&g roup=eclipse.modeling.gmf#18537

gr. Martin

Markus Franz wrote:
> Hi Martin,
>
> my colleague mentioned he used Teneo 1.0.4, i myself used Teneo 1.1.0.
> The error is the same.
>
>
> Markus
>
>
>> Hi Markus,
>> Did you use Teneo 1.1.0?
>> I will try to reproduce this error this weekend (follow the tutorial).
>>
>> gr. Martin
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430752 is a reply to message #430742] Mon, 08 June 2009 06:48 Go to previous messageGo to next message
Markus Franz is currently offline Markus FranzFriend
Messages: 38
Registered: July 2009
Member
Hi Martin,

thank you for looking into this. For the time being, we disable the
"Note" support in our editor, but i will closely monitor your progress
(:-)) as this is a required feature of our end-product.

gr.

Markus


> Hi Markus,
> I can reproduce the issue. There are some parts of the gmf
> BasicDecorationNodeImpl which I don't understand. I have asked on the
> gmf newsgroup about it:
> See the post with title: Question about: BasicDecorationNodeImpl and
> persistedChildren feature
> on eclipse.modeling.gmf
> or for a hyperlink:
> http://www.eclipse.org/newsportal/article.php?id=18537&g roup=eclipse.modeling.gmf#18537
>
>
> gr. Martin
>
> Markus Franz wrote:
>> Hi Martin,
>>
>> my colleague mentioned he used Teneo 1.0.4, i myself used Teneo 1.1.0.
>> The error is the same.
>>
>>
>> Markus
>>
>>
>>> Hi Markus,
>>> Did you use Teneo 1.1.0?
>>> I will try to reproduce this error this weekend (follow the tutorial).
>>>
>>> gr. Martin
>>>
>>
>
>
Re: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430767 is a reply to message #430752] Mon, 08 June 2009 15:50 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Markus,
See the reply on the gmfg newsgroup. So these features can be marked as transient for Teneo. this can be done in the
annotations.xml. I will send you an updated annotations.xml later today.

gr. Martin

Markus Franz wrote:
> Hi Martin,
>
> thank you for looking into this. For the time being, we disable the
> "Note" support in our editor, but i will closely monitor your progress
> (:-)) as this is a required feature of our end-product.
>
> gr.
>
> Markus
>
>
>> Hi Markus,
>> I can reproduce the issue. There are some parts of the gmf
>> BasicDecorationNodeImpl which I don't understand. I have asked on the
>> gmf newsgroup about it:
>> See the post with title: Question about: BasicDecorationNodeImpl and
>> persistedChildren feature
>> on eclipse.modeling.gmf
>> or for a hyperlink:
>> http://www.eclipse.org/newsportal/article.php?id=18537&g roup=eclipse.modeling.gmf#18537
>>
>>
>>
>> gr. Martin
>>
>> Markus Franz wrote:
>>> Hi Martin,
>>>
>>> my colleague mentioned he used Teneo 1.0.4, i myself used Teneo 1.1.0.
>>> The error is the same.
>>>
>>>
>>> Markus
>>>
>>>
>>>> Hi Markus,
>>>> Did you use Teneo 1.1.0?
>>>> I will try to reproduce this error this weekend (follow the tutorial).
>>>>
>>>> gr. Martin
>>>>
>>>
>>
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430770 is a reply to message #430767] Tue, 09 June 2009 06:32 Go to previous messageGo to next message
Markus Franz is currently offline Markus FranzFriend
Messages: 38
Registered: July 2009
Member
Hi Martin,

i read the thread, thanks. Funny enough, this is just like i suspected
all along. ("When looking into the problem i noticed that the API for
BasicDecorationNode mentions that it "Does not support addition/removal
of: [...] children". May this be the problem?").
Again, many many thanks for your excellent support concerning all Teneo
problems! The annotations.xml will be greatly appreciated...

gr.

Markus


Am 08.06.2009 17:50 Uhr, schrieb Martin Taal:
> Hi Markus,
> See the reply on the gmfg newsgroup. So these features can be marked as
> transient for Teneo. this can be done in the annotations.xml. I will
> send you an updated annotations.xml later today.
>
> gr. Martin
>
> Markus Franz wrote:
>> Hi Martin,
>>
>> thank you for looking into this. For the time being, we disable the
>> "Note" support in our editor, but i will closely monitor your progress
>> (:-)) as this is a required feature of our end-product.
>>
>> gr.
>>
>> Markus
>>
>>
>>> Hi Markus,
>>> I can reproduce the issue. There are some parts of the gmf
>>> BasicDecorationNodeImpl which I don't understand. I have asked on the
>>> gmf newsgroup about it:
>>> See the post with title: Question about: BasicDecorationNodeImpl and
>>> persistedChildren feature
>>> on eclipse.modeling.gmf
>>> or for a hyperlink:
>>> http://www.eclipse.org/newsportal/article.php?id=18537&g roup=eclipse.modeling.gmf#18537
>>>
>>>
>>>
>>> gr. Martin
>>>
>>> Markus Franz wrote:
>>>> Hi Martin,
>>>>
>>>> my colleague mentioned he used Teneo 1.0.4, i myself used Teneo 1.1.0.
>>>> The error is the same.
>>>>
>>>>
>>>> Markus
>>>>
>>>>
>>>>> Hi Markus,
>>>>> Did you use Teneo 1.1.0?
>>>>> I will try to reproduce this error this weekend (follow the tutorial).
>>>>>
>>>>> gr. Martin
>>>>>
>>>>
>>>
>>>
>>
>
>
Re: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430771 is a reply to message #430770] Tue, 09 June 2009 06:47 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Marus,
Yes, sorry when I started to look at the code I forgot your remark (which was right on the spot!).

Regarding the annotations.xml. I tried it but the persistedChildren/transientChildren are inherited features so I can't
set them to transient in the subtype. I need to think a bit longer about it (hopefully today/tomorrow). A workaround is
to work with a custom EListPropertyHandler for BasicDecorationNode, but before I go for that trick I want to spend some
time thinking about a nicer solution.

gr. Martin

Markus Franz wrote:
> Hi Martin,
>
> i read the thread, thanks. Funny enough, this is just like i suspected
> all along. ("When looking into the problem i noticed that the API for
> BasicDecorationNode mentions that it "Does not support addition/removal
> of: [...] children". May this be the problem?").
> Again, many many thanks for your excellent support concerning all Teneo
> problems! The annotations.xml will be greatly appreciated...
>
> gr.
>
> Markus
>
>
> Am 08.06.2009 17:50 Uhr, schrieb Martin Taal:
>> Hi Markus,
>> See the reply on the gmfg newsgroup. So these features can be marked as
>> transient for Teneo. this can be done in the annotations.xml. I will
>> send you an updated annotations.xml later today.
>>
>> gr. Martin
>>
>> Markus Franz wrote:
>>> Hi Martin,
>>>
>>> thank you for looking into this. For the time being, we disable the
>>> "Note" support in our editor, but i will closely monitor your progress
>>> (:-)) as this is a required feature of our end-product.
>>>
>>> gr.
>>>
>>> Markus
>>>
>>>
>>>> Hi Markus,
>>>> I can reproduce the issue. There are some parts of the gmf
>>>> BasicDecorationNodeImpl which I don't understand. I have asked on the
>>>> gmf newsgroup about it:
>>>> See the post with title: Question about: BasicDecorationNodeImpl and
>>>> persistedChildren feature
>>>> on eclipse.modeling.gmf
>>>> or for a hyperlink:
>>>> http://www.eclipse.org/newsportal/article.php?id=18537&g roup=eclipse.modeling.gmf#18537
>>>>
>>>>
>>>>
>>>>
>>>> gr. Martin
>>>>
>>>> Markus Franz wrote:
>>>>> Hi Martin,
>>>>>
>>>>> my colleague mentioned he used Teneo 1.0.4, i myself used Teneo 1.1.0.
>>>>> The error is the same.
>>>>>
>>>>>
>>>>> Markus
>>>>>
>>>>>
>>>>>> Hi Markus,
>>>>>> Did you use Teneo 1.1.0?
>>>>>> I will try to reproduce this error this weekend (follow the
>>>>>> tutorial).
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430844 is a reply to message #430770] Thu, 11 June 2009 21:26 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Markus,
No solution yet I am afraid. But can you enter a bugzilla for this? Then I am sure that it stays on my worklist...

gr. Martin

Markus Franz wrote:
> Hi Martin,
>
> i read the thread, thanks. Funny enough, this is just like i suspected
> all along. ("When looking into the problem i noticed that the API for
> BasicDecorationNode mentions that it "Does not support addition/removal
> of: [...] children". May this be the problem?").
> Again, many many thanks for your excellent support concerning all Teneo
> problems! The annotations.xml will be greatly appreciated...
>
> gr.
>
> Markus
>
>
> Am 08.06.2009 17:50 Uhr, schrieb Martin Taal:
>> Hi Markus,
>> See the reply on the gmfg newsgroup. So these features can be marked as
>> transient for Teneo. this can be done in the annotations.xml. I will
>> send you an updated annotations.xml later today.
>>
>> gr. Martin
>>
>> Markus Franz wrote:
>>> Hi Martin,
>>>
>>> thank you for looking into this. For the time being, we disable the
>>> "Note" support in our editor, but i will closely monitor your progress
>>> (:-)) as this is a required feature of our end-product.
>>>
>>> gr.
>>>
>>> Markus
>>>
>>>
>>>> Hi Markus,
>>>> I can reproduce the issue. There are some parts of the gmf
>>>> BasicDecorationNodeImpl which I don't understand. I have asked on the
>>>> gmf newsgroup about it:
>>>> See the post with title: Question about: BasicDecorationNodeImpl and
>>>> persistedChildren feature
>>>> on eclipse.modeling.gmf
>>>> or for a hyperlink:
>>>> http://www.eclipse.org/newsportal/article.php?id=18537&g roup=eclipse.modeling.gmf#18537
>>>>
>>>>
>>>>
>>>>
>>>> gr. Martin
>>>>
>>>> Markus Franz wrote:
>>>>> Hi Martin,
>>>>>
>>>>> my colleague mentioned he used Teneo 1.0.4, i myself used Teneo 1.1.0.
>>>>> The error is the same.
>>>>>
>>>>>
>>>>> Markus
>>>>>
>>>>>
>>>>>> Hi Markus,
>>>>>> Did you use Teneo 1.1.0?
>>>>>> I will try to reproduce this error this weekend (follow the
>>>>>> tutorial).
>>>>>>
>>>>>> gr. Martin
>>>>>>
>>>>>
>>>>
>>>>
>>>
>>
>>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
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: [TENEO] Problem with GMF BasicDecorationNodeImpl [message #430845 is a reply to message #430844] Fri, 12 June 2009 07:17 Go to previous message
Markus Franz is currently offline Markus FranzFriend
Messages: 38
Registered: July 2009
Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=280040
Previous Topic:[CDO] ObjectNotFoundException
Next Topic:EMap<Object, EObject>
Goto Forum:
  


Current Time: Thu Apr 25 21:12:07 GMT 2024

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

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

Back to the top