When working with Hibernate and Oracle DB with Wallet.
Getting below error:
org.hibernate.engine.jdbc.connections.internal.DriverManagerConnectionProviderImpl HHH000115: Hibernate connection pool size: 20 (min=1)
I am trying currently with
Java/JDK: 17
Hibernate: 'org.hibernate:hibernate-core:5.4.27.Final'
Oracle Autonomous DB: 19c connection via wallet.
I tried with different version of JDK(8 and 11) and Hibernate(5.3.xx, 6.4.xx, 5.2.xx). Same error everytime.
The issue in my case was because of proxy setting. As I was connecting through Oracle's OCI Autonomous Database Wallet. I tried setting proxy using
Systemclass. Something like below:That didn't work.
So, I used proxy directly on my wallet. I provided path of Wallet in my
persistence.xmlas shown:As the
aliasisdb_highhere, so apply proxy as shown below intnsnames.orainside theWALLET_DBdirectory.Please note the
https_proxyandhttps_proxy_porthere.