Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-17754

exception shown on saving empty tools

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      On a fresh Jenkins (1.509.1 LTS, Windowss 7 x64, also on Ubuntu) ticking Tools Location but saving/applying without filling the form brings up error popup / throws exception.
      Steps to reproduce:
      1. Install new Jenkins
      2. Go to Configuring, tick Tools Location
      3. Click save/apply

      The error seems to come only when no tools are installed

        Attachments

          Issue Links

            Activity

            Hide
            sandro_felicioni Sandro Felicioni added a comment -

            Hi Viktor

            Thanks for the report, I confirm the same behavior on MAC OS X (Lion). However the steps to reproduce the error were slightly different:
            1. Install new Jenkins
            2. Go to Configuring (e.g. http://localhost:8080/jenkins/configure), tick Tools Locations
            3. Hit the add button under Tool Locations, but let the fields empty!
            4. Click save/apply

            Then I get a RuntimeException:
            javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class hudson.tools.ToolLocationNodeProperty from {"locations":{"key":"","home":""}}
            at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719)

            Show
            sandro_felicioni Sandro Felicioni added a comment - Hi Viktor Thanks for the report, I confirm the same behavior on MAC OS X (Lion). However the steps to reproduce the error were slightly different: 1. Install new Jenkins 2. Go to Configuring (e.g. http://localhost:8080/jenkins/configure ), tick Tools Locations 3. Hit the add button under Tool Locations, but let the fields empty! 4. Click save/apply Then I get a RuntimeException: javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class hudson.tools.ToolLocationNodeProperty from {"locations":{"key":"","home":""}} at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719)
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            IIRC it has been fixed long ago

            Show
            oleg_nenashev Oleg Nenashev added a comment - IIRC it has been fixed long ago

              People

              • Assignee:
                oleg_nenashev Oleg Nenashev
                Reporter:
                vkonnyu Viktor Könnyű
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: