Repository navigation
[JENKINS-7327] JDK download fails to take the proxy setting into account #688
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.(RetryableHttpStream.java:68)
at org.jvnet.robust_http_client.RetryableHttpStream.(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.(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.(RetryableHttpStream.java:67)
... 10 more
[07/28/10 17:17:05] [SSH] Connection closed.
Originally reported by vijayganesh_nsn, imported from: JDK download fails to take the proxy setting into account
- assignee:
kohsuke
- status: Resolved
- priority: Major
- component(s): ssh-slaves-plugin
- resolution: Fixed
- resolved: 2010-10-30T12:23:01+00:00
- votes: 0
- watchers: 0
- imported: 20251211-223321
Raw content of original issue
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.
- environment:
Linux
Activity
jenkins-infra-bot commentedon Oct 30, 2010
Raw content of original 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.
jenkins-infra-bot commentedon Oct 30, 2010
Raw content of original 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.
jenkins-infra-bot commentedon Oct 30, 2010
Raw content of original comment:
Integrated in
hudson_main_trunk #377
[FIXED JENKINS-7327] honor the proxy setting in Hudson. Fixed toward 1.384.
kohsuke :
Files :