Skip to main content



      Home
Home » Modeling » EMF » Problem storing EMF CDO model with EMap child(Null Pointer Exception in CDOStateMachine)
Problem storing EMF CDO model with EMap child [message #871283] Fri, 11 May 2012 14:35 Go to next message
Eclipse UserFriend
We are working with CDO for the first time, taking existing EMF models, classes and xml files, and using CDO to persist them to a database. Our initial setup is going well and many of our models can easily be stored if they are simple.

We run into trouble when our models contain an EMap; that is, one of the model classes has a child "properties" which is an EMap<String, String>. When this happens, the CDOStateMachine throws a NPE when iterating through the children in the map; it seems to go off the end of the map.

We have confirmed various genmodel settings such as FeatureDelegation = Reflective.

We are working on Eclipse 3.6.2 and CDO Model Repository SDK 3.0.0.v20110120-1046 and we are using Net4j mysql connector, if it matters.

Has anyone else run into this? What is the solution? How should we expect EMap child values to even be serialized and stored?

Thanks for any help you can provide. You will be helping us to explore Mars later this Summer...

Tamar
Re: Problem storing EMF CDO model with EMap child [message #871338 is a reply to message #871283] Sat, 12 May 2012 03:57 Go to previous messageGo to next message
Eclipse UserFriend
Tamar,

Eike is having hardware problems and likely to be slow in responding
until that's fixed. If you could build a self-contained test case and
open a bugzilla, he could try it out to reproduce the problem.


On 11/05/2012 8:35 PM, Tamar Cohen wrote:
> We are working with CDO for the first time, taking existing EMF
> models, classes and xml files, and using CDO to persist them to a
> database. Our initial setup is going well and many of our models can
> easily be stored if they are simple.
>
> We run into trouble when our models contain an EMap; that is, one of
> the model classes has a child "properties" which is an EMap<String,
> String>. When this happens, the CDOStateMachine throws a NPE when
> iterating through the children in the map; it seems to go off the end
> of the map.
>
> We have confirmed various genmodel settings such as FeatureDelegation
> = Reflective.
>
> We are working on Eclipse 3.6.2 and CDO Model Repository SDK
> 3.0.0.v20110120-1046 and we are using Net4j mysql connector, if it
> matters.
>
> Has anyone else run into this? What is the solution? How should we
> expect EMap child values to even be serialized and stored?
> Thanks for any help you can provide. You will be helping us to
> explore Mars later this Summer...
>
> Tamar
>
Re: Problem storing EMF CDO model with EMap child [message #871424 is a reply to message #871338] Sun, 13 May 2012 11:58 Go to previous messageGo to next message
Eclipse UserFriend
Tamar,

in addition to what Ed said: could you please try a newer version (CDO
4.0 or 4.1M7 which are part of 3.7 or 3.8M7, respectively). The 3.0
branch is already out of maintenance.

Cheers,
Stefan



Am 12.05.12 09:57, schrieb Ed Merks:
> Tamar,
>
> Eike is having hardware problems and likely to be slow in responding
> until that's fixed. If you could build a self-contained test case and
> open a bugzilla, he could try it out to reproduce the problem.
>
>
> On 11/05/2012 8:35 PM, Tamar Cohen wrote:
>> We are working with CDO for the first time, taking existing EMF
>> models, classes and xml files, and using CDO to persist them to a
>> database. Our initial setup is going well and many of our models can
>> easily be stored if they are simple.
>>
>> We run into trouble when our models contain an EMap; that is, one of
>> the model classes has a child "properties" which is an EMap<String,
>> String>. When this happens, the CDOStateMachine throws a NPE when
>> iterating through the children in the map; it seems to go off the end
>> of the map.
>>
>> We have confirmed various genmodel settings such as FeatureDelegation
>> = Reflective.
>>
>> We are working on Eclipse 3.6.2 and CDO Model Repository SDK
>> 3.0.0.v20110120-1046 and we are using Net4j mysql connector, if it
>> matters.
>>
>> Has anyone else run into this? What is the solution? How should we
>> expect EMap child values to even be serialized and stored?
>> Thanks for any help you can provide. You will be helping us to explore
>> Mars later this Summer...
>>
>> Tamar
>>
Re: Problem storing EMF CDO model with EMap child [message #871476 is a reply to message #871424] Mon, 14 May 2012 01:06 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I'd also strongly suggest to start working with CDO 4.1 because even 4.0 will be out-of-maintenance next month with the Juno release. Please also note that our downloads page lists the recommended Platform and EMF versions per CDO stream. We know that some users deploy CDO in different combinations but officially that's not covered by our free support here. If you want to write test cases to speed up our analysis/fixes please have a look at our test bed with ~2500 test cases and a number of pre-generated test models that should cover all imaginable model scenarios.

Cheers
/Eike
Re: Problem storing EMF CDO model with EMap child [message #872185 is a reply to message #871424] Tue, 15 May 2012 11:54 Go to previous messageGo to next message
Eclipse UserFriend
Thank you everybody -- we upgraded to Eclipse 3.7 and a more recent version of CDO and the problem disappeared! We're writing software to support one of the cameras on Curiosity (aka the Mars Science Lab).
Re: Problem storing EMF CDO model with EMap child [message #872191 is a reply to message #872185] Tue, 15 May 2012 12:08 Go to previous message
Eclipse UserFriend
Good that it's resolved. We address hundreds of issues with each release and we just don't have the resources to port them back to more than one maintenance stream.

Please send me pics fro Mars!

Cheers
/Eike
Previous Topic:[CDO] EList concurrent handling and locking
Next Topic:[CDO] Administration tool for CDO?
Goto Forum:
  


Current Time: Wed Jul 02 16:30:21 EDT 2025

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

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

Back to the top