Uploaded image for project: 'liquibase-util'
  1. liquibase-util
  2. LIQUTIL-21

No suitable driver found for jdbc:postgresql

    XMLWordPrintable

Details

    • Folijet Sprint 136
    • 0
    • Folijet
    • Lotus (R1 2022) Bug Fix
    • Related dependency upgrade

    Description

      RMB no longer ships with org.postgresql:postgresql driver because RMB uses the Vert.x Async PostgreSQL driver.

      Liquibase doesn't support the Vert.x driver and fails with this error message:

      15:54:34 [] [] [] [] ERROR LiquibaseUtil        Error while initializing schema for the module
      java.sql.SQLException: No suitable driver found for jdbc:postgresql://null:null/postgres
              at java.sql.DriverManager.getConnection(Unknown Source) ~[java.sql:?]
              at java.sql.DriverManager.getConnection(Unknown Source) ~[java.sql:?]
              at org.folio.liquibase.SingleConnectionProvider.getConnectionInternal(SingleConnectionProvider.java:65) ~[mod-pubsub-server-fat.jar:?]
              at org.folio.liquibase.SingleConnectionProvider.getConnection(SingleConnectionProvider.java:55) ~[mod-pubsub-server-fat.jar:?]
              at org.folio.liquibase.LiquibaseUtil.initializeSchemaForModule(LiquibaseUtil.java:41) ~[mod-pubsub-server-fat.jar:?]
      

      Therefore folio-liquibase-util needs to ship with the org.postgresql:postgresql driver.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                julianladisch Julian Ladisch
                julianladisch Julian Ladisch
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases