This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MySQL Problem !!!

 
Siddharth Bhargava
Ranch Hand
Posts: 274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using jdbcTemplate and while getting the value of the User I am getting an exception .... I am attaching my code snippet.....

The exception which is coming is as follows:




Please tell me the solution to this problem and tell me where i am going wrong.... Thanks in advance ...
 
Bob Good
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps the '?' parameter should be ?
 
Siddharth Bhargava
Ranch Hand
Posts: 274
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I checked with ? also instead of '?' but its giving problem with it also ...
 
Bob Good
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The same exception or a different one?
Please post it...

You old one was this:
Parameter index out of range (1 > number of parameters, which is 0).
[ February 01, 2008: Message edited by: Bob Good ]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic