question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Changes in sun.security.x509.AlgorithmId in JDK 15

See original GitHub issue

System information:

Mac OS X 10.14.6 JDK version OpenJDK 15.0.1+9

Connection specification:

n/a

Describe the problem you’re observing:

  • Building DbBeaver fails on JDK 15 because sun.security.x509.AlgorithmId, an internal JDK class, was changed.
  • This also means that users cannot run DbBeaver or CloudBeaver on JDK 15, unless CertificateGenHelper is never called.

The field md5WithRSAEncryption_oid no longer exists, and as a result, CertificateGenHelper cannot compile.

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-compiler-plugin:2.0.0:compile (default-compile) on project org.jkiss.dbeaver.model: Compilation failure: Compilation failure:
[ERROR] /Users/anandbeh/git/SolarMC/dbeaver/plugins/org.jkiss.dbeaver.model/src/org/jkiss/dbeaver/model/impl/app/CertificateGenHelper.java:[69]
[ERROR] 	AlgorithmId algo = new AlgorithmId(AlgorithmId.md5WithRSAEncryption_oid);
[ERROR] 	                                               ^^^^^^^^^^^^^^^^^^^^^^^^
[ERROR] md5WithRSAEncryption_oid cannot be resolved or is not a field

Downgrading to OpenJDK 11 is a temporary workaround.

Steps to reproduce, if exist:

I discovered this while trying to set up CloudBeaver.

  1. Use JDK 11
  2. Follow the CloudBeaver’s Build and Deploy after requirements are installed
  3. Observe build failure

Include any warning/errors/backtraces from the logs

Full output of running CloudBeaver’s build.sh, including maven build of DbBeaver:

https://pastebin.com/STkhURkE

See also

https://github.com/playframework/playframework/issues/10478 https://github.com/openjdk/jdk/commit/080b3b83ebffe5149fbc9ac48e921fb5

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:23 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
ShadelessFoxcommented, Apr 28, 2021

We had some thoughts about that. But even using its lightweight API the binary size is still inappropriate 😦

Currently we’re looking towards using the keytool command-line utility which is bundled with Java.

0reactions
Matvey16commented, Oct 6, 2021

Verified

Read more comments on GitHub >

github_iconTop Results From Across the Web

X509Certificate (Java SE 14 & JDK 14) - Oracle Help Center
Abstract class for X.509 v1 certificates. This provides a standard way to access all the version 1 attributes of an X.509 certificate.
Read more >
jdk/jdk: d54ce919da90
files, src/java.base/share/classes/sun/security/x509/AlgorithmId.java ... diffstat, 2 files changed, 16 insertions(+), 7 deletions(-) [+].
Read more >
[JDK-8266929] Unable to use algorithms from 3p providers - Java ...
The change for “JDK-8249906, CVE-2021-2163: Enhance opening JARs” exposes a problem ... +++ b/src/java.base/share/classes/sun/security/x509/AlgorithmId.java
Read more >
JDK-8266929 Unable to use algorithms from 3p providers
Opening on behalf of Dan Lutker <lutkerd@amazon.com> The change for ... oidTable(AlgorithmId.java:628) at java.base/sun.security.x509.
Read more >
Djava.system.class.loader' on JDK 11.0.11, if ... - Stack Overflow
oidTable(AlgorithmId.java:627) at java.base/sun.security.x509. ... What happens if you change the Java version or run the application from ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found