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

ClearCase NPE

    XMLWordPrintable

Details

    Description

      After upgrading to Hudson 1.339 and ClearCase Plugin 1.1 I got the following error after loading of all files from a snapshot view was finished:

      Done loading "\EVTL_COMPS01\STM" (1565 objects, copied 11855 KB).
      FATAL: null
      java.lang.NullPointerException
      at hudson.plugins.clearcase.ClearCaseUcmSCM.getBranchNames(ClearCaseUcmSCM.java:120)
      at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:424)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1013)
      at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:486)
      at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:412)
      at hudson.model.Run.run(Run.java:1179)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:122)

      I have no idea what the reason could be. I will go back to clearcase version 1.0.2. There I don't see this issue.

      Attachments

        Activity

          abayer Andrew Bayer added a comment -

          Ah, I see it. We added a new optional config variable, but in existing setups, it wouldn't be initialized. Committing a fix now.

          abayer Andrew Bayer added a comment - Ah, I see it. We added a new optional config variable, but in existing setups, it wouldn't be initialized. Committing a fix now.
          heikof heikof added a comment -

          Okay, saw your changes. Have built the plugin and will check it tomorrow morning in the office. Get back to you with feedback asap.

          heikof heikof added a comment - Okay, saw your changes. Have built the plugin and will check it tomorrow morning in the office. Get back to you with feedback asap.
          abayer Andrew Bayer added a comment -

          Fixed in trunk.

          abayer Andrew Bayer added a comment - Fixed in trunk.

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseUcmSCM.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=25723
          Log:
          [FIXED JENKINS-5238] NPE in upgraded, unmodified UCM jobs due to new optional configuration value - handling properly now

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/plugins/clearcase/src/main/java/hudson/plugins/clearcase/ClearCaseUcmSCM.java http://fisheye4.cenqua.com/changelog/hudson/?cs=25723 Log: [FIXED JENKINS-5238] NPE in upgraded, unmodified UCM jobs due to new optional configuration value - handling properly now
          heikof heikof added a comment -

          Tested your fix and the NPE is gone. Thanks for your quick response.
          BTW: Why are the commands cleartool pwv -root and cleartool lsview executed at the beginning? We have over 3000 views. Was this intended for debug only?

          heikof heikof added a comment - Tested your fix and the NPE is gone. Thanks for your quick response. BTW: Why are the commands cleartool pwv -root and cleartool lsview executed at the beginning? We have over 3000 views. Was this intended for debug only?

          People

            abayer Andrew Bayer
            heikof heikof
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: