my dog learned polymorphism*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ArrayIndexOutOfBoundsException in JSP
 
Similar Threads
Big performance hog with (Collection).removeAll ?
Linked List equals method
Read Excel values and store in to Database
Implementing Comparable Interface with TreeSets
c:forEach