求助,castor的問題

yye_jdon發表於2003-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,其餘相同的環境下沒有問題,請教如何解決?

相關文章