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

Can't install or update Plugins from Update Center due to FileNotFoundException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Major Major
    • core

      When I try to install a new plugin or update an existing plugin from update center, the operation fails with the following stack trace in the log.

      Nov 4, 2011 9:01:50 PM hudson.model.UpdateCenter$DownloadJob run
      INFO: Starting the installation of Subversion Plugin on behalf of sebastian
      Nov 4, 2011 9:01:50 PM hudson.model.UpdateCenter$DownloadJob run
      SEVERE: Failed to install Subversion Plugin
      java.io.FileNotFoundException: http://jenkins.mirror.isppower.de/plugins/subversion/1.34/subversion.hpi
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1491)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1485)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:624)
      at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:967)
      at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1075)
      at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:949)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.io.FileNotFoundException: http://jenkins.mirror.isppower.de/plugins/subversion/1.34/subversion.hpi
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1434)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2308)
      at java.net.URLConnection.getHeaderFieldInt(URLConnection.java:579)
      at java.net.URLConnection.getContentLength(URLConnection.java:474)
      at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:623)
      ... 9 more

      I am running Jenkins 1.437 inside a Tomcat 6 container. I am getting the same error both with the OpenJDK and Oracle's VM (all 64 bit). The above stack trace is from Oracle's VM.

      I tried remote-debugging this issue on my server, but couldn't really locate the problem as I do not have the sources for Oracle's Java implementation. However, the exception seems to be thrown by the con.getInputStream() method called in line 624 of UpdateCenter.java:

      CountingInputStream in = new CountingInputStream(con.getInputStream());

            Unassigned Unassigned
            sboschert Sebastian Boschert
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: