Forums Register Login

Collection applicantList = null;

+Pie Number of slices to send: Send
I keep getting an exception on the code below. Can someone explain what I am doing wrong?

java.lang.ArrayIndexOutOfBoundsException: 8



[ December 02, 2007: Message edited by: Higgledy Smith ]
+Pie Number of slices to send: Send
Which line of code is causing the exception?
+Pie Number of slices to send: Send
Marc,

I don't know which line I get the error. applicantList contains 4 items which which all hit the System.out.println line cause I see 4 string values in the console but the next thing I know is I get the exception.

This is the code that "loads" the ArrayList:


query.getResultList() returns a List which I cast to ArrayList, don't know if this is the correct way.

Thank you.
Higgledy
+Pie Number of slices to send: Send
The error message should provide a line number. For example...
Attractive, successful people love this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 612 times.
Similar Threads
For each loop
why should i go for iterator get the data from collection
Iterator instantiation
Interview Questions
TreeXxx VS PriorityQueue
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:33:21.