Users may observe one or more of the following errors:
java.sql.SQLException: No suitable driver found for jdbc:sap://<host>:30015Error loading driver: Error trying to load driver: com.sap.db.jdbc.Driver
Class 'com.sap.db.jdbc.Driver' not found in classloader
Runtime exception: java.lang.NoClassDefFoundError: jdk/net/ExtendedSocketOptions
Mule error:
DB:CONNECTIVITY
This issue is caused by a compatibility problem between Java 17 and the SAP HANA JDBC driver (ngdbc).
Specifically:
jdk.net.ExtendedSocketOptionsngdbc dependency is incorrectly scoped as <scope>provided</scope> in some environments, preventing it from being packaged in the deployable JARngdbc exist in the pom.xml
2.8.14 and 2.24.7 declared togetherEnsure the SAP HANA JDBC driver is included in the application artifact by removing provided scope.
<dependency>
<groupId>com.sap.cloud.db.jdbc</groupId>
<artifactId>ngdbc</artifactId>
<version>2.24.7</version>
</dependency>
ngdbc is declared in pom.xml Run:mvndependency:tree , to identify conflicts
Until SAP provides a Java 17–compatible driver:
ngdbc that explicitly support Java 17jdk.net.ExtendedSocketOptions Request Java 17 compatibility fix Affected Components:
MuleSoft Connector: Database Connector
JDBC Driver: SAP HANA ngdbc
Runtime: CloudHub 2.0
Java Version: Java 17 (Temurin 17.0.8+7)
005385414

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.