Re: Weird saveChanges() error
Re: Weird saveChanges() error
- Subject: Re: Weird saveChanges() error
- From: Jean Pierre Malrieu <email@hidden>
- Date: Fri, 7 Nov 2003 13:29:17 +0100
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.
Sorry, I don't understand the word "hosed"... (my english is limited)
As far as I can tell (I have done some changes since I moved to 5.2.2),
this error does not happen in 5.2.1.
Is this a 5.2.2 bug?
Can you confirm that in your case, the save transaction is committed to
the database?
It seems to happen after the save operation.
Jean Pierre.
Has anyone else experienced this error? Here's our output:
java.lang.NullPointerExceptionjava.lang.NullPointerException
at
com.webobjects.eocontrol.EOEditingContext._setRecordIsInitialized(EOEdi
tingC
ontext.java:2592)
at
com.webobjects.eocontrol.EOEditingContext._clearOriginalSnapshotAndInit
ializ
eRec(EOEditingContext.java:2584)
at
com.webobjects.eocontrol.EOEditingContext.didSaveChanges(EOEditingConte
xt.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(EOEd
it
ingContext.java:2592)
at
com.webobjects.eocontrol.EOEditingContext._clearOriginalSnapshotAndIni
ti
alizeRec(EOEditingContext.java:2584)
at
com.webobjects.eocontrol.EOEditingContext.didSaveChanges(EOEditingCont
ex
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.