"scope" was a really good hint!!!
I solved my problem now... thanks a lot!

The problem was, that I had the object I wanted to delete in two
transactions at the same time. I now closed one of those and it works.

Isn`t it possible to have one object in two transactions? Is there any
way?
It would be really usefull for me, if this could be realized: I want to
have one transaction over the whole application for the lazy loading and
another for my delete-, update- and insert-functions.
Can I use the "shared"-Field in org.exolab.castor.jdo.Database
therefore?

With greetings! Tatjana


>>-----Urspr�ngliche Nachricht-----
>>Von: Bruce Snyder [mailto:[EMAIL PROTECTED]
>>Gesendet: Donnerstag, 12. Juni 2003 21:39
>>An: [EMAIL PROTECTED]
>>Betreff: Re: [castor-dev] LockNotGrantedException persist.writeTimeout
>>
>>This one time, at band camp, Tatjana Manych said:
>>
>>TM>When I try to delete an object I get the following Exception...
>>TM>
>>TM>Caused by: org.exolab.castor.jdo.LockNotGrantedException:
>>TM>persist.writeTimeout ...
>>TM>
>>TM>What does that mean?
>>TM>The way I try to delete the object is:
>>TM>I have an opened transaction, and call a delete-func with the id of
the
>>TM>object to be deleted (as parameter).
>>TM>In this delete function I then load the object I want to delete and
>>TM>afterwards call remove for the just loaded object.
>>TM>
>>TM>Has anybody an idea what I do wrong?!?
>>TM>
>>TM>Update and insert works fine, so it can not be the mapping or
something
>>TM>like this.
>>
>>I may be wrong, but this sounds like it might be a scoping problem
with
>>regard to the transactions. Please post the relevant portions of code.
>>
>>Bruce
>>--
>>perl -e 'print unpack("u30","<0G)[EMAIL PROTECTED]&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

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

Reply via email to