Hi,
When I carry out the sequence of following operation with the version of Castor
0.9.4.1 I do not have a problem !
db.begin();
thequery = createSelect(db...);
result = thequery.execute();
while (results.hasMore()) { ... }
thequery.close();
db.rollback();
db.close();
But when this sequence of operation is carried out with version 0.9.4.3 I have a
crash. The values returned by Query are correct. It is at the time of the rollback()
that the crash occurs.
I did not change anything in the code between the two versions. This one was simply
Re-compiled
The Crash message :
Castor: Storing com.eurocontrol.ead.SdoRwyDirection (2147166)
org.exolab.castor.jdo.DataObjectAccessException: no method to set value for fiel
d: com.eurocontrol.ead.SdoRwy in class: ClassMolder com.eurocontrol.ead.SdoRwyM
at org.exolab.castor.persist.FieldMolder.setValue(FieldMolder.java:321)
at org.exolab.castor.persist.ClassMolder.revertObject(ClassMolder.java:2
482)
at org.exolab.castor.persist.LockEngine.revertObject(LockEngine.java:860
)
at org.exolab.castor.persist.TransactionContext.rollback(TransactionCont
ext.java:1722)
at org.exolab.castor.jdo.engine.DatabaseImpl.commit(DatabaseImpl.java:53
1)
at com.eurocontrol.ead.client.runJ2jClient.executeUpload(runJ2jClient.ja
va:565)
at com.eurocontrol.ead.client.runJ2jClient.run(runJ2jClient.java:115)
at com.eurocontrol.ead.client.J2jClient.main(J2jClient.java:109)
org.exolab.castor.jdo.DataObjectAccessException: no method to set value for fiel
d: com.eurocontrol.ead.SdoRwy in class: ClassMolder com.eurocontrol.ead.SdoAdHpM
at org.exolab.castor.persist.FieldMolder.setValue(FieldMolder.java:321)
at org.exolab.castor.persist.ClassMolder.revertObject(ClassMolder.java:2
482)
at org.exolab.castor.persist.LockEngine.revertObject(LockEngine.java:860
)
at org.exolab.castor.persist.TransactionContext.rollback(TransactionCont
ext.java:1722)
at org.exolab.castor.jdo.engine.DatabaseImpl.commit(DatabaseImpl.java:53
1)
at com.eurocontrol.ead.client.runJ2jClient.executeUpload(runJ2jClient.ja
va:565)
at com.eurocontrol.ead.client.runJ2jClient.run(runJ2jClient.java:115)
at com.eurocontrol.ead.client.J2jClient.main(J2jClient.java:109)
Error : Transaction aborted: Object of type com.eurocontrol.ead.SdoRwyDirection
with identity 2,147,166 has been modified by a concurrent transaction (cache ent
ry is different from database row)
Regards,
Serge
____
This message and any files transmitted with it are legally privileged and intended for
the sole use of the individual(s) or entity to whom they are addressed. If you are not
the intended recipient, please notify the sender by reply and delete the message and
any attachments from your system. Any unauthorised use or disclosure of the content of
this message is strictly prohibited and may be unlawful.
Nothing in this e-mail message amounts to a contractual or legal commitment on the
part of EUROCONTROL unless it is confirmed by appropriately signed hard copy.
Any views expressed in this message are those of the sender.
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev