Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-779

Logic error in stop() method of OSGi bundle activator

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.6.0
    • 2.6.1
    • Other
    • None

    Description

      The code

          if (DriverManager.getDriver("jdbc:mariadb:") != null) {
            SchedulerServiceProviderHolder.close();
          }
      

      assumes that getDriver returns null if the driver is not found. It does not, it never returns null. It throws a SQLException with message "No suitable driver" and error code 08001.
      Please replace by a try-catch clause.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            domagojcc Domagoj Cosic
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.