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

error message

srikanth sri
Greenhorn

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

UseCodeTags


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
Greenhorn

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
author
Bartender

Joined: May 14, 2008
Posts: 5842
    
    7

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: 515
Hello,
Try printing the stack trace as it would provide more information.
In your catch block that catches SQLException do e.printStackTrace().



Regards,
Amit
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error message