Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24709

DBCheck fails when using MariaDB and MongoDB at the same time

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10-HF04, 10.1
    • Fix Version/s: 9.10-HF07, 10.2
    • Component/s: Core MongoDB
    • Release Notes Summary:
      MariaDB connection is correctly checked at startup.
    • Tags:
    • Backlog priority:
      800
    • Sprint:
      nxcore 10.2.3
    • Story Points:
      3

      Description

      If I set nuxeo.templates=mariadb,mongodb Launcher will fail with the following:

      Cannot execute command. null
      java.lang.NullPointerException
              at java.lang.Class.forName0(Native Method)
              at java.lang.Class.forName(Class.java:348)
              at org.nuxeo.launcher.config.backingservices.DBCheck.lookupDriver(DBCheck.java:178)
              at org.nuxeo.launcher.config.backingservices.DBCheck.checkDatabaseConnection(DBCheck.java:126)
              at org.nuxeo.launcher.config.backingservices.DBCheck.check(DBCheck.java:73)
              at org.nuxeo.launcher.config.BackingServiceConfigurator.lambda$verifyInstallation$2(BackingServiceConfigurator.java:101)
              at net.jodah.failsafe.Functions$10.call(Functions.java:252)
              at net.jodah.failsafe.SyncFailsafe.call(SyncFailsafe.java:145)
              at net.jodah.failsafe.SyncFailsafe.run(SyncFailsafe.java:81)
              at org.nuxeo.launcher.config.BackingServiceConfigurator.verifyInstallation(BackingServiceConfigurator.java:101)
              at org.nuxeo.launcher.config.ConfigurationGenerator.verifyInstallation(ConfigurationGenerator.java:1280)
              at org.nuxeo.launcher.NuxeoLauncher.doStart(NuxeoLauncher.java:2048)
              at org.nuxeo.launcher.NuxeoLauncher.doStartAndWait(NuxeoLauncher.java:1921)
              at org.nuxeo.launcher.NuxeoLauncher.doStartAndWait(NuxeoLauncher.java:1882)
              at org.nuxeo.launcher.NuxeoLauncher.launch(NuxeoLauncher.java:1159)
              at org.nuxeo.launcher.NuxeoLauncher.main(NuxeoLauncher.java:1110)
      

      As a workaround we can add the following to nuxeo.conf to skip the check for MariaDB:

      mariadb.check.classpath=
      mariadb.check.class=
      

      It would be better if the DB check worked for both db types.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h