Am getting same excepiton.
FAILURE! 17:26:42 org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment] 17:26:42 at com.sap.db.jdbc.exceptions.SQLExceptionSapDB._newInstance(SQLExceptionSapDB.java:191) 17:26:42 at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.newInstance(SQLExceptionSapDB.java:42) 17:26:42 at com.sap.db.jdbc.packet.HReplyPacket._buildExceptionChain(HReplyPacket.java:881) 17:26:42 at com.sap.db.jdbc.packet.HReplyPacket.getSQLExceptionChain(HReplyPacket.java:130) 17:26:42 at com.sap.db.jdbc.packet.HPartInfo.getSQLExceptionChain(HPartInfo.java:39) 17:26:42 at com.sap.db.jdbc.ConnectionSapDB._receive(ConnectionSapDB.java:2534) 17:26:42 at com.sap.db.jdbc.ConnectionSapDB.exchange(ConnectionSapDB.java:1507) 17:26:42 at com.sap.db.util.security.AuthenticationManager.authenticate(AuthenticationManager.java:115) 17:26:42 at com.sap.db.jdbc.ConnectionSapDB._getNewSession(ConnectionSapDB.java:2901) 17:26:42 at com.sap.db.jdbc.ConnectionSapDB._getNewConnection(ConnectionSapDB.java:2832) 17:26:42 at com.sap.db.jdbc.ConnectionSapDB.(ConnectionSapDB.java:194) 17:26:42 at com.sap.db.jdbc.ConnectionSapDBFinalize.(ConnectionSapDBFinalize.java:36) 17:26:42 at com.sap.db.jdbc.ConnectionSapDBFinalize.newInstance(ConnectionSapDBFinalize.java:23) 17:26:42 at com.sap.db.jdbc.Driver._connect(Driver.java:1441) 17:26:42 at com.sap.db.jdbc.Driver.connect(Driver.java:1068) 17:26:42 at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:95) 17:26:42 at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:101) 17:26:42 at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:341) 17:26:42 at com.zaxxer.hikari.pool.HikariPool.checkFailFast(Hikari
Using RESTAssured to run API automation. Using hibernate to connect to HANA DB.
Can you please help me to resolve this ?? Using DBeaver am able to connect to HANA DB instance,but same thing is failing from API automation…
There are so many environments where all of this works great and out of the box. If you want to build a custom environment and run into errors due to misconfiguration or bugs in your code, then you are on your own.
The exceptions are all usually pretty clear. Hibernate is unable to acquire a connection through the connection provider, because the connection provider you are using has a problem (wrong credentials, network issue or whatever).