Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48347

Winp - v1.25 - Failed to locate JAR file by URL zip:

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • OS: Windows Server 2008 R2
      Java: 1.8.0_121
      Jenkins version: LTS 2.73.3
      Jenkins Deployed to: WebLogic 12.1.3

      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)

          [JENKINS-48347] Winp - v1.25 - Failed to locate JAR file by URL zip:

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - https://github.com/kohsuke/winp/pull/47

          Oleg Nenashev added a comment -

          The fix has been shipped in WinP 1.26. Core update PR: https://github.com/jenkinsci/jenkins/pull/3399

          Oleg Nenashev added a comment - The fix has been shipped in WinP 1.26. Core update PR: https://github.com/jenkinsci/jenkins/pull/3399

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/a5e9cbd731722d7594da77a6fddd10a800172c0a
          Log:
          JENKINS-48347 - Update WinP from 1.25 to 1.26 to pick the weblogic fix

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/a5e9cbd731722d7594da77a6fddd10a800172c0a Log: JENKINS-48347 - Update WinP from 1.25 to 1.26 to pick the weblogic fix

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          core/pom.xml
          http://jenkins-ci.org/commit/jenkins/534bb120f4d41942c1b8215d3f5fe7db5db5e3c3
          Log:
          Merge pull request #3399 from oleg-nenashev/winp/1.26

          JENKINS-48347 - Update WinP from 1.25 to 1.26 to pick the Weblogic classloader fix for WinP DLLs

          Compare: https://github.com/jenkinsci/jenkins/compare/398e032fa08b...534bb120f4d4

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: core/pom.xml http://jenkins-ci.org/commit/jenkins/534bb120f4d41942c1b8215d3f5fe7db5db5e3c3 Log: Merge pull request #3399 from oleg-nenashev/winp/1.26 JENKINS-48347 - Update WinP from 1.25 to 1.26 to pick the Weblogic classloader fix for WinP DLLs Compare: https://github.com/jenkinsci/jenkins/compare/398e032fa08b...534bb120f4d4

            ben732 Ben
            ben732 Ben
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: