web-push-libs / webpush-java

Web Push library for Java
MIT License
318 stars 112 forks source link

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

Open debabratapatra opened 4 years ago

debabratapatra commented 4 years ago

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 commented 1 year ago

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.