This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
nitinmittal mittal
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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.
 
Nagendra Prasad
Ranch Hand
Posts: 219
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic