webpush-java icon indicating copy to clipboard operation
webpush-java copied to clipboard

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

Open debabratapatra opened this issue 3 years ago • 1 comments

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

debabratapatra avatar Aug 13 '20 14:08 debabratapatra

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.

VanessaCarpes avatar Feb 02 '23 18:02 VanessaCarpes