hi.

not sure why that would've happened, but based on the error message:

"no method to set value for field: com.eurocontrol.ead.SdoRwy in class: ClassMolder com.eurocontrol.ead.SdoRwyM"

here are some ideas to explore:

1. double check that the class "SdoRwyM" has the method "setSdoRwy(<type> x)"
defined (where <type> is the same type as the "SdoRwy" field.
2. perhaps the set method for the field "SdoRwy" needs to be explicity declared in
the mapping.xml file for some reason.


although you haven't changed anything since castor 0.9.4.1, something may have changed in castor 0.9.4.3 and the above are ways that you may be able to solve the issue application-side (as opposed to castor-side).

here are some other general questions:

1. have you tried using the castor-0.9.4.3.jar from the castor website as is (no recompiling).
2. what source version are you using? the official 0.9.4.3 release source or from cvs?
if cvs, what date?



hope this helps...





At 10:25 03/03/12 +0100, you wrote:
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




____

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

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




Reply via email to