Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Serialisation issue with EMF ChangeDescription
Serialisation issue with EMF ChangeDescription [message #757427] Fri, 18 November 2011 12:11 Go to next message
Paul  is currently offline Paul Friend
Messages: 1
Registered: July 2009
Junior Member
Hi,

We are having an issue when deserialising the a ChangeDescription to a a bi-directional one to many relationship.

When its serialized the manyToOne has a referenceValue in the XML, however when its deserialised the referenceValue in the FeatureChange is null and if we attempt to access the "Value" it throws a null pointer exception when attempting to do
EStructuralFeature feature = getFeature();

The other side of the relationship looks to be fine and the referenceValues in the listChanges gets initialised properly.

Is there something we have missed?

Junit test case method included to indicate issue.


Re: Serialisation issue with EMF ChangeDescription [message #757971 is a reply to message #757427] Fri, 18 November 2011 13:23 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Paul,

Comments below.


On 18/11/2011 1:11 PM, Paul wrote:
> Hi,
>
> We are having an issue when deserialising the a ChangeDescription to a a bi-directional one to many relationship.
>
> When its serialized the manyToOne has a referenceValue in the XML, however when its deserialised the referenceValue in the FeatureChange is null and if we attempt to access the "Value" it throws a null pointer exception when attempting to do
> EStructuralFeature feature = getFeature();
That looks familiar. You've tried this with EMF 2.7?
>
> The other side of the relationship looks to be fine and the referenceValues in the listChanges gets initialised properly.
>
> Is there something we have missed?
>
> Junit test case method included to indicate issue.
Can you provide a unit test that doesn't include these dependencies:

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.transaction.annotation.Transactional;

import com.ses.osp.domain.sy.context.OspResourceSet;


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO/Databinding] "The Databinding / CDO Tango" Can we dance a bit faster please
Next Topic:Do you have any advices about runnig EMF on the web?
Goto Forum:
  


Current Time: Fri Apr 19 10:34:34 GMT 2024

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

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

Back to the top