MuleSoft · Database Connector
DB:CANNOT_LOAD_DRIVER
Short answer
DB:CANNOT_LOAD_DRIVER means Database Connector cannot load the JDBC driver for the connection. Make sure the driver for your database is available to the application.
VerifiedLast verified
01Error text
Error type: DB:CANNOT_LOAD_DRIVER02Likely causes
- Database Connector cannot load the JDBC driver.
03How to fix it
- Check which JDBC driver the Database configuration needs for its connection type.
- Make sure that driver is included with the application so the connector can load it.
- Turn on verbose logging: add
AsyncLoggerentries atDEBUGfororg.mule.extension.dbandorg.mule.db.commonsinlog4j2.xml. Turn it off afterward.
iNotes
The documentation defines this error type but does not list resolution steps. The steps above follow from its definition.
04Official documentation
→Related errors
- DB:CONNECTIVITYDB:CONNECTIVITY covers several possible connection problems in Database Connector, including a poorly configured connection, no response from the database and a lost connection. Check the connection configuration first, then add a reconnection strategy.
- DB:CANNOT_REACHDB:CANNOT_REACH means Database Connector cannot establish a connection with the RDBMS. Check the host and port in the Database configuration and the network path from the app to the database server.
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for MuleSoft work:Open MuleSoft jobsMuleSoft rates and salariesHire a senior MuleSoft developer