struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Røsdal (JIRA) <j...@apache.org>
Subject [jira] Updated: (STR-3145) ArrayIndexOutOfBoundsException from logic:iterate tag?
Date Wed, 14 May 2008 20:49:05 GMT

     [ https://issues.apache.org/struts/browse/STR-3145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andreas Røsdal updated STR-3145:
--------------------------------

    Attachment: seasontable.jsp

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.


Mime
View raw message