Windows 7 slave-agent.jnlp error: "Unable to launch application" ( FailedDownloadException: Unable to load resource ) ?

7,490 views
Skip to first unread message

Ed of the Mountain

unread,
Aug 25, 2014, 10:42:41 AM8/25/14
to jenkins...@googlegroups.com
I am setting up a new Jenkins build server and slaves at my new company.  I tried three different methods to launch from slave.  I tried disabling Windows 7 firewall.

When I use the "Launch" button from browser on slave I get an "Application Error" saying "Unable to launch the application". See details below.  

  <information>
    <title>Slave Agent for esuttonwin7x32</title>
    <vendor>Jenkins project</vendor>
    <homepage href="https://jenkins-ci.org/"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.5+"/>
    <property name="hudson.showWindowsServiceInstallLink" value="true"/>
  </resources>
  <application-desc main-class="hudson.remoting.jnlp.Main">
    <argument>b87430ff884367f280e63836f435e157657555ae6fb465483001a0e3a8679d6a</argument>
    <argument>esuttonwin7x32</argument>
    <argument>-url</argument>
    <argument>http://127.0.0.1:8080/</argument>
    <argument>-url</argument>
    <argument>http://172.17.144.33:8080/</argument>
  </application-desc>
</jnlp>

com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://127.0.0.1:8080/jnlpJars/remoting.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
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.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$6.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(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.getInputStream0(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessController.doPrivileged(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Everything is running in a VM including the Jenkins master and slave:
  • Master: Jenkins 1.576 ( Ubuntu 14.04 LTS)
  • Master: java version "1.7.0_65"

  • Slave: Windows 7 x32
  • Slave: java version "1.8.0_05"
The following two commands fail to connect to server from slave:

-Ed

Scott Evans

unread,
Aug 25, 2014, 10:53:10 AM8/25/14
to jenkins...@googlegroups.com
Ed,

I would guess you have your Jenkins server configured to be considered at 127.0.0.1 (i.e. loopback) and so any referece to it from other machine (i.e. slaves) are trying to hit 127.0.0.1 for the URL which (since it's the loopback address) is trying to contact to itself rather than the master.  I'd suggest looking in your jenkins master configuration and looking at the Jenkins Location URL.  My guess is that it's pointing to 127.0.0.1.  Change that to the actual ip/name of your Jenkins server and then the launch urls should be correct. 

Scott


--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Eddie Sutton

unread,
Aug 25, 2014, 10:54:20 AM8/25/14
to jenkins...@googlegroups.com
Never mind. Sorry for the noise.

Go to Jenkins->Manage Jenkins->Configure System

Search page for 127 and replace 127.0.0.1 with server's actual IP address.

-Ed


On Mon, Aug 25, 2014 at 9:42 AM, Ed of the Mountain <edsu...@gmail.com> wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/ct7TvG14yNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

Eddie Sutton

unread,
Aug 25, 2014, 10:55:46 AM8/25/14
to jenkins...@googlegroups.com
Thank you Scott.  Your guess was correct. 

Thank you for your patient and informative reply!

-Ed


--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/ct7TvG14yNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.

olivier Noumbi

unread,
May 19, 2020, 4:35:16 PM5/19/20
to Jenkins Users
Hey Ed

I change the master ip address in the config but I am still getting this error:

com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://11.16.114.193:31763/jnlpJars/remoting.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Note that 11.16.114.193 is my master IP address. Any suggestions please?
To unsubscribe from this group and stop receiving emails from it, send an email to jenkins...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/ct7TvG14yNs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkins...@googlegroups.com.

makafui cudjoe

unread,
May 21, 2020, 4:04:22 PM5/21/20
to Jenkins Users
Hi Olivier,

Can you confirm the port number 31763 is what Jenkins is configured to listen on ?

You also need to check if you are able to reach the master IP from the agent node. You can perform some ping test.

Reply all
Reply to author
Forward
0 new messages