• Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayIndexOutOfBoundException in insert into database query  RSS feed

 
Vinod suryawanshi
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
I am getting bellow Error, when i try to insert records into database,

Error in Data Insert
E-9
java.lang.ArrayIndexOutOfBoundException: 9


here is my code,



I checked my values datatype, number of values mentioned in insert query and set in prepare statement all are good. Not understanding, where I am getting Wrong.

Thanks
 
Jaikiran Pai
Sheriff
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the entire exception stacktrace.
 
Anindya Roy
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
at which line you are getting this exception. full exception stack will help people find the actual problem
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!