You are viewing a plain text version of this content. The canonical link for it is here.
Posted to sandesha-dev@ws.apache.org by "Andrew Gatford (JIRA)" <ji...@apache.org> on 2006/11/22 10:46:03 UTC
[jira] Updated: (SANDESHA2-46) ArrayIndexOutofBounds in the Invoker
[ http://issues.apache.org/jira/browse/SANDESHA2-46?page=all ]
Andrew Gatford updated SANDESHA2-46:
------------------------------------
Attachment: ArrayIndexInvoker.patch
> 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: sandesha-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: sandesha-dev-help@ws.apache.org