[GRADLE-3288] Regression: JNA path conflicts in test execution JVM Created: 24/Apr/15 Updated: 28/Apr/15 Resolved: 28/Apr/15
|Reporter:||Sterling Greene||Assignee:||Gary Hale|
I have a project where the unit tests fail with Gradle 2.4.-rc-1 but pass with Gradle 2.3
I'm going to try to narrow it down further but the errors I'm getting suggest classloader issues. I get one java.lang.UnsatisfiedLinkError and several java.lang.NoClassDefFoundError
I should add that not all the unit test fail. 33 completed 11 failed.
The unsatisfied link error is JNA releated (I believe we've seen this happen before in other contexts).. Our project uses JNA and apparently so does Gradle.
java.lang.UnsatisfiedLinkError: Unable to load library 'shell32': com.sun.jna.Native.open(Ljava/lang/String;)J
|Comment by Gary Hale [ 28/Apr/15 ]|
This was due to the initialization of NativeServices in ActionExecutionWorker which had the side-effect of initializing the JNA libraries as well. It's been changed so that ActionExecutionWorker still initializes NativeServices, but does not initialize the JNA stuff (as it's not needed there).