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

MuleSoft error
Error type: DB:CANNOT_LOAD_DRIVER

02Likely causes

  • Database Connector cannot load the JDBC driver.

03How to fix it

  1. Check which JDBC driver the Database configuration needs for its connection type.
  2. Make sure that driver is included with the application so the connector can load it.
  3. Turn on verbose logging: add AsyncLogger entries at DEBUG for org.mule.extension.db and org.mule.db.commons in log4j2.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

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

The iPaaS Brief

Subscribe to The iPaaS Brief.

The iPaaS newsletter for the people who run integrations. From iPaaS Group.

Free. You finish on theipaasbrief.com and confirm by email.