Your code could be throwing a NullPointerException or an ArrayIndexOurOfBoundsException
To find out if this is happening change you
If this an Excpetion is thrown then
you should be a see the stack print to the screen. This will tell you if can exception has occured. If you are not used to reading th trace, post it here and we will have a look for you.
---
Reading your post again are your saying you have:
If this is true, what is happening is that a ClassCastException is being thrown and causing your for loop to break. If you want some thing to happen if this problem occurs you need to put code in where I have the comment "//Nothing in here???".
The reason this is happening is beacuse you are casting an row.get(i) as a Vector. Are you sure it is a Vector? You are also casting the result of ((Vector)row.get(i)).get(k) as a Long. Are you sure it is a Long?
You may be interested to know that you are able to check to type of Object before you cast. Below is a common way of doing this:
For debuging I find it useful to do
Hmm that call may be a little out as I am wirtting it in this editor. You may want to check, but you should be able to get the idea. What should happen is that the name of the class the object is an instance of should be printed.
Chris.
[ March 16, 2004: Message edited by: Chris Harris ]