Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2784

With JDBC 4 autoloading DriverManager.getProtocol("jdbc:derby:") throws java.sql.SQLException No suitable driver

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.2.2.0, 10.3.1.4
    • 10.3.1.4
    • JDBC
    • None

    Description

      The auto-load driver (org.apache.derby.jdbc.AutoloadedDriver) is loaded by the DriverManager correctly (when running with jars in JDK 6) and fetching connections works without loading the driver.

      But prior to getting a connection seeing if a driver is available using DriverManager.getProtocol("jdbc:derby:") incorrectly leads one to believe that no driver has been loaded.

      Can see this running the junit test with jars and JDK6

      org.apache.derbyTesting.functionTests.tests.jdbcapi.AutoloadTest

      (This test can be run directly and is part of the ant targt test running)

      Attachments

        Activity

          People

            djd Daniel John Debrunner
            djd Daniel John Debrunner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: