You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "JiriOndrusek (via GitHub)" <gi...@apache.org> on 2023/08/29 14:05:36 UTC
[GitHub] [camel-quarkus] JiriOndrusek opened a new issue, #5233: [camel-main] Nats native failure, because of missing sun.security.x509.X509Key
JiriOndrusek opened a new issue, #5233:
URL: https://github.com/apache/camel-quarkus/issues/5233
### Bug description
After upgrade of JNats to 2.16.14 (in Camel), there is a native error about unknown type `sun.security.x509.X509Key` when parsing `EdDSAEngine`
I added a module containing x509Key into test module quarkus execution by
```
<properties>
<!-- his is required for the native execution (probably also for JVM).
EdDSAEngine requires sun.security.x509.X509Ke, which is no longer part if the java (since J16)
(Similar approach was used in kudu extension) -->
<opens>java.base/sun.security.x509=ALL-UNNAMED</opens>
<argLine>--add-opens ${opens}</argLine>
<quarkus.native.additional-build-args>-J--add-opens=${opens}</quarkus.native.additional-build-args>
</properties>
```
which fixes the error.
----
I'm not sure why upgrade of the dependency is causing this error.
If addition of the module is the right solution, documentation should be updated to cover thus requirement.
(Another solution might exist. It might be possible to remove `sun.security.x509.X509Key` part from `EdDSAEngine` by using @Substitute - but I didn't try it)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [camel-quarkus] jamesnetherton commented on issue #5233: [camel-main] Nats native failure, because of missing sun.security.x509.X509Key
Posted by "jamesnetherton (via GitHub)" <gi...@apache.org>.
jamesnetherton commented on issue #5233:
URL: https://github.com/apache/camel-quarkus/issues/5233#issuecomment-1738918396
> Another solution might exist. It might be possible to remove sun.security.x509.X509Key part from EdDSAEngine
Yes, I pushed a commit to do that. Replicating this unreleased change:
https://github.com/str4d/ed25519-java/commit/35c34a549cc933dc2d1d23ad4bfa88187fe77e7a
We can remove it if we ever get a 0.3.1 release of `net.i2p.crypto:eddsa`. But that project seem inactive...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org