Hi Bruce,
We have filed the BUG report at Bugzilla. [ Bugzilla BUG ID : 1127 ]
I have enclosed the output both in case of LAZY LOADING set to true as well as false.
WITH LAZY LOADING set to TRUE
Exception Thread no method to set value for field: Doctor in class: ClassMolder
Department
java.lang.IllegalStateException: Transaction
org.exolab.castor.jdo.engine.TransactionContextImpl@a084f8 does not hold the read lock:
Doctor/2/0 -/-!
at org.exolab.castor.persist.LockEngine$TypeInfo.assure(Unknown Source)
at org.exolab.castor.persist.LockEngine$TypeInfo.access$500(Unknown Sour
ce)
at org.exolab.castor.persist.LockEngine.revertObject(Unknown Source)
at org.exolab.castor.persist.TransactionContext.rollback(Unknown Source)
at org.exolab.castor.jdo.engine.DatabaseImpl.close(Unknown Source)
at Test$OurThread.run(Test.java:141)
java.lang.IllegalStateException: Transaction
org.exolab.castor.jdo.engine.TransactionContextImpl@a084f8 does not hold the read lock:
Department/1/5 -/-!
at org.exolab.castor.persist.LockEngine$TypeInfo.assure(Unknown Source)
at org.exolab.castor.persist.LockEngine$TypeInfo.access$500(Unknown Sour
ce)
at org.exolab.castor.persist.LockEngine.revertObject(Unknown Source)
at org.exolab.castor.persist.TransactionContext.rollback(Unknown Source)
at org.exolab.castor.jdo.engine.DatabaseImpl.close(Unknown Source)
at Test$OurThread.run(Test.java:141)
WITH LAZY LOADING set to FALSE
Loaded Doc6 (22)
Loaded Doc5 (841)
Loaded Doc3 (454)
Loaded Doc2 (433)
Loaded Doc4 (633)
Committing Thread[Thread-3,5,main]
Committing Thread[Thread-4,5,main]
Committing Thread[Thread-1,5,main]
Committing Thread[Thread-2,5,main]
Committing Thread[Thread-5,5,main]
Exception Thread Nested error: org.exolab.castor.jdo.LockNotGrantedException:
persist.deadlock
Exception Thread Nested error: org.exolab.castor.jdo.LockNotGrantedException:
persist.deadlock
Exception Thread Nested error: org.exolab.castor.jdo.LockNotGrantedException:
persist.deadlock
Exception Thread Nested error: org.exolab.castor.jdo.LockNotGrantedException:
persist.deadlock
Successfully updated Doc5 (506)
Regards,
Arijit
Bruce Snyder wrote:
> This one time, at band camp, Arijit Ghosh said:
>
> AG> My heartiest CONGRATULATIONS to both you and your wife!!
>
> Thanks Arjit!
>
> AG> Coming back to the problem.....
> AG> You must have seen that there has been another posting by Peter Brown who
>is
> AG>also facing the exact problem.
> AG>
> AG> Peter, we did try to rip off the Castor code and customize it, but have not
>been
> AG>successful. Any luck ?
> AG>
> AG> Bruce, can you please look into this issue ? We have been stuck with this for
> AG>quite some time.
> AG>
> AG> Do you want me to send you the code and the corresponding mapping file that we
> AG>are using ?
>
> No, I've seen your mapping and your explanations outline quite
> clearly the situation. I'll need to write a test for this to prove
> the problem and to try to find a solution.
>
> AG> Its a simple (few lines of code) program using threads to force the 2 Doctors
> AG>(belonging to the same department) in accessing that single Department
> AG>simultaneously.
> AG>
> AG> Did you simulate this kind of an environment ? We tried all kind of
>combinations
> AG>including lazy loading.
>
> What were your results with lazy loading?
>
> I'll try to work on this over this weekend. Please file a report
> with all the details in Bugzilla (http://bugzilla.exolab.org/).
> This will make examining all the details easier and it will serve
> as a record of the problem.
>
> Bruce
> --
>
> perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
--
ARIJIT GHOSH
Software Engineer
SOFTEX Group
TECHNOPARK, TVM
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev