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 error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "error message" Watch "error message" New topic

error message

srikanth sri

Joined: Feb 21, 2010
Posts: 20
here is my prog...

it has compiled but when i run it has error message like

java.sql.SQLException:no data found

can anyone help please
Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 802


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
srikanth sri

Joined: Feb 21, 2010
Posts: 20
thank you kulkarni

this is my first day so i'm not familiar how to post the questions.

and this site seems to be wonderful because i get the replies spontaneously
Peter Johnson

Joined: May 14, 2008
Posts: 5852

In the ODBC Data Sources control panel, how did you set up "Temp"? That is, which data source is Temp using?

Do you really have to use ODBC? Why not install a real database such as MySQL or PostgreSQL and use it using it's JDBC driver?

JBoss In Action
amit punekar
Ranch Hand

Joined: May 14, 2004
Posts: 544
Try printing the stack trace as it would provide more information.
In your catch block that catches SQLException do e.printStackTrace().

I agree. Here's the link:
subject: error message
It's not a secret anymore!