javajpahanasap-business-technology-platform

SAP DBTech JDBC: [4321]: only secure connections are allowed


I am unable to create a connection with SAP Cloud Foundry HANA service from my Spring boot app. I have given JPA properties values as the information is provided in HANA HDI service binding in SCP CF but getting following error from my Sample Spring boot:

SAP DBTech JDBC: [4321]: only secure connections are allowed"

SAP CF HANA service is enforcing security is there any standard way to make connection with Spring boot to SAP HANA CF service?

Just to add connectivity is not working when making a connection in Springboot app via application.yml file by setting JPA properties, but was able to make a connection in a servlet using connection object by looking up the driver class manually via code.

How I can make a successful connection via JPA properties in application.yml file ?


Solution

  • Issue seems to be known to SAP:

    https://github.com/SAP/spring-cloud-sap/issues/8

    There is at least a workaround listed on the end of the page, which might help.