I am getting this error on Windows 10 running test cases that uses Lagom.
1461596224\jna7956437759318431371.dll: The specified procedure could not be found
java.lang.UnsatisfiedLinkError: C:\Users\ite2327\AppData\Local\Temp\1\jna–1461596224\jna7956437759318431371.dll: The specified procedure could not be found
Initially I thought it was a cassandra issue, but the cassandra vendor said that it is probably a Lagom issue since this bundle is contained in the Lagom libraries. Below is the entire stack trace. I posted the snippet of the code where it fails.
The server is using this class com.lightbend.lagom.javadsl.testkit.ServiceTest.TestServer. I don’t get the issue if I take out the withCassandra. Somewhere it is using some JNA library on the windows box. My coworker is having the same issue who is on a windows, but all my coworkers using macs don’t have the issue. I was wondering if I need a different version of the JNA libraries but I wasn’t able to figure that out.
TestServer server = startServer(
defaultSetup()
.withJdbc(false)
.withCassandra(true) (WHERE THE ISSUE IS)
Exception (java.lang.UnsatisfiedLinkError) encountered during startup: C:\Users\ite2327\AppData\Local\Temp\1\jna–1461596224\jna6623864524517031412.dll: The specified procedure could not be found
java.lang.UnsatisfiedLinkError: C:\Users\ite2327\AppData\Local\Temp\1\jna–1461596224\jna6623864524517031412.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817)
at java.lang.Runtime.load0(Runtime.java:809)
at java.lang.System.load(System.java:1086)
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851)
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:826)
at com.sun.jna.Native.(Native.java:140)
at org.apache.cassandra.utils.WindowsTimer.(WindowsTimer.java:35)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:599)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:691)
04/14 15:46:28 ERROR[main] o.a.c.s.CassandraDaemon - Exception encountered during startup
java.lang.UnsatisfiedLinkError: C:\Users\ite2327\AppData\Local\Temp\1\jna–1461596224\jna6623864524517031412.dll: The specified procedure could not be found
at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[na:1.8.0_232]
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) ~[na:1.8.0_232]
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817) ~[na:1.8.0_232]
at java.lang.Runtime.load0(Runtime.java:809) ~[na:1.8.0_232]
at java.lang.System.load(System.java:1086) ~[na:1.8.0_232]
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:851) ~[cassandra-bundle.jar:0.59-SNAPSHOT]