I should add that I am using a timestamp on this database entry, and
that with 0.9.4.2 it now says:
Exception in thread "main"
org.exolab.castor.jdo.ObjectModifiedException: Transaction aborted:
Object of type at.oegam.pge.domain.sekurit.UserInfoDO with identity
1.002 has been modified by a concurrent transaction (cache entry is
different from database row)
this is probably because of the auto value of the timestamp column, but
I can't imagine as it only get's set, when a change operation is
executed. (so when data is changed, not when it is queried ) ?!!
thanks
--Jakob
Am Fre, 2003-02-07 um 15.25 schrieb Jakob Praher:
> hi all,
> (especially Bruce, who helped me once or more times in the past ;-))
>
> it's been a while since I post my last message on this forum (probably
> not a bad sign ;-)) - serious : kudos to all.
>
> I am on a jdo project again, and have the following scenario (running
> test cases)
>
> I create a Database in the TestMain, call begin( ) and hand this
> Database instance to a TestCase.
> In the TestCase I use the *same* Database instance and execute a Query
> (with AccessMode Shared), but I don't change the objects at all, just
> check that the ascending mode for timestamp is correct.
>
> everything works fine until the Thread returns to the TestMain again,
> where I call the db.commit( ) to commit changes. Suddenly I get a
>
> ..... as been modified by a concurrent transaction
> at
> org.exolab.castor.jdo.engine.SQLEngine.store(SQLEngine.java:867)
> at
> org.exolab.castor.persist.ClassMolder.store(ClassMolder.java:1584)
> at
> org.exolab.castor.persist.LockEngine.store(LockEngine.java:758)
>
> exception.
>
> I could circumvent it by setting the AccessMode to ReadOnly, but somehow
> it worries me that this happens, even if the Database is the same
> instance, and there exist just one call to begin() and commit( ) - so
> where does that "concurrent transaction" come from?
>
> I am using castor-0.9.4.1.jar (allthough currently downloadin 4.2 ;-))
>
>
> thank you very much
>
> -- Jakob
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev