I did actually debug quite a lot, but wanted to see if this is a usual
mistake or should I dig deeper.
In HolderInInterceptor, this part of code

            for (MessagePartInfo part : parts) {
                if (part.getIndex() != 0 && part.getTypeClass() != null) {
                    Holder holder = (Holder)outHolders.get(part.getIndex() -
1);
                    holder.value = inObjects.get(part);
                    inObjects.put(part, holder);
                }
            }

the code calls outHolders.get(part.getIndex() - 1), but when calling
inObjects.get(part) on the next line it goes to this method in
MessageContentsList :
    public Object get(MessagePartInfo key) {
        Object o = super.get(key.getIndex());
        return o == REMOVED_MARKER ? null : o;
    }

where it calls super.get(key.getIndex()),so when the index is 8 in a list of
size 8, I get this exception. (note the -1 at first, and nothing in the
latter method, although both are of type list)
Previously when I configured the bus & client in java I hadn't this problem,
but now I'm doing it through Spring xml files and I guess I've left
something out.

Iman

On Fri, Aug 8, 2008 at 3:18 AM, Glen Mazza <[EMAIL PROTECTED]> wrote:

>
>
> Iman Rahmatizadeh wrote:
> >
> > I have the following exception when calling a service :
> >
> > java.lang.IndexOutOfBoundsException: Index: 8, Size: 8
> >
> > at java.util.ArrayList.RangeCheck(ArrayList.java:547)
> > at java.util.ArrayList.get(ArrayList.java:322)
> >
>
> You might want to debug CXF to find out what the problem is (although
> hopefully someone can tell you the problem without you needing to do
> that--still, debugging is not that difficult):
>
> http://www.jroller.com/gmazza/date/20071212
>
> Glen
>
> --
> View this message in context:
> http://www.nabble.com/IndexOutOfBoundsException-in-MessageContentsList-tp18866047p18882266.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
>

Reply via email to