File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes a small doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "a small doubt" Watch "a small doubt" New topic

a small doubt

shiv ram

Joined: Jul 10, 2010
Posts: 1
java.sql.SQLException: No value specified for parameter 1
can anyone suggest the answer?java.sql.SQLException: No value specified for parameter 1
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45359
Welcome to the Ranch

Please read this; people might not answer if they don't know what your question is from the thread title.
Tom Reilly

Joined: Jun 01, 2010
Posts: 618
You are trying to use a prepared statement but not setting it up correctly. Why don't you post your code and the full error (and please UseCodeTags)?
I agree. Here's the link:
subject: a small doubt
It's not a secret anymore!