[ http://issues.apache.org/jira/browse/SANDESHA2-46?page=all ]

Matt Lovett resolved SANDESHA2-46.
----------------------------------

    Resolution: Fixed

> ArrayIndexOutofBounds in the Invoker
> ------------------------------------
>
>                 Key: SANDESHA2-46
>                 URL: http://issues.apache.org/jira/browse/SANDESHA2-46
>             Project: Apache Sandesha2
>          Issue Type: Bug
>            Reporter: Andrew Gatford
>            Priority: Trivial
>         Attachments: ArrayIndexInvoker.patch
>
>
> The following block of code causes an ArrayIndexOutOfBoundsException when the 
> allSequencesList.remove is called with size set to the size of the sequence 
> list
>                               int size = allSequencesList.size();
>                               log.debug("Choosing one from " + size + " 
> sequences");
>                               if(nextIndex >= size) {
>                                       nextIndex = 0;
>                                       if (size == 0) continue;
>                               }
>                               String sequenceId = (String) 
> allSequencesList.get(nextIndex++);
>                               log.debug("Chose sequence " + sequenceId);
>                               NextMsgBean nextMsgBean = 
> nextMsgMgr.retrieve(sequenceId);
>                               if (nextMsgBean == null) {
>                                       String message = "Next message not set 
> correctly. Removing invalid entry.";
>                                       log.debug(message);
>       
>                                       allSequencesList.remove(size);
> allSequencesList.remove() Should be using the nextIndex key to remove the 
> right element from the list.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to