Hi all,

I have been developing an application for some time now and today I tried to
change some many-relations
to use lazy="true" in the mapping.xml file which of course resulted in a
much better performance.
In one place though the application tries to do a delete on (lazy)related
objects and then I get the exception:

java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
        at java.util.ArrayList.RangeCheck(ArrayList.java:508)
        at java.util.ArrayList.get(ArrayList.java:320)
        at
org.exolab.castor.persist.RelationCollection$IteratorImp.next(Unknown
Source)
        at org.exolab.castor.persist.ClassMolder.markDelete(Unknown Source)
        at org.exolab.castor.persist.LockEngine.markDelete(Unknown Source)
        at org.exolab.castor.persist.TransactionContext.delete(Unknown
Source)
        at org.exolab.castor.jdo.engine.DatabaseImpl.remove(Unknown Source)
        ......

If I change back to non-lazy loading it works fine. What have I missed.
There is not so much information
about lazy-loading on the site so I thought I try here.

Regards
Mattias Bogeblad

_______________________________________________________________ 
Mattias Bogeblad  |  PH: +46 31 799 01 16  |  MOB: +46 702 80 05 05
SPRAWL SOLUTIONS AB 
FABRIKSGATAN 7 
412 50 G�TEBORG 
FAX: +46 31 799 00 10 
_______________________________________________________________ 


<<attachment: winmail.dat>>

Reply via email to