• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Java build 1.7.0_06-b24 64-bit

      When I invoke http://jenkins-ci.org/jenkins.jnlp found at https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins#MeetJenkins-TestDrive I get:

      java.lang.NullPointerException
      at com.sun.javaws.Launcher.executeApplication(Unknown Source)
      at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

      I tracked the problem down to a missing "codebase" attribute on the top-level "jnlp" element. Once you provide a value it Jenkins launches just fine.

      According to http://weblogs.java.net/blog/kohsuke/archive/2009/07/why_cant_we_get.html this attribute was made optional in Java6 update 18 but then was made mandatory again for security reasons.

          [JENKINS-14924] jenkins.jnlp throws NullPointerException

          cowwoc created issue -
          evernat made changes -
          Description Original: When I invoke hudson.jnlp found at https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins#MeetJenkins-TestDrive I get:

          java.lang.NullPointerException
          at com.sun.javaws.Launcher.executeApplication(Unknown Source)
          at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
          at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
          at com.sun.javaws.Launcher.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)

          I tracked the problem down to a missing "codebase" attribute on the top-level "jnlp" element. Once you provide a value it Jenkins launches just fine.

          According to http://weblogs.java.net/blog/kohsuke/archive/2009/07/why_cant_we_get.html this attribute was made optional in Java6 update 18 but then was made mandatory again for security reasons.
          New: When I invoke http://jenkins-ci.org/jenkins.jnlp found at https://wiki.jenkins-ci.org/display/JENKINS/Meet+Jenkins#MeetJenkins-TestDrive I get:

          java.lang.NullPointerException
          at com.sun.javaws.Launcher.executeApplication(Unknown Source)
          at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
          at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
          at com.sun.javaws.Launcher.run(Unknown Source)
          at java.lang.Thread.run(Unknown Source)

          I tracked the problem down to a missing "codebase" attribute on the top-level "jnlp" element. Once you provide a value it Jenkins launches just fine.

          According to http://weblogs.java.net/blog/kohsuke/archive/2009/07/why_cant_we_get.html this attribute was made optional in Java6 update 18 but then was made mandatory again for security reasons.
          Summary Original: hudson.jnlp throws NullPointerException New: jenkins.jnlp throws NullPointerException
          evernat made changes -
          Link New: This issue is duplicated by JENKINS-12148 [ JENKINS-12148 ]

          evernat added a comment -

          Issue reproduced by opening http://jenkins-ci.org/jenkins.jnlp in a browser.
          The solution is to add codebase in the jenkins.jnlp file:
          <jnlp spec="1.0+" codebase="http://jenkins-ci.org/jenkins.jnlp">

          Note that the wiki page still says "Launch Jenkins through Java Web Start for a test drive.", but there is no link in the page to do so.

          There should be a link to http://jenkins-ci.org/jenkins.jnlp in this phrase.

          evernat added a comment - Issue reproduced by opening http://jenkins-ci.org/jenkins.jnlp in a browser. The solution is to add codebase in the jenkins.jnlp file: <jnlp spec="1.0+" codebase="http://jenkins-ci.org/jenkins.jnlp"> Note that the wiki page still says "Launch Jenkins through Java Web Start for a test drive.", but there is no link in the page to do so. There should be a link to http://jenkins-ci.org/jenkins.jnlp in this phrase.
          evernat made changes -
          Link New: This issue is duplicated by JENKINS-19238 [ JENKINS-19238 ]

          evernat added a comment -

          <j2se version="1.5+"/>
          should also be replaced by
          <j2se version="1.6+"/>

          evernat added a comment - <j2se version="1.5+"/> should also be replaced by <j2se version="1.6+"/>

          Oleg Nenashev added a comment -

          Is this bug alive?

          Oleg Nenashev added a comment - Is this bug alive?

          evernat added a comment -

          Yes absolutely.
          It's just a matter of adding a static codebase in a file (and 1.6+ by the way), and adding a link in the phrase "Launch Jenkins through Java Web Start for a test drive." of the wiki page.
          Except that, it works perfectly.

          evernat added a comment - Yes absolutely. It's just a matter of adding a static codebase in a file (and 1.6+ by the way), and adding a link in the phrase "Launch Jenkins through Java Web Start for a test drive." of the wiki page. Except that, it works perfectly.

          Oleg Nenashev added a comment -

          Reassigned the issue to the core

          Oleg Nenashev added a comment - Reassigned the issue to the core
          Oleg Nenashev made changes -
          Component/s New: core [ 15593 ]
          Component/s Original: www [ 15484 ]

            Unassigned Unassigned
            cowwoc cowwoc
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: