wood burning stoves 2.0*
The moose likes JDBC and the fly likes error message Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
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: 787


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: 5812

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: 511
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: http://aspose.com/file-tools
subject: error message
Similar Threads
method invoke args
an easy test question relating to Bean Management Persistent
Java: connecting to mysql [Unsolved]
Is it possible to rethrow printStackTrace()?
BMP ejbRemove() problem