Greetings.
Winp issue #46 filed for this as well, it was suggested to also file a Jenkins bug.
I am getting an exception from winp (v1.25, bundled with Jenkins LTS 2.73.3), specifically from Native.java, line 144.
I believe it is coming from the getJarFile() method. There is an if-statement on line 166 that returns null if the url doesn't start with jar: or wsjar:.
In my case the url starts with zip: so it is failing the test & coming up null.
This problem surfaced while email-ext was attempting to connect to the SMTP server.
Does this need a code fix or is there something I can do on my end to workaround the issue?
Dec 01, 2017 3:58:35 PM org.jvnet.winp.Native loadByUrl
WARNING: Failed to load DLL from static location
java.lang.RuntimeException: Failed to locate JAR file by URL zip:C:/[[[path redacted]]]/servers/AdminServer/tmp/_WL_user/Jenkins_LTS_2.73.3/frocxk/war/WEB-INF/lib/winp-1.25.jar!/winp.x64.dll
at org.jvnet.winp.Native.extractToStaticLocation(Native.java:144)
at org.jvnet.winp.Native.loadByUrl(Native.java:129)
at org.jvnet.winp.Native.load(Native.java:99)
at org.jvnet.winp.Native.(Native.java:70)
at org.jvnet.winp.WinProcess.enableDebugPrivilege(WinProcess.java:226)
at hudson.util.ProcessTree$Windows.(ProcessTree.java:555)
at hudson.util.ProcessTree.get(ProcessTree.java:350)
at hudson.Launcher$LocalLauncher.kill(Launcher.java:949)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:502)
at hudson.model.Run.execute(Run.java:1737)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:421)