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

NullPointerException with CLI create-job

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: cli
    • Labels:
      None
    • Environment:
      Ubuntu, Hudson 1.364

      Description

      When I try to create a new job by using the CLI create-job command, I get a NullPointerException:

      java.lang.NullPointerException
              at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:40)
              at hudson.util.CaseInsensitiveComparator.compare(CaseInsensitiveComparator.java:34)
              at java.util.TreeMap.getEntryUsingComparator(TreeMap.java:351)
              at java.util.TreeMap.getEntry(TreeMap.java:322)
              at java.util.TreeMap.get(TreeMap.java:255)
              at hudson.util.CopyOnWriteMap.get(CopyOnWriteMap.java:89)
              at hudson.model.Hudson.getItem(Hudson.java:1907)
              at hudson.cli.CreateJobCommand.run(CreateJobCommand.java:47)
              at hudson.cli.CLICommand.main(CLICommand.java:176)
      

      I run the command using:

      java -jar hudson-cli.jar -s http://hudson:8080/hudson/ create-job < test-config.xml
      

      I have attached the test-config.xml configuration file I try to create the job from.

        Activity

        dcoraboe dcoraboe created issue -
        dcoraboe dcoraboe made changes -
        Field Original Value New Value
        Environment Ubuntu Ubuntu, Hudson 1.364
        dcoraboe dcoraboe made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Resolution Not A Defect [ 7 ]
        drulli Ulli Hafner made changes -
        Resolution Not A Defect [ 7 ]
        Status Closed [ 6 ] Reopened [ 4 ]
        Assignee Ulli Hafner [ drulli ]
        drulli Ulli Hafner made changes -
        Status Reopened [ 4 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            drulli Ulli Hafner
            Reporter:
            dcoraboe dcoraboe
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: