Quantcast
Channel: SCN: Message List - SAP MaxDB
Viewing all articles
Browse latest Browse all 2539

Cannot connect to host localhost:7210

$
0
0

Hi Experts,

 

I have created a J2EE Application using Design Pattern. In which i am connecting to MaxDB which is installed on local machine. I am using NW 2004 SE SP9

 

I have used following code for connection to MaxDB.

 

try {

    Class.forName ("com.sap.dbtech.jdbc.DriverSapDB");

} catch (ClassNotFoundException e) {

    // TODO Auto-generated catch block

    e.printStackTrace();

}

   

//Get Connection

try {

con = DriverManager.getConnection("jdbc:sapdb://localhost/MAXDB?sqlmode=ORACLE","DBADMIN", "hcl123");

} catch (SQLException e1) {

    e1.printStackTrace();

}

return con;

 

 

 

Now when i execute the above code i am getting exception:

 

com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sapdb://localhost/MAXDB [Cannot connect to host localhost:7210 [Connection refused: connect], -813.].#

 

PS# Also, the same code is running well when i am executing it via PSVM.

 

Please help!

 

Rgds,

Pankaj


Viewing all articles
Browse latest Browse all 2539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>