File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes java.sql.SQLException: Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "java.sql.SQLException: " Watch "java.sql.SQLException: " New topic
Author

java.sql.SQLException:

Garg Sharad
Greenhorn

Joined: Jun 20, 2009
Posts: 15
Please give me solution of this Exception
java.sql.SQLException: Parameter index out of bounds. 6 is not between valid values of 1 and 5


Cheers,

Sharad Garg| SCJP6 95%
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35438
    
    9
You're not giving us much to work with, are you?

My guess would be that you're using some kind of PreparedStatement that has 5 parameters, but that the code is trying to set 6 of them. But not knowing what code you're talking about this is pure speculation: TellTheDetails


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.sql.SQLException:
 
Similar Threads
connecting with oracle
Use a ResultSet twice
jsp resultset
a small doubt
Help! DriverManager.getConnection problem