[CONJ-1123] java.lang.ClassNotFoundException: javax.crypto.Cipher cannot be found by mariadb-java-client_3.0.11 Created: 2023-11-16 Updated: 2023-11-20 Resolved: 2023-11-20 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | MySQL compatibility |
| Affects Version/s: | 3.0.11 |
| Fix Version/s: | 3.3.1 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Adan Espinoza | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
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
|
| Comments |
| Comment by Adan Espinoza [ 2023-11-16 ] | |||||||||||||||||
|
I confirmed that adding javax.crypto;resolution:=optional to the Import-Packages in the POM file fixes the issue.
| |||||||||||||||||
| Comment by Adan Espinoza [ 2023-11-16 ] | |||||||||||||||||
|
Consider also adding the missing reference into bnd.bnd file
| |||||||||||||||||
| Comment by Adan Espinoza [ 2023-11-16 ] | |||||||||||||||||
|
@diego dupin
BTW Thanks for your support |