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

Driver returns broken connection when host is missed in URL

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.5.0-RC, 1.4.4, 1.4.5, 1.4.6, 1.5.1-RC
    • 1.5.2
    • Other
    • None

    Description

      My application stopped working after MariaDB JDBC driver was upgraded from version 1.1.8 to version 1.4.4. Any JDBC call against connection throws "SQLNonTransientConnectionException: Connection is close" exception. host missed in connection URL was direct reason of this e.g. "jdbc:mariadb:///schemaname" instead "jdbc:mariadb://localhost/schemaname". My application worked before drivers upgrade because host was optional in connection URL at least for 1.1.8 (same as in MySlq connection URL).

      Yes this is RTFM but current driver behavior looks not good because according to javadoc java.sql.Driver#connect method should return valid connection or throws exception when can't connect to database. Otherwise it is hard to catch problem reason without driver code debugging.

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            tarasv taras v
            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.