Fail to connect slave (from Window XP) with 1.314

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Fail to connect slave (from Window XP) with 1.314

ctlam

Hi all,

It seems to be a problem when running a slave:
When I click on the 1st method "Launch agent from browser on slave", or the
2nd method I got the allowing Exception:
(It seems like a "/" was missing from the http:/.........  because even the  slave page has the missing "/" http:/... )

com.sun.deploy.net.FailedDownloadException: Unable to load resource: http:/172.18.4.73/jnlpJars/remoting.jar
        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
        at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
        at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
        at com.sun.javaws.Launcher.downloadResources(Unknown Source)
        at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.launch(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

The Launch File is:
<jnlp codebase="http:/172.18.4.73/computer/Integration-2/" spec="1.0+"><information><title>Slave Agent for Integration-2</title><vendor>Hudson project</vendor><homepage href="https://hudson.dev.java.net/"></homepage></information><security><all-permissions></all-permissions></security><resources><j2se version="1.5+"></j2se><jar href="http:/172.18.4.73/jnlpJars/remoting.jar"></jar><property value="true" name="hudson.showWindowsServiceInstallLink"></property></resources><application-desc main-class="hudson.remoting.jnlp.Main"><argument>064af2132a430080f419efbd2cf4924b0e531eb2a22815e3d89acc984e2be56f</argument><argument>Integration-2</argument><argument>-url</argument><argument>http:/172.18.4.73/</argument><argument>-url</argument><argument>http://172.18.4.73/</argument></application-desc></jnlp>

Warpped Exception is:
java.net.ConnectException: Connection refused: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(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.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 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.getCacheEntry(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
        at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
        at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
        at com.sun.javaws.Launcher.downloadResources(Unknown Source)
        at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
        at com.sun.javaws.Launcher.launch(Unknown Source)
        at com.sun.javaws.Main.launchApp(Unknown Source)
        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
        at com.sun.javaws.Main$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

When I tried to run the 3rd method by the command line, I also got the error:
C:\>
C:\>java -jar slave.jar -jnlpUrl http://172.18.4.73/computer/Integration-2/slave-agent.jnlp
Jul 3, 2009 6:32:19 PM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Hudson agent is running in headless mode.
Jul 3, 2009 6:32:19 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http:/172.18.4.73/, http://172.18.4.73/]
Jul 3, 2009 6:32:19 PM hudson.remoting.jnlp.Main$CuiListener error
SEVERE: null
java.lang.NullPointerException
        at sun.net.www.ParseUtil.toURI(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
        at hudson.remoting.Engine.run(Engine.java:134)


We were staying on 1.285 before, and it was working fine, so we don't know when did it get broken... :(

Thanks.
Dominic

Reply | Threaded
Open this post in threaded view
|

Re: Fail to connect slave (from Window XP) with 1.314

Sami Tikka
I think you have a typo in Hudson's configuration. In "Manage Hudson"
-> "Configure System" there is a field where you enter Hudson's own
URL. That URL gets used in a lot of places, including the URL where
slaves download stuff. Verify the URL is correct.

-- Sami

2009/7/4 ctlam <[hidden email]>:

>
>
> Hi all,
>
> It seems to be a problem when running a slave:
> When I click on the 1st method "Launch agent from browser on slave", or the
> 2nd method I got the allowing Exception:
> (It seems like a "/" was missing from the http:/.........  because even the
> slave page has the missing "/" http:/... )
>
> com.sun.deploy.net.FailedDownloadException: Unable to load resource:
> http:/172.18.4.73/jnlpJars/remoting.jar
>        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
>        at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
>        at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
>        at com.sun.javaws.Launcher.downloadResources(Unknown Source)
>        at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
>        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
>        at com.sun.javaws.Launcher.launch(Unknown Source)
>        at com.sun.javaws.Main.launchApp(Unknown Source)
>        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
>        at com.sun.javaws.Main$1.run(Unknown Source)
>        at java.lang.Thread.run(Unknown Source)
>
> The Launch File is:
> <jnlp codebase="http:/172.18.4.73/computer/Integration-2/"
> spec="1.0+"><information><title>Slave Agent for
> Integration-2</title><vendor>Hudson project</vendor><homepage
> href="https://hudson.dev.java.net/"></homepage></information><security><all-permissions></all-permissions></security><resources><j2se
> version="1.5+"></j2se><jar
> href="http:/172.18.4.73/jnlpJars/remoting.jar"></jar><property value="true"
> name="hudson.showWindowsServiceInstallLink"></property></resources><application-desc
> main-class="hudson.remoting.jnlp.Main"><argument>064af2132a430080f419efbd2cf4924b0e531eb2a22815e3d89acc984e2be56f</argument><argument>Integration-2</argument><argument>-url</argument><argument>http:/172.18.4.73/</argument><argument>-url</argument><argument>http://172.18.4.73/</argument></application-desc></jnlp>
>
> Warpped Exception is:
> java.net.ConnectException: Connection refused: connect
>        at java.net.PlainSocketImpl.socketConnect(Native Method)
>        at java.net.PlainSocketImpl.doConnect(Unknown Source)
>        at java.net.PlainSocketImpl.connectToAddress(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.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 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.getCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
>        at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
>        at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
>        at com.sun.javaws.Launcher.downloadResources(Unknown Source)
>        at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
>        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
>        at com.sun.javaws.Launcher.launch(Unknown Source)
>        at com.sun.javaws.Main.launchApp(Unknown Source)
>        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
>        at com.sun.javaws.Main$1.run(Unknown Source)
>        at java.lang.Thread.run(Unknown Source)
>
> When I tried to run the 3rd method by the command line, I also got the
> error:
> C:\>
> C:\>java -jar slave.jar -jnlpUrl
> http://172.18.4.73/computer/Integration-2/slave-agent.jnlp
> Jul 3, 2009 6:32:19 PM hudson.remoting.jnlp.Main$CuiListener <init>
> INFO: Hudson agent is running in headless mode.
> Jul 3, 2009 6:32:19 PM hudson.remoting.jnlp.Main$CuiListener status
> INFO: Locating server among [http:/172.18.4.73/, http://172.18.4.73/]
> Jul 3, 2009 6:32:19 PM hudson.remoting.jnlp.Main$CuiListener error
> SEVERE: null
> java.lang.NullPointerException
>        at sun.net.www.ParseUtil.toURI(Unknown Source)
>        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
> Source)
>        at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
> Source)
>        at hudson.remoting.Engine.run(Engine.java:134)
>
>
> We were staying on 1.285 before, and it was working fine, so we don't know
> when did it get broken... :(
>
> Thanks.
> Dominic
>
>
> --
> View this message in context: http://www.nabble.com/Fail-to-connect-slave-%28from-Window-XP%29-with-1.314-tp24330505p24330505.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Fail to connect slave (from Window XP) with 1.314

ctlam
Thanks!  It works!

My bad. :-(

Dominic


Sami Tikka wrote
I think you have a typo in Hudson's configuration. In "Manage Hudson"
-> "Configure System" there is a field where you enter Hudson's own
URL. That URL gets used in a lot of places, including the URL where
slaves download stuff. Verify the URL is correct.

-- Sami

2009/7/4 ctlam <dominic.lam@ziosoftinc.com>:
>
>
> Hi all,
>
> It seems to be a problem when running a slave:
> When I click on the 1st method "Launch agent from browser on slave", or the
> 2nd method I got the allowing Exception:
> (It seems like a "/" was missing from the http:/.........  because even the
> slave page has the missing "/" http:/... )
>
> com.sun.deploy.net.FailedDownloadException: Unable to load resource:
> http:/172.18.4.73/jnlpJars/remoting.jar
>        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
>        at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
>        at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
>        at com.sun.javaws.Launcher.downloadResources(Unknown Source)
>        at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
>        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
>        at com.sun.javaws.Launcher.launch(Unknown Source)
>        at com.sun.javaws.Main.launchApp(Unknown Source)
>        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
>        at com.sun.javaws.Main$1.run(Unknown Source)
>        at java.lang.Thread.run(Unknown Source)
>
> The Launch File is:
> <jnlp codebase="http:/172.18.4.73/computer/Integration-2/"
> spec="1.0+"><information><title>Slave Agent for
> Integration-2</title><vendor>Hudson project</vendor><homepage
> href="https://hudson.dev.java.net/"></homepage></information><security><all-permissions></all-permissions></security><resources><j2se
> version="1.5+"></j2se><jar
> href="http:/172.18.4.73/jnlpJars/remoting.jar"></jar><property value="true"
> name="hudson.showWindowsServiceInstallLink"></property></resources><application-desc
> main-class="hudson.remoting.jnlp.Main"><argument>064af2132a430080f419efbd2cf4924b0e531eb2a22815e3d89acc984e2be56f</argument><argument>Integration-2</argument><argument>-url</argument><argument>http:/172.18.4.73/</argument><argument>-url</argument><argument>http://172.18.4.73/</argument></application-desc></jnlp>
>
> Warpped Exception is:
> java.net.ConnectException: Connection refused: connect
>        at java.net.PlainSocketImpl.socketConnect(Native Method)
>        at java.net.PlainSocketImpl.doConnect(Unknown Source)
>        at java.net.PlainSocketImpl.connectToAddress(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.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 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.getCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
>        at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
>        at com.sun.javaws.LaunchDownload.downloadJarFiles(Unknown Source)
>        at com.sun.javaws.LaunchDownload.downloadEagerorAll(Unknown Source)
>        at com.sun.javaws.Launcher.downloadResources(Unknown Source)
>        at com.sun.javaws.Launcher.prepareLaunchFile(Unknown Source)
>        at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
>        at com.sun.javaws.Launcher.launch(Unknown Source)
>        at com.sun.javaws.Main.launchApp(Unknown Source)
>        at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
>        at com.sun.javaws.Main$1.run(Unknown Source)
>        at java.lang.Thread.run(Unknown Source)
>
> When I tried to run the 3rd method by the command line, I also got the
> error:
> C:\>
> C:\>java -jar slave.jar -jnlpUrl
> http://172.18.4.73/computer/Integration-2/slave-agent.jnlp
> Jul 3, 2009 6:32:19 PM hudson.remoting.jnlp.Main$CuiListener <init>
> INFO: Hudson agent is running in headless mode.
> Jul 3, 2009 6:32:19 PM hudson.remoting.jnlp.Main$CuiListener status
> INFO: Locating server among [http:/172.18.4.73/, http://172.18.4.73/]
> Jul 3, 2009 6:32:19 PM hudson.remoting.jnlp.Main$CuiListener error
> SEVERE: null
> java.lang.NullPointerException
>        at sun.net.www.ParseUtil.toURI(Unknown Source)
>        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown
> Source)
>        at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown
> Source)
>        at hudson.remoting.Engine.run(Engine.java:134)
>
>
> We were staying on 1.285 before, and it was working fine, so we don't know
> when did it get broken... :(
>
> Thanks.
> Dominic
>
>
> --
> View this message in context: http://www.nabble.com/Fail-to-connect-slave-%28from-Window-XP%29-with-1.314-tp24330505p24330505.html
> Sent from the Hudson users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
> For additional commands, e-mail: users-help@hudson.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@hudson.dev.java.net
For additional commands, e-mail: users-help@hudson.dev.java.net