求助,castor的问题

yye_jdon 03-08-05

我在castor中创建或者修改对象,当commit的时候,有时会出现如下错误:
org.exolab.castor.jdo.ObjectModifiedException: Transaction aborted: Object of type com.prosten.bill.model.User with identity 11 has been modified by a concurrent transaction
at org.exolab.castor.jdo.engine.SQLEngine.store(Unknown Source)
at org.exolab.castor.persist.ClassMolder.store(Unknown Source)
at org.exolab.castor.persist.LockEngine.store(Unknown Source)
at org.exolab.castor.persist.TransactionContext.prepare(Unknown Source)
at org.exolab.castor.jdo.engine.DatabaseImpl.commit(Unknown Source)
可是只是有时,而且当我返回上一页,再提交时,就可以了
环境:tomcat4.0.6+castor0.9.3+oracle9i+Solaris5.8
而且同样的程序原来在sybase,其余相同的环境下没有问题,请教如何解决?