Issue related to JNA Windows 10

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

Hi @grego5,

I don’t recognize that as a Lagom-specific issue. Is it possible some library your project depends on uses JNA under the covers?

Maybe some more context (or a longer stacktrace) would help diagnose this further.

Cheers,

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]

Hi @grego5,

I don’t see any lagom-specific code in that stacktrace.

I wonder if the cassandra version bundled in Lagom is not compatible with Windows 10, though…