Sorry, I forgot to add the context of my operations. All I was doing was
trying to use db.load to load the object.
And I actually managed to fix this. All I had to do was stick an (s) on
the end of the functions. So instead of addObject() I have addObjects().
Some kind of error message relating to this would have been helpful
besides a read lock error, or no error at all would have been nice too.
=D
And I was sure it was those two functions because if I commented them
out the object would load fine.
Thanks for your reply though, and everything is working fine! :)
-Nick
On Wed, 2003-10-29 at 12:00, Stein M. Eliassen wrote:
> Nick Stuart wrote:
> > If I have a set of add/remove functions (as well as regular set/get
> > methods for the vector) for a child of an object I get the following
> > error.
> > -----
> > java.lang.IllegalStateException: Transaction
> > [EMAIL PROTECTED] does not
> hold
> > the read lock: com.vort.vortSizer.beans.UserInfoBean/nick/0 -/-!
> > -----
> >
> > By changing nothing else in the code and removing the add/remove
> > functions the error goes away. Any ideas on how to solve this?
> >
>
> Are you sure the remove-method makes a difference?
>
> Nice if you can explain what you are trying to do, when the exception
> occur etc.
>
> Also give relevant excerpt from the mapping-file.
>
> Stein
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
--
Vortechnics Inc.
200 Enterprise Drive
Scarborough, Maine 04074
Phone: 207-885-9830 x281
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev