This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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