aspose file tools*
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
Author

ArrayIndexOutOfBoundsException in JSP

aditya bhaskaruni
Greenhorn

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
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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.


SCJP, SCWCD.
|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 =>
WhyNotUseScriptlets
aditya bhaskaruni
Greenhorn

Joined: Aug 06, 2012
Posts: 2
sir,

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


the excel sheet contains 5776 records.
priya sivanantham
Greenhorn

Joined: Aug 08, 2012
Posts: 1
Intialize the array lists to null first and then create a new one.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: ArrayIndexOutOfBoundsException in JSP