This document was generated from CDN thread
Created by: null on 09-11-2003 11:16:19 PM
Hi Elam,
This is regarding the getValue method Of ResultSetList object.
I have a doubt about the rowindex parameter. When I run my application it shows a java error java.lang.IndexOutOfBoundsException: Index: 2, Size: 1.
In the database table there are 4 rows and when I put a row index of 2 in the getValue() method it throws an arrayIndexBoundOfException. Actually the size of the array is 4 and it has to take the index from 0 to 3 , but it doesn't take any value other than 0.
I would like to know, where about is it setting the size of the array to 1. How can we change it?
Subject: RE: getValue method
Replied by: null on 11-11-2003 06:10:26 PM
Hi Jaison,
The ResultSetList object contains all row returned by your query. If you get an out of bounds exception, look at your query and see if it returns more than 1 row. Type the same query into your database directly and see how many rows are returned. Even though there are 4 rows in the database it doesn't mean 4 rows will be returned in your query.