aspose file tools*
The moose likes JDBC and the fly likes Error in getting connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Error in getting connection" Watch "Error in getting connection" New topic
Author

Error in getting connection

Shyam Sunder
Greenhorn

Joined: Dec 23, 2006
Posts: 24
ERROR in getconnection ................... java.sql.SQLException: Io exceptio
n: The Network Adapter could not establish the connection
got Connection
java.lang.NullPointerException
at com.statestreet.sda.dao.OracleStampDutyReportDAO.getStampDutyReportDA
O(OracleStampDutyReportDAO.java:36)
at com.statestreet.sda.bo.StampDutyReportBO.getStampDutyReport
Rama Krishna Ghanta
Ranch Hand

Joined: Nov 20, 2006
Posts: 59
Shyam,

Posting your SQL connection code block will help resolve your problem faster.

Regards,
Rama Krishna Ghanta


Ram...
Kj Reddy
Ranch Hand

Joined: Sep 20, 2003
Posts: 1704
I guess your database server is not started.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error in getting connection