Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ArrayIndexOutOfBoundException in insert into database query

 
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
Marshal
Pie
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic