File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes ArrayIndexOutOfBoundsException in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "ArrayIndexOutOfBoundsException in JSP" Watch "ArrayIndexOutOfBoundsException in JSP" New topic

ArrayIndexOutOfBoundsException in JSP

aditya bhaskaruni

Joined: Aug 06, 2012
Posts: 2
I had written code like this i got error
"org.apache.jasper.JasperException: java.lang.ArrayIndexOutOfBoundsException: 14 "
How can i remove this error

Amit Ghorpade

Joined: Jun 06, 2007
Posts: 2851

Hi aditya, welcome to Javaranch

The thread you posted is quite old now, so I am moving this to a new thread.
Firstly you really need to get rid of all the scripting code from your JSP.
Next, at a glance, the exception you are getting looks like a data problem to me.

|Asking Good Questions|
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

difficult to find out which line is throwing an exception? you need find container generated java file etc ...
please go through below link =>
aditya bhaskaruni

Joined: Aug 06, 2012
Posts: 2

actually i am sending data which in the excel to the database

the excel sheet contains 5776 records.
priya sivanantham

Joined: Aug 08, 2012
Posts: 1
Intialize the array lists to null first and then create a new one.
I agree. Here's the link:
subject: ArrayIndexOutOfBoundsException in JSP
It's not a secret anymore!