• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.sql.SQLExceptiion: Column Index out of range (0>1)

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
java.sql.SQLExceptiion: Column Index out of range (0>1),
I am trying to insert some data into mysql table and then this exception was printed on the Tomcat, even the data was inserted into the table, after that when I updated the data it wasn't updated, and the same error was there, I have checked all the values, they are compatible to the table. So anybody plz help me in solving this problem.
 
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
its one of ur get() or set() methods which is using an invalid index.
For instance it u are doing something like
resultSet.getString(10); and there is no 10th column, you would get this error.
reply
    Bookmark Topic Watch Topic
  • New Topic