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

JDK download fails to take the proxy setting into account

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Not able to Launch slave agent. Getting following error.
      I have added the java path to

      1. java - home
      2. Path.

      Choosing the download bundle
      hudson.util.IOException2: Could not find any known supported java version in [java, /usr/bin/java, /usr/java/default/bin/java, /usr/java/latest/bin/java, /usr/local/bin/java, /usr/local/java/bin/java, /design/bsp/sla02/jdk/bin/java, /usr/java/jdk1.5.0_07/bin/bin/java], and we also failed to install JDK as a fallback
      at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:206)
      at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:184)
      at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.net.UnknownHostException: cds.sun.com
      at sun.reflect.GeneratedConstructorAccessor92.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.protocol.http.HttpURLConnection.getChainedException(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at org.jvnet.robust_http_client.RetryableHttpStream.getStream(RetryableHttpStream.java:75)
      at org.jvnet.robust_http_client.RetryableHttpStream.<init>(RetryableHttpStream.java:68)
      at org.jvnet.robust_http_client.RetryableHttpStream.<init>(RetryableHttpStream.java:51)
      at hudson.tools.JDKInstaller.locate(JDKInstaller.java:308)
      at hudson.plugins.sshslaves.SSHLauncher.attemptToInstallJDK(SSHLauncher.java:285)
      at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:204)
      ... 6 more
      Caused by: java.net.UnknownHostException: cds.sun.com
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at sun.net.NetworkClient.doConnect(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.openServer(Unknown Source)
      at sun.net.www.http.HttpClient.<init>(Unknown Source)
      at sun.net.www.http.HttpClient.New(Unknown Source)
      at sun.net.www.http.HttpClient.New(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
      at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)
      at java.net.URLConnection.getHeaderFieldInt(Unknown Source)
      at java.net.URLConnection.getContentLength(Unknown Source)
      at org.jvnet.robust_http_client.RetryableHttpStream.<init>(RetryableHttpStream.java:67)
      ... 10 more
      [07/28/10 17:17:05] [SSH] Connection closed.

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          The root cause of the problem is that the actual download of JDK doesn't consult the proxy setting of Hudson. Modifying the issue accordingly.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - The root cause of the problem is that the actual download of JDK doesn't consult the proxy setting of Hudson. Modifying the issue accordingly.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : kohsuke
          Path:
          trunk/hudson/main/core/pom.xml
          trunk/hudson/main/core/src/main/java/hudson/tools/JDKInstaller.java
          trunk/www/changelog.html
          http://jenkins-ci.org/commit/36462
          Log:
          [FIXED JENKINS-7327] honor the proxy setting in Hudson. Fixed toward 1.384.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : kohsuke Path: trunk/hudson/main/core/pom.xml trunk/hudson/main/core/src/main/java/hudson/tools/JDKInstaller.java trunk/www/changelog.html http://jenkins-ci.org/commit/36462 Log: [FIXED JENKINS-7327] honor the proxy setting in Hudson. Fixed toward 1.384.
          Hide
          dogfood dogfood added a comment -

          Integrated in hudson_main_trunk #377
          [FIXED JENKINS-7327] honor the proxy setting in Hudson. Fixed toward 1.384.

          kohsuke :
          Files :

          • /trunk/hudson/main/core/pom.xml
          • /trunk/hudson/main/core/src/main/java/hudson/tools/JDKInstaller.java
          • /trunk/www/changelog.html
          Show
          dogfood dogfood added a comment - Integrated in hudson_main_trunk #377 [FIXED JENKINS-7327] honor the proxy setting in Hudson. Fixed toward 1.384. kohsuke : Files : /trunk/hudson/main/core/pom.xml /trunk/hudson/main/core/src/main/java/hudson/tools/JDKInstaller.java /trunk/www/changelog.html

            People

            Assignee:
            kohsuke Kohsuke Kawaguchi
            Reporter:
            vijayganesh_nsn vijayganesh_nsn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: