|
Using Oracle/8i
----- Original Message -----
Sent: Thursday, September 11, 2003 1:27
AM
Subject: Re: [castor-dev] A new
ObjectModificationException.
This one time, at band camp, Edward Sumerfield
said:
ES>I have finally found the actual sequence that causes this
ObjectModificationException. Needless to day the dirty flags made no
difference. ES> ES>The following sequence creates the row,
updates the row with no address line and then updates again with a value. The
second update throws an ObjectModificationException down at position (3)
referenced in the original email. ES> ES>If you make the first
update set a value longer than zero then there is no
error. ES> ES>Any ideas? ES>PersonalInfo personalInfo = new
PersonalInfo(); ES>personalInfo.setFirstName("firstName"); ES>personalInfo.setLastName("lastName"); ES>personalInfo.setAddress1("address1"); ES> ES>m_database.begin(); ES>m_database.create(personalInfo); ES>m_database.commit(); ES> ES>personalInfo.setAddress1(""); ES> ES>m_database.begin(); ES>m_database.update(personalInfo); ES>m_database.commit(); ES> ES>personalInfo.setAddress1("address3"); ES> ES>m_database.begin(); ES>m_database.update(personalInfo); ES>m_database.commit(); ES> ES>m_database.close();
Ed,
What
database are you using? I'm wondering if this is an issue where your
database supports the setNull() method for the 'WHERE fId =
?' clause.
Bruce -- perl -e 'print
unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
The
Castor Project http://www.castor.org/
Apache
Geronimo http://incubator.apache.org/projects/geronimo.html
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject
of: unsubscribe
castor-dev
|