struts-issues mailing list archives

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

                 Key: STR-3145
             Project: Struts 1
          Issue Type: Bug
    Affects Versions: 1.2.7
         Environment: Java 1.4.2, 64 bit JVM, 
Resin 2.1.17
            Reporter: Andreas Røsdal
         Attachments: seasontable.jsp


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:

         at com.caucho.util.CharBuffer.append(
         at com.caucho.jsp.QBodyContent.getString(
         at org.apache.struts.taglib.logic.IterateTag.doAfterBody(
         at _template._ver1_22d0._stats._seasontable__rha__jsp._jspService(
         at com.caucho.jsp.JavaPage.service(

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.

View raw message