Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Nullpointer in FeatureChangeImpl when saving ChangeDescription with Teneo
Nullpointer in FeatureChangeImpl when saving ChangeDescription with Teneo [message #419961] Sat, 14 June 2008 19:39 Go to next message
Eclipse UserFriend
Originally posted by: wesendon.in.tum.de

This is a multi-part message in MIME format.
--------------090704060809080002080408
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi guys,

i get a NullPointer in the FeatureChangeImpl when saving a
ChangeDescription (from ChangeRecorder) with Teneo into a database. It
seems that the variable feature in FeatureChangeImpl is null, but I
can't draw a conclusion from this, so here I am. Do you have any ideas
or hints to solve this? Stacktrace is attached. Let me know if you need
more information.

Greetings,
Otto



--------------090704060809080002080408
Content-Type: text/plain;
name="stacktrace.txt"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="stacktrace.txt"

b3JnLnVuaWNhc2UuZW1mc3RvcmUuZXhjZXB0aW9ucy5EYXRhQmFzZUV4Y2Vw dGlvbjogQ291
bGRuJ3Qgc2F2ZSBkYXRhIGluIGRhdGFiYXNlLg0KCWF0IG9yZy51bmljYXNl LmVtZnN0b3Jl
LkVtZlN0b3JlSW1wbC5zYXZlKEVtZlN0b3JlSW1wbC5qYXZhOjI3MykNCglh dCBvcmcudW5p
Y2FzZS5lbWZzdG9yZS5FbWZTdG9yZUltcGwuY3JlYXRlVmVyc2lvbihFbWZT dG9yZUltcGwu
amF2YTo5MykNCglhdCBvcmcudW5pY2FzZS5lbWZzdG9yZS5jb25uZWN0aW9u LnJtaS5STUlF
bWZTdG9yZUZhY2FkZUltcGwuY3JlYXRlVmVyc2lvbihSTUlFbWZTdG9yZUZh Y2FkZUltcGwu
amF2YTo0OSkNCglhdCBzdW4ucmVmbGVjdC5OYXRpdmVNZXRob2RBY2Nlc3Nv ckltcGwuaW52
b2tlMChOYXRpdmUgTWV0aG9kKQ0KCWF0IHN1bi5yZWZsZWN0L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Qgb3JnLnVuaWNhc2Uu ZW1mc3RvcmUu
ZXNtb2RlbC5pbXBsLlNlcnZlclNwYWNlSW1wbC5zYXZlKFNlcnZlclNwYWNl SW1wbC5qYXZh
OjI3NCkNCglhdCBvcmcudW5pY2FzZS5lbWZzdG9yZS5FbWZTdG9yZUltcGwu c2F2ZShFbWZT
dG9yZUltcGwuamF2YToyNjkpDQoJLi4uIDE2IG1vcmU=
--------------090704060809080002080408--
Re: Nullpointer in FeatureChangeImpl when saving ChangeDescription with Teneo [message #419967 is a reply to message #419961] Sun, 15 June 2008 21:00 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Otto,
I am in the same situation as you (can't really see what/why this happens). Apparently the method
FeatureChangeImpl.getFeature returns null. Can you debug into this method and see what happens?

Did you first read the FeatureChangeImpl from the database and then persist it again? Or is it
freshly created and then persisted? Can you check before saving the resource if the feature is set?

gr. Martin

Otto wrote:
> Hi guys,
>
> i get a NullPointer in the FeatureChangeImpl when saving a
> ChangeDescription (from ChangeRecorder) with Teneo into a database. It
> seems that the variable feature in FeatureChangeImpl is null, but I
> can't draw a conclusion from this, so here I am. Do you have any ideas
> or hints to solve this? Stacktrace is attached. Let me know if you need
> more information.
>
> Greetings,
> Otto
>
>


--

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: Nullpointer in FeatureChangeImpl when saving ChangeDescription with Teneo [message #420166 is a reply to message #419967] Thu, 19 June 2008 22:21 Go to previous message
Eclipse UserFriend
Originally posted by: wesendon.in.tum.de

Hi Martin,

thanks for your quick answer, as I can tell, it's no teneo problem. I
haven't solved the problem yet, but I'm quite sure it's a URI mapping
issue while recording changes on the client resource, serializing it and
sending it to the server.

But the exception (nullpointer) isn't very helpfull in such a case ...

greeting,
Otto

Martin Taal schrieb:
> Hi Otto,
> I am in the same situation as you (can't really see what/why this
> happens). Apparently the method FeatureChangeImpl.getFeature returns
> null. Can you debug into this method and see what happens?
>
> Did you first read the FeatureChangeImpl from the database and then
> persist it again? Or is it freshly created and then persisted? Can you
> check before saving the resource if the feature is set?
>
> gr. Martin
>
> Otto wrote:
>> Hi guys,
>>
>> i get a NullPointer in the FeatureChangeImpl when saving a
>> ChangeDescription (from ChangeRecorder) with Teneo into a database. It
>> seems that the variable feature in FeatureChangeImpl is null, but I
>> can't draw a conclusion from this, so here I am. Do you have any ideas
>> or hints to solve this? Stacktrace is attached. Let me know if you
>> need more information.
>>
>> Greetings,
>> Otto
>>
>>
>
>
Previous Topic:usage of dataTypeConverters
Next Topic:How to directly get one kind of children with EMF built-in AdapterFactoryContentProvider?
Goto Forum:
  


Current Time: Thu Apr 25 20:55:43 GMT 2024

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

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

Back to the top