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

Fails with javax.sql.rowset.serial.SerialException

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 2.7.2, 2.7.3, 2.7.4
    • N/A
    • JDBC 4.2 compatibility
    • None
    • Windows 10

    Description

      Attempt to connect with DriverManager.getConnection fails with
      java.lang.NoClassDefFoundError: javax/sql/rowset/serial/SerialException
      at org.mariadb.jdbc.internal.util.Utils.retrieveProxy(Utils.java:632)
      at org.mariadb.jdbc.internal.util.pool.Pool.addConnection(Pool.java:215)
      at org.mariadb.jdbc.internal.util.pool.Pool.<init>(Pool.java:125)
      at org.mariadb.jdbc.internal.util.pool.Pools.retrievePool(Pools.java:54)
      at org.mariadb.jdbc.MariaDbConnection.newConnection(MariaDbConnection.java:147)
      at org.mariadb.jdbc.Driver.connect(Driver.java:89)
      at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:681)
      at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:252)
      at sqlimpl/uk.co.gardennotebook.mysql.DBConnection.getConnection(DBConnection.java:224)
      at sqlimpl/uk.co.gardennotebook.mysql.DBConnection.setConnection(DBConnection.java:186)
      at sqlimpl/uk.co.gardennotebook.mysql.SQLTrug.isAvailable(SQLTrug.java:191)
      at spi@3.0.0-SNAPSHOT/uk.co.gardennotebook.spi.TrugServer.checkTrug(TrugServer.java:146)
      at gui@3.0.0-SNAPSHOT/uk.co.gardennotebook.NotebookConfig.handleApplyForLogin(NotebookConfig.java:1007)
      at gui@3.0.0-SNAPSHOT/uk.co.gardennotebook.NotebookConfig.btnApplyOnAction(NotebookConfig.java:481)
      ... 61 more
      Caused by: java.lang.ClassNotFoundException: javax.sql.rowset.serial.SerialException
      at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
      at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
      at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
      ... 75 more

      The parameter value for getConnection is:
      jdbc:mariadb://synology215:3307/mydatabase?user=user&password=password&useSSL=false&allowPublicKeyRetrieval=true&sslMode=DISABLED&pool&minPoolSize=2&connectTimeout=1000

      Version 2.7.0 works OK. I've not tried 3.0.0.
      This is similar to CONJ-871 but the environment is plain vanilla Java, desktop application.

      Attachments

        Issue Links

          Activity

            People

              diego dupin Diego Dupin
              andygegg Andy Gegg
              Votes:
              2 Vote for this issue
              Watchers:
              4 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.