aspose file tools
The moose likes JDBC and the fly likes MySQL Problem  !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "MySQL Problem  !!!" Watch "MySQL Problem  !!!" New topic
Author

MySQL Problem !!!

Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 227
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

Joined: Jan 09, 2008
Posts: 86
Perhaps the '?' parameter should be ?
Siddharth Bhargava
Ranch Hand

Joined: Feb 23, 2007
Posts: 227
I checked with ? also instead of '?' but its giving problem with it also ...
Bob Good
Ranch Hand

Joined: Jan 09, 2008
Posts: 86
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 ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: MySQL Problem !!!
 
Similar Threads
HSQLDB - user lacks privilege or object not found
java.sql.SQLException: Parameter index out of range (1 > number of parameters, which
SQLException:Parameter Index out of Range
wild cards in MySQL using jdbc
Spring framework test case for DAO: No suitable driver