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

Getting "java.lang.NoSuchMethodError: org.bouncycastle.util.BigIntegers.fromUnsignedByteArray" Error. #144

Open
debabratapatra opened this issue Aug 13, 2020 · 1 comment

Comments

@debabratapatra
Copy link

debabratapatra commented Aug 13, 2020

I am Getting "java.lang.NoSuchMethodError: org.bouncycastle.util.BigIntegers.fromUnsignedByteArray" Error.
Can you please tell which version of bouncycastle is recommended for 5.1.0 webpush-java. I have tried 1.60 to 1.64. Nothing seems to be working for me. Am I missing something? Please suggest.

Stack Trace:

c.k.r.c.handler.APIExceptionHandler.handleException - Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.bouncycastle.util.BigIntegers.fromUnsignedByteArray([B)Ljava/math/BigInteger;
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.bouncycastle.util.BigIntegers.fromUnsignedByteArray([B)Ljava/math/BigInteger;
	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:978)
	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:897)
	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)

Thanks

@VanessaCarpes
Copy link

VanessaCarpes commented Feb 2, 2023

Hi @debabratapatra I'm facing the same issue. Have you figured out how to fix it?
The problem on my side maybe is a conflict with another lib, jasper, that also uses the bouncyCastle.

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