Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all articles
Browse latest Browse all 3285

MaxDb is the connection metadata incorrect from the basic app server test setup environment?

$
0
0

    Apparently I now have a real environment to work in, but am still waiting for a login. In the meen time it seems to me that someone moved the trial DB, but forgot to move one of the many links to it - last Thusday?  I can connect to the trial db where I work with my tunnel command.

 

C:\STS2\HANA\tools>neo open-db-tunnel -h hanatrial.ondemand.com -u me@me.com -a p9999999999trial --id p9999999999trialMAXDB

 

My local version of the my Java app works with this connection.

 

 

   But, the Java Application which I uploaded to the cloud is throwing an error. The connection is attempted with

 

   Context envContext  = (Context)initContext.lookup("java:/comp/env");
  

DataSource ds = (DataSource)envContext.lookup("jdbc/DefaultDB");

 

(Actually I use hibernate - but I have a test servlet that uses those two lines. thus those two lines are tested, and will fail with an error.)

I would guess that your server's connection.properties file (or JNDI properties file whatever you call it.) is incorrect? I am ducking as I say that as my last post was a mistake made by myself.

 

The error is:

 

2015 04 07 10:16:31#+00#ERROR#com.sap.core.persistence.osgi.config.pool.trace.PoolLogger##anonymous#http-bio-8041-exec-2#na#p9999999999l#hanmyapp#web#p9999999999trial#SAP DBTech JDBC: Cannot connect to jdbc:sapdb://vadbj09.nwtrial.od.sap.biz:7200/J09 [Cannot connect to host vadbj09.nwtrial.od.sap.biz:7200 [Connection timed out], -813.].

com.sap.dbtech.jdbc.exceptions.JDBCDriverException: SAP DBTech JDBC: Cannot connect to jdbc:sapdb://vadbj09.nwtrial.od.sap.biz:7200/J09 [Cannot connect to host vadbj09.nwtrial.od.sap.biz:7200 [Connection timed out],

 

:-) 


Viewing all articles
Browse latest Browse all 3285

Trending Articles



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