Re: Weird saveChanges() error
Re: Weird saveChanges() error
- Subject: Re: Weird saveChanges() error
- From: Brendan Duddridge <email@hidden>
- Date: Thu, 20 Nov 2003 11:38:45 -0700
I haven't seen the error in a little while. I don't use child editing
contexts at all in my application, but I do use peer editing contexts,
especially for WOLongResponsePages. But when I've received this error, it
has not been from a WOLongResponsePage. If the error happens again, I'll
investigate further to see if it's caused by some sort of locking problem.
Thanks,
___________________________
Brendan Duddridge
ClickSpace Interactive Inc.
Calgary & Vancouver, Canada
(403) 277-5591
http://www.clickspace.com
> From: Kaj Hejer <email@hidden>
> Date: Thu, 20 Nov 2003 19:31:59 +0100
> To: Jean Pierre Malrieu <email@hidden>, Brendan Duddridge
> <email@hidden>
> Cc: <email@hidden>
> Subject: Re: Weird saveChanges() error
>
> Just fyi:
>
> I see the exact same stacktrace on WO5.2.2 on osx:
>
> java.lang.NullPointerException
> at
> com.webobjects.eocontrol.EOEditingContext._setRecordIsInitialized(EOEditingCon
> text.java:2592)
> at
> com.webobjects.eocontrol.EOEditingContext._clearOriginalSnapshotAndInitializeR
> ec(EOEditingContext.java:2584)
> at
> com.webobjects.eocontrol.EOEditingContext.didSaveChanges(EOEditingContext.java
> :3000)
> at
> com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:31
> 56)
> at NettloggComponent.saveChanges(NettloggComponent.java:209)
> java.lang.NullPointerException
> at
> com.webobjects.eocontrol.EOEditingContext._setRecordIsInitialized(EOEditingCon
> text.java:2592)
> at
> com.webobjects.eocontrol.EOEditingContext._clearOriginalSnapshotAndInitializeR
> ec(EOEditingContext.java:2584)
> at
> com.webobjects.eocontrol.EOEditingContext.didSaveChanges(EOEditingContext.java
> :3000)
> at
> com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:31
> 56)
> at NettloggComponent.saveChanges(NettloggComponent.java:209)
>
> I can't reproduce this issue. It seems to happen at random.
>
> Maybe this is a locking related issue?
>
> The ec we use here is a childEC of the session.defaultEditingContext
> and in this application we still havn't implemented locking of this
> childEC (we are running it under WO5.2.1 in deployment and there we
> havn't seen any probblems with this yet).
>
> To the other ppl here on this list who have seen this stacktrace: are
> the ec you use here locked?
>
>
> -Kaj :)
>
>
>
> At 16:05 +0100 07-11-03, Jean Pierre Malrieu wrote:
>> Le 7 nov. 03, ` 00:41, Brendan Duddridge a icrit :
>>
>>> Hi Jean Pierre,
>>>
>>> I'm starting to see that in my error logs too, but unfortunately I don't
>>> know why it's happening yet. After that error, the editing context seems to
>>> get hosed.
>>
>> I understand what tou mean buy "hosed" now that I have played with
>> the editing context a bit more: it's unusable!
>> It's therefore rather difficult to recover from that exception...
>>
>> Looks like a very nasty EOF bug introduced by 5.2.2 (although I
>> can't be absolutelly sure about it). There seems to be really weird
>> things happening with to-many relationships in EOF since 5.2.2.
>>
>> I am not sure everybody should upgrade their deployment machine to
>> Panther. I wish I didn't.
>>
>> JP.
>>
>>>
>>> Has anyone else experienced this error? Here's our output:
>>>
>>> java.lang.NullPointerExceptionjava.lang.NullPointerException
>>> at
>>> com.webobjects.eocontrol.EOEditingContext._setRecordIsInitialized(EOEditingC
>>> ontext.java:2592)
>>> at
>>> com.webobjects.eocontrol.EOEditingContext._clearOriginalSnapshotAndInitializ
>>> eRec(EOEditingContext.java:2584)
>>> at
>>> com.webobjects.eocontrol.EOEditingContext.didSaveChanges(EOEditingContext.ja
>>> va:3000)
>>> at
>>> com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:
>>> 3156)
>>> at StandardTmplEditPage.saveMessage(StandardTmplEditPage.java:158)
>>> at StandardTmplEditPage.save(StandardTmplEditPage.java:150)
>>>
>>> ___________________________
>>>
>>> Brendan Duddridge
>>>
>>> ClickSpace Interactive Inc.
>>> Calgary & Vancouver, Canada
>>> (403) 277-5591
>>> http://www.clickspace.com
>>>
>>>> Message: 13
>>>> To: email@hidden
>>>> From: Jean Pierre Malrieu <email@hidden>
>>>> Subject: Weird saveChanges() error
>>>> Date: Wed, 5 Nov 2003 22:01:52 +0100
>>>>
>>>> Panther, WO 5.2.2.
>>>>
>>>> I have a many-to-many relationship between entity A and B
>>>> (A<<-->C<-->>B)
>>>> The join entity C has its own primary key and two foreign keys. The
>>>> many-to-many is not flattened.
>>>>
>>>> Here is what I am doing:
>>>> 1/ remove existing relationships from object a and object b (calling
>>>> twice removeObjectFromBothsidesOfRelationshipWithKey on join object c)
>>>> 2/ delete join object c
>>>> 3/ save my changes
>>>> 4/ delete object b
>>>> 5/ save my changes
>>>>
>>>> Everything works alright.
>>>>
>>>> But If I do:
>>>> 1/ remove existing relationships from object a and object b (calling
>>>> twice removeObjectFromBothsidesOfRelationshipWithKey on join object c)
>>>> 2/ delete join object c
>>>> 3/ delete object b
>>>> 4/ save changes
>>>>
>>>> I receive the following exception:
>>>>
>>>> [2003-11-05 21:34:30 CET] <WorkerThread12>
>>>> java.lang.NullPointerException
>>>> at
>>>> com.webobjects.eocontrol.EOEditingContext._setRecordIsInitialized(EOEdit
>>>> ingContext.java:2592)
>>>> at
>>>> com.webobjects.eocontrol.EOEditingContext._clearOriginalSnapshotAndIniti
>>>> alizeRec(EOEditingContext.java:2584)
>>>> at
>>>> com.webobjects.eocontrol.EOEditingContext.didSaveChanges(EOEditingContex
>>>> t.java:3000)
>>>> at
>>>> com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.j
>>>> ava:3156)
>>>> at DocDisplayGroup.saveChanges(DocDisplayGroup.java:352)
>>>>
>>>> any Ideas?
>>>>
>>>> Thanks.
>>>>
>>>> JP.
>> _______________________________________________
>> webobjects-dev mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
>> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.