Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java.lang.nosuchmethoderror: org.bouncycastle.asn1 #1834

Closed
sai12318 opened this issue Sep 11, 2024 · 1 comment
Closed

Java.lang.nosuchmethoderror: org.bouncycastle.asn1 #1834

sai12318 opened this issue Sep 11, 2024 · 1 comment

Comments

@sai12318
Copy link

Hi Team,

We are facing this in our project , if we are upgrading jars version it is causing issue with other ssl interface connections. Could you please suggest

Caused by: java.lang.NoSuchMethodError: org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData()Lorg/bouncycastle/asn1/DE
RBitString;
at org.bouncycastle.tls.crypto.impl.jcajce.JceX25519Domain.encodePublicKey(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00
.0]
at org.bouncycastle.tls.crypto.impl.jcajce.JceX25519.generateEphemeral(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.tls.TlsECDHEKeyExchange.generateEphemeral(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.tls.TlsECDHEKeyExchange.generateClientKeyExchange(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.tls.TlsClientProtocol.sendClientKeyExchange(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.tls.TlsClientProtocol.handleHandshakeMessage(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.tls.TlsProtocol.processHandshakeQueue(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.tls.TlsProtocol.processRecord(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.tls.RecordStream.readRecord(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.tls.TlsProtocol.safeReadRecord(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.tls.TlsProtocol.blockForHandshake(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.tls.TlsClientProtocol.connect(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.jsse.provider.ProvSSLSocketWrap.startHandshake(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at org.bouncycastle.jsse.provider.ProvSSLSocketWrap.startHandshake(Unknown Source) ~[bctls-jdk15on-1.68.jar:1.68.00.0]
at sun.net.
www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:558)
~[?:1.8.0_411]
at sun.net.
www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:201)
~[?:1:

@dghgit
Copy link
Contributor

dghgit commented Sep 12, 2024

Update the TLS jar as well - it's way out of date.

@dghgit dghgit closed this as completed Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants