aspose file tools
The moose likes JDBC and Relational Databases 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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error in getting connection