You are right. The property in the 6th column was blowing out an 
array within my code. So anytime I tried to sort, it gave me 
the "java.lang.IndexOutOfBoundsException error". I fixed it the problem with
the column and now its working or rather sorting without errors.

thanks guys

On 6/29/05, Rick Herrick <[EMAIL PROTECTED]> wrote:
> I'm absolutely positive that somehow the property you're referencing with
> the sixth column is blowing out an array within your code.  Without the
> code, it's hard to say how, but I've got plenty of tables that have 6 or
> more columns that have no problems.  From the exception, all I can tell is
> that it's during the sort process.  Do you have a custom comparator or
> something?  Although it should probably throw from within the comparator...
> 
> Rick Herrick
> [EMAIL PROTECTED]
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:displaytag-user-
> > [EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
> > Sent: Wednesday, June 29, 2005 6:16 AM
> > To: [email protected]
> > Subject: [displaytag-user] java.lang.IndexOutOfBoundsException error
> >
> > I have 5 <display:columns> statements, everything I add a 6th column,
> > it gives me the error below. Does anyone have an idea why this is?
> >
> > Exception report
> >
> > message
> >
> > description The server encountered an internal error () that prevented
> > it from fulfilling this request.
> >
> > exception
> >
> > org.apache.jasper.JasperException: Index: 5, Size: 0
> >       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrappe
> > r.java:372)
> >       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> > 292)
> >       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> >       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> > root cause
> >
> > java.lang.IndexOutOfBoundsException: Index: 5, Size: 0
> >       java.util.ArrayList.RangeCheck(ArrayList.java:507)
> >       java.util.ArrayList.get(ArrayList.java:324)
> >       org.displaytag.model.RowSorter.compare(RowSorter.java:93)
> >       java.util.Arrays.mergeSort(Arrays.java:1278)
> >       java.util.Arrays.mergeSort(Arrays.java:1290)
> >       java.util.Arrays.mergeSort(Arrays.java:1289)
> >       java.util.Arrays.sort(Arrays.java:1219)
> >       java.util.Collections.sort(Collections.java:155)
> >       org.displaytag.model.TableModel.sortRowList(TableModel.java:349)
> >       org.displaytag.model.TableModel.sortPageList(TableModel.java:371)
> >       org.displaytag.tags.TableTag.doEndTag(TableTag.java:1028)
> >       org.apache.jsp.test_jsp._jspService(test_jsp.java:211)
> >       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
> >       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >       org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrappe
> > r.java:324)
> >       org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:
> > 292)
> >       org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
> >       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >
> >
> > -------------------------------------------------------
> > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> > from IBM. Find simple to follow Roadmaps, straightforward articles,
> > informative Webcasts and more! Get everything you need to get up to
> > speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=ick
> > _______________________________________________
> > displaytag-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/displaytag-user
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opclick
> _______________________________________________
> displaytag-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to