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

java.lang.ClassNotFoundException: javax.crypto.Cipher cannot be found by mariadb-java-client_3.0.11

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Fixed
    • 3.0.11
    • 3.3.1
    • MySQL compatibility
    • None
    • The issue happens on Windows 10, or Linux Ubuntu. The application runs on top of OSGi 3.11. The connection string contains the parameter. allowPublicKeyRetrieval=true

    Description

      The problem happens when the application tries to connect to MySQL 8.0

      17:08:37.068 E [FrontRunnerStarter] exceptions->y:2942 - Uncaught exception in Thread<Thread[FrontRunnerStarter,10,main]>
      java.lang.NoClassDefFoundError: javax/crypto/Cipher
      	at org.mariadb.jdbc.plugin.authentication.standard.CachingSha2PasswordPlugin.encrypt(CachingSha2PasswordPlugin.java:248)
      	at org.mariadb.jdbc.plugin.authentication.standard.CachingSha2PasswordPlugin.process(CachingSha2PasswordPlugin.java:165)
      	at org.mariadb.jdbc.client.impl.ConnectionHelper.authenticationHandler(ConnectionHelper.java:301)
      	at org.mariadb.jdbc.client.impl.StandardClient.<init>(StandardClient.java:189)
      	at org.mariadb.jdbc.Driver.connect(Driver.java:70)
      	at org.mariadb.jdbc.Driver.connect(Driver.java:101)
      	at org.mariadb.jdbc.Driver.connect(Driver.java:27)
      	at java.sql.DriverManager.getConnection(DriverManager.java:664)
      	at java.sql.DriverManager.getConnection(DriverManager.java:208)
      ...
      Caused by: java.lang.ClassNotFoundException: javax.crypto.Cipher cannot be found by mariadb-java-client_3.0.11
      

      Attachments

        Activity

          People

            diego dupin Diego Dupin
            aespinoza-mms Adan Espinoza
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.