You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Andreas Røsdal (JIRA)" <ji...@apache.org> on 2008/05/14 22:51:05 UTC
[jira] Issue Comment Edited: (STR-3145)
ArrayIndexOutOfBoundsException from logic:iterate tag?
[ https://issues.apache.org/struts/browse/STR-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43847#action_43847 ]
andreasr edited comment on STR-3145 at 5/14/08 1:49 PM:
--------------------------------------------------------------
See the attached JSP seasontable.jsp page which causes the Exception from a logic:iterate tag.
was (Author: andreasr):
This is the JSP page which causes the Exception from a logic:iterate tag.
> ArrayIndexOutOfBoundsException from logic:iterate tag?
> ------------------------------------------------------
>
> Key: STR-3145
> URL: https://issues.apache.org/struts/browse/STR-3145
> Project: Struts 1
> Issue Type: Bug
> Affects Versions: 1.2.7
> Environment: Java 1.4.2, 64 bit JVM,
> Linux
> Resin 2.1.17
> Reporter: Andreas Røsdal
> Attachments: seasontable.jsp
>
>
> Hi,
> I'm getting an ArrayIndexOutOfBoundsException in com.caucho.util.CharBuffer
> using Resin 2.1.17. I think the problem occurs in one particular JSP page
> which uses the Struts logic:iterate tag libary, which causes the Exception
> in Resin. Has anyone got any advice about how to solve this problem?
> Here is the relevant part of the stacktrace from Java:
> java.lang.ArrayIndexOutOfBoundsException
> at com.caucho.util.CharBuffer.append(CharBuffer.java:318)
> at com.caucho.jsp.QBodyContent.getString(QBodyContent.java:520)
> at org.apache.struts.taglib.logic.IterateTag.doAfterBody(IterateTag.java:415)
> at _template._ver1_22d0._stats._seasontable__rha__jsp._jspService(_seasontable__rha__jsp.java:576)
> at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
> This is the append method in the CharBuffer class:
> /**
> * Appends the characters to the buffer.
> */
> public CharBuffer append(char []buffer, int offset, int length)
> {
> if (this.length + length > this.capacity)
> ensureCapacity(this.length + length);
> System.arraycopy(buffer, offset, this.buffer, this.length, length);
> this.length += length;
> return this;
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.