jamesnetherton opened a new issue, #7771:
URL: https://github.com/apache/camel-quarkus/issues/7771

   ### Bug description
   
   This is likely related to the BouncyCastle 1.82 upgrade. When 
`io.smallrye.certs.CertificateUtils` attempts to generate certificates we see 
`NoSuchFieldError` thrown.
   
   I think there's a clash between `org.bouncycastle:bcprov-lts8on:2.73.7` 
pulled in by `jnats`, and `org.bouncycastle:bcprov-jdk18on:1.82` required by 
the SmallRye certificate generator.
   
   Excluding `bcprov-lts8on` seems to break `jnats`. So for now, I will disable 
the NATS TLS tests.
   
   ```
   java.lang.NoSuchFieldError: Class 
org.bouncycastle.asn1.misc.MiscObjectIdentifiers does not have member field 
'org.bouncycastle.asn1.ASN1ObjectIdentifier id_MLDSA65_RSA4096_PSS_SHA512'
        at 
org.bouncycastle.operator.DefaultSignatureAlgorithmIdentifierFinder.<clinit>(Unknown
 Source)
        at 
org.bouncycastle.operator.jcajce.JcaContentSignerBuilder.<clinit>(Unknown 
Source)
        at 
io.smallrye.certs.CertificateUtils.generateCertificate(CertificateUtils.java:74)
        at io.smallrye.certs.CertificateHolder.<init>(CertificateHolder.java:33)
        at 
io.smallrye.certs.CertificateRequestManager.<init>(CertificateRequestManager.java:34)
        at 
io.smallrye.certs.CertificateGenerator.generate(CertificateGenerator.java:27)
        at 
org.apache.camel.quarkus.test.support.certificate.TestCertificateGenerationExtension.beforeAll(TestCertificateGenerationExtension.java:106)
        at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
        Suppressed: java.util.NoSuchElementException
                at 
java.base/java.util.ArrayDeque.removeFirst(ArrayDeque.java:361)
                at java.base/java.util.ArrayDeque.pop(ArrayDeque.java:592)
                at 
io.quarkus.test.junit.QuarkusTestExtension.afterAll(QuarkusTestExtension.java:1065)
                ... 1 more
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to