RE: Strange EOF exception
RE: Strange EOF exception
- Subject: RE: Strange EOF exception
- From: "Pierre Bernard" <email@hidden>
- Date: Thu, 22 Jan 2004 16:49:30 +0100
- Thread-topic: Strange EOF exception
I was just about to write a bug report about this. Well, I will within the next few days...
I am seeing this if after saving an object failed over a validation error I attempt to delete the offinding object. A colleage has written a test case I still have to look into. It appears that the bug cannot be reproduced on a WebObjects 5.1.3 machine.
I'd be glad to have more information about this. Let's hope someone at Apple will feel this is worth a quick fix. Such unexpected crashes are no good ... at all.
Pierre
-----Original Message-----
From: Ben Ketteridge [mailto:email@hidden]
Sent: Thursday, January 22, 2004 4:38 PM
To: WebObjects Developers; Apple WO Dev
Subject: Strange EOF exception
How many times have we had that subject :(
Using WO5.2.2, JDK 1.4.1 on Win2K/XP we are getting this exception:
java.lang.NullPointerException
at
com.webobjects.eocontrol.EOEditingContext._setRecordIsInitialized(EOEditingContext.java:2592)
at
com.webobjects.eocontrol.EOEditingContext._clearOriginalSnapshotAndInitializeRec(EOEditingContext.java:2584)
at
com.webobjects.eocontrol.EOEditingContext.didSaveChanges(EOEditingContext.java:3000)
at
com.webobjects.eocontrol.EOEditingContext.saveChanges(EOEditingContext.java:3156)
at SCMiEditingContext.saveChanges(SCMiEditingContext.java:23)
at Message.commit(Message.java:466)
Does anyone have any idea how this might be caused?
In case it's relevant, SCMiEditingContext inherits from EOEditingContext and
does nothing more than override saveChanges, thus:
public void saveChanges( ) {
try {
super.saveChanges( );
} catch ( EOGeneralAdaptorException egae ) {
CoreLogger.println( "++++ SCMiEditingContext.saveChanges( ): caught
EOGeneralAdaptorException " + egae );
egae.printStackTrace( );
TransactionManagement.checkForContention( egae );
// We don't know what caused this exception, propagate up to client.
throw egae;
}
}
--
Kind Regards
Ben.
Dr Ben Ketteridge
email@hidden
Team Leader,
ProAct International,
PO Box 100, Denbigh, UK.
Tel: 01745 817161 ext. 322
_______________________________________________
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.
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
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.