title: Bouncy castle no such method error (v1.61) and milo (v0.3.8)
body: <p>My situation is similar to this but it is a newer version of bouncycastle so I am not sure it is the same situation and it is four years later without an accepted answer:</p>
  
  <p><a href="https://stackoverflow.com/questions/34529351/bouncy-castle-no-such-method-error">Bouncy castle no such method error</a></p>
  
  <p>I am using bc with eclipse milo with an ant build: my dependencies are:
  bcpkix-jdk15on-1.61.jar
  bcprov-jdk15on-1.61.jar</p>
  
  <p>When I launch our app in eclipse we are able to connect with the UA Expert test client securely without any issues. However when connecting with UA Expert to the milo opc-ua server on our deployed application on a SBC I am seeing this error:</p>
  
  <pre><code>Mar 05, 2020 6:54:48 PM org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$Task run
  WARNING: Uncaught Throwable during execution.
  java.lang.NoSuchMethodError: org.bouncycastle.util.Arrays.areAllZeroes([BII)Z
      at org.eclipse.milo.opcua.stack.core.util.NonceUtil.validateNonce(NonceUtil.java:183)
      at org.eclipse.milo.opcua.stack.core.util.NonceUtil.validateNonce(NonceUtil.java:153)
      at org.eclipse.milo.opcua.stack.server.transport.uasc.UascServerAsymmetricHandler.openSecureChannel(UascServerAsymmetricHandler.java:437)
      at org.eclipse.milo.opcua.stack.server.transport.uasc.UascServerAsymmetricHandler.lambda$sendOpenSecureChannelResponse$1(UascServerAsymmetricHandler.java:301)
      at org.eclipse.milo.opcua.stack.core.channel.SerializationQueue.lambda$encode$0(SerializationQueue.java:57)
      at org.eclipse.milo.opcua.stack.core.util.ExecutionQueue$Task.run(ExecutionQueue.java:119)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
  </code></pre>
  
  <p>we have an ant build and I believe all the classpaths are pointing to the current library.</p>