[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: the evils of multithreading
>> The following exception (or something like it) will be thrown
>> at mic.doSomething() and entered into the Ozone log --
>>
>> Transaction: ta(117): uncaught exception: (org.ozoneDB.ObjectNotFoundExc:
No
>> such object ID: 129)
>
>This exception appears because the importantMethod is not marked as
/*update*/
>although it changes the object state by setting the mic variable. If you
>correctly mark this method as update method then all other threads will be
>blocked and wait until the first thread has completed its work - and no
>exception will occur.
The importantMethod was marked as /*update*/ in the interface that the class
in question was implementing. Does it have to be marked as /*update*/ in the
implementing class also?
Reason
http://www.exratio.com/