Skip to content

[JENKINS-1237] JNLP error as secretKey argument is empty since build 1.175 #872

Closed

Description

@jenkins-infra-bot

Hi,

Since version 1.175 and up to current one (1.177 at the time I'm preparing this
post), our slaves fail to launch due to a JNLP error:

BadFieldException[ The field has an invalid value : ,]

at com.sun.javaws.jnl.XMLFormat$9.visitElement(Unknown Source)

...

All slaves have use a command line like:
javaws http://buildserver:8080/computer/%COMPUTERNAME%/slave-agent.jnlp

Let's have a quick look at the launch file...

<title>Slave Agent for PONTOS</title>

Hudson project

buildserver

http://buildserver:8080/tcpSlaveAgentListener/

PONTOS

... 3rd argument field (secretKey according to Engine.java) is empty.

Is it related to the recent move of the "secret.key" file management from
TcpSlaveAgentListener.java to Hudson.java?

Thank you very much,
Regis.

PS: Thanks again for the killer tool you're working on!


Originally reported by rdesgroppes, imported from: JNLP error as secretKey argument is empty since build 1.175
  • status: Closed
  • priority: Major
  • component(s): remoting
  • resolution: Fixed
  • resolved: 2008-02-02T22:11:15+00:00
  • votes: 0
  • watchers: 0
  • imported: 2025-11-25
Raw content of original issue

Hi,

Since version 1.175 and up to current one (1.177 at the time I'm preparing this post), our slaves fail to launch due to a JNLP error:

BadFieldException[ The field <argument> has an invalid value : ,]

at com.sun.javaws.jnl.XMLFormat$9.visitElement(Unknown Source)

...

All slaves have use a command line like: javaws http://buildserver:8080/computer/%COMPUTERNAME%/slave-agent.jnlp

Let's have a quick look at the launch file...

<jnlp codebase="http://buildserver:8080/computer/PONTOS/" spec="1.0+">

<information>

<title>Slave Agent for PONTOS</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="jnlpJars/jnlp-agent.jar"></jar>

<jar href="jnlpJars/remoting.jar"></jar>

</resources>

<application-desc main-class="hudson.jnlp.Main">

<argument>buildserver</argument>

<argument>http://buildserver:8080/tcpSlaveAgentListener/</argument>

<argument></argument>

<argument>PONTOS</argument>

</application-desc>

</jnlp>

... 3rd argument field (secretKey according to Engine.java) is empty.

Is it related to the recent move of the "secret.key" file management from TcpSlaveAgentListener.java to Hudson.java?

Thank you very much, Regis.

PS: Thanks again for the killer tool you're working on!

  • environment: Platform: All, OS: All

Activity

  1. jenkins-infra-bot commented on Feb 2, 2008

    @jenkins-infra-bot
    Author
    kohsuke:
    • Original comment link
    • Raw content of original comment:

      Argh!!

      I fixed this in 1.179.

    Argh!!

    I fixed this in 1.179.

  2. jenkins-infra-bot commented on Feb 9, 2008

    @jenkins-infra-bot
    Author
    kohsuke:
    • Original comment link
    • Raw content of original comment:
          • Issue 1242 has been marked as a duplicate of this issue. ***
        • Issue 1242 has been marked as a duplicate of this issue. ***
  3. jenkins-infra-bot commented on Nov 25, 2025

    @jenkins-infra-bot
    Author

    [Original is_duplicated_by from Jira: JENKINS-1242]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions