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

fatal null point exeption when running Running cleartool setcs to update clearcase view

    Details

    • Similar Issues:

      Description

      Since updating to latest Jenkins and clearcase plugin, i have been unable to successfully run a build past the updating view stage.

      $ cleartool -version
      ClearCase version 8.0.0.01 (Wed Dec 28 01:01:29 EST 2011) (8.0.0.01.00_2011D.FCS)
      ClearCase version 8.0.0.02 (Thu Apr 05 18:31:09 EST 2012) (8.0.0.02.00_2012A.FCS)
      ClearCase version 8.0.0.03 (Thu Jun 21 16:08:51 EST 2012) (8.0.0.03.00_2012B.FCS)
      ClearCase version 8.0.0.04 (Thu Sep 13 15:30:21 EDT 2012) (8.0.0.04.00_2012C.FCS)
      ClearCase version 8.0.0.05 (Thu Nov 29 22:26:07 EST 2012) (8.0.0.05.00_2012D.D121129)
      @(#) MVFS version 8.0.0.5 (Wed Nov 14 01:04:52 2012)

      cleartool 8.0.0.5 (Fri Nov 16 15:11:24 2012)
      db_server 8.0.0.5 (Wed Nov 21 01:26:48 2012)

      VOB database schema versions: 54, 80

      Running cleartool setcs, this operation may take a while
      [view] $ cleartool setcs -current -overwrite
      FATAL: null
      java.lang.NullPointerException
      at hudson.plugins.clearcase.action.BaseSnapshotCheckoutAction.checkout(BaseSnapshotCheckoutAction.java:103)
      at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:666)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1394)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
      at hudson.model.Run.execute(Run.java:1593)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:247)

        Attachments

          Activity

          Hide
          vlatombe Vincent Latombe added a comment -

          Could you provide the output for 'cleartool setcs -current -overwrite' in the same directory?

          Show
          vlatombe Vincent Latombe added a comment - Could you provide the output for 'cleartool setcs -current -overwrite' in the same directory?
          Hide
          plagued85 Brad Grimmett added a comment -

          The output of 'cleartool setcs -current -overwrite' returns correctly when executed from command prompt in the the \Jenkins\workspace\project\view directory. I'm using base clearcase only from a static view

          .............
          Processing dir "1062_GEN3\target_testing\Automation Testing Framework\Automation Framework User Interface\scripts".
          ....
          End dir "1062_GEN3\target_testing\Automation Testing Framework\Automation Framework User Interface\scripts".
          ..
          End dir "1062_GEN3\target_testing\Automation Testing Framework\Automation Framework User Interface".
          .
          End dir "1062_GEN3\target_testing\Automation Testing Framework".
          .
          End dir "1062_GEN3\target_testing".
          ..
          End dir "1062_GEN3".
          .
          Done loading "\1062_GEN3" (10315 objects, copied 0 KB).

          Show
          plagued85 Brad Grimmett added a comment - The output of 'cleartool setcs -current -overwrite' returns correctly when executed from command prompt in the the \Jenkins\workspace\project\view directory. I'm using base clearcase only from a static view ............. Processing dir "1062_GEN3\target_testing\Automation Testing Framework\Automation Framework User Interface\scripts". .... End dir "1062_GEN3\target_testing\Automation Testing Framework\Automation Framework User Interface\scripts". .. End dir "1062_GEN3\target_testing\Automation Testing Framework\Automation Framework User Interface". . End dir "1062_GEN3\target_testing\Automation Testing Framework". . End dir "1062_GEN3\target_testing". .. End dir "1062_GEN3". . Done loading "\1062_GEN3" (10315 objects, copied 0 KB).
          Hide
          plagued85 Brad Grimmett added a comment -

          I created a new project to see if it was a corrupted configuration file. I get the same result

          Building in workspace C:\Program Files\Jenkins\workspace\testproject
          [INFO] computeChangeLogBeforeCheckout = false
          [INFO] computeChangeLogAfterCheckout = false
          [testproject] $ cleartool lsview jenkins_master_testproject_hudson
          cleartool: Error: No matching entries found for view tag "jenkins_master_testproject_hudson".
          FATAL: Base ClearCase failed. exit code=1
          [testproject] $ cleartool mkview -snapshot -tag jenkins_master_testproject_hudson -stgloc WindowsViews view
          Created view.
          Host-local path: RationalLic.mydomain.com:E:\ViewStorage\mydomain\jenkins\view.2.vws
          Global path: \\RationalLic.mydomain.com\ViewStorage\mydomain\jenkins\view.2.vws
          Created snapshot view directory "view".
          [testproject] $ cleartool -version
          ClearCase version 8.0.0.01 (Wed Dec 28 01:01:29 EST 2011) (8.0.0.01.00_2011D.FCS)
          ClearCase version 8.0.0.02 (Thu Apr 05 18:31:09 EST 2012) (8.0.0.02.00_2012A.FCS)
          ClearCase version 8.0.0.03 (Thu Jun 21 16:08:51 EST 2012) (8.0.0.03.00_2012B.FCS)
          ClearCase version 8.0.0.04 (Thu Sep 13 15:30:21 EDT 2012) (8.0.0.04.00_2012C.FCS)
          ClearCase version 8.0.0.05 (Thu Nov 29 22:26:07 EST 2012) (8.0.0.05.00_2012D.D121129)
          @(#) MVFS version 8.0.0.5 (Wed Nov 14 01:04:52 2012)

          cleartool 8.0.0.5 (Fri Nov 16 15:11:24 2012)
          db_server 8.0.0.5 (Wed Nov 21 01:26:48 2012)

          VOB database schema versions: 54, 80

          Running cleartool setcs, this operation may take a while
          [view] $ cleartool setcs -overwrite "C:\Program Files\Jenkins\workspace\testproject\configspec6260587506161929095.txt"
          FATAL: null
          java.lang.NullPointerException
          at hudson.plugins.clearcase.action.BaseSnapshotCheckoutAction.checkout(BaseSnapshotCheckoutAction.java:103)
          at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:666)
          at hudson.model.AbstractProject.checkout(AbstractProject.java:1394)
          at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676)
          at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581)
          at hudson.model.Run.execute(Run.java:1593)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:247)

          Show
          plagued85 Brad Grimmett added a comment - I created a new project to see if it was a corrupted configuration file. I get the same result Building in workspace C:\Program Files\Jenkins\workspace\testproject [INFO] computeChangeLogBeforeCheckout = false [INFO] computeChangeLogAfterCheckout = false [testproject] $ cleartool lsview jenkins_master_testproject_hudson cleartool: Error: No matching entries found for view tag "jenkins_master_testproject_hudson". FATAL: Base ClearCase failed. exit code=1 [testproject] $ cleartool mkview -snapshot -tag jenkins_master_testproject_hudson -stgloc WindowsViews view Created view. Host-local path: RationalLic.mydomain.com:E:\ViewStorage\mydomain\jenkins\view.2.vws Global path: \\RationalLic.mydomain.com\ViewStorage\mydomain\jenkins\view.2.vws Created snapshot view directory "view". [testproject] $ cleartool -version ClearCase version 8.0.0.01 (Wed Dec 28 01:01:29 EST 2011) (8.0.0.01.00_2011D.FCS) ClearCase version 8.0.0.02 (Thu Apr 05 18:31:09 EST 2012) (8.0.0.02.00_2012A.FCS) ClearCase version 8.0.0.03 (Thu Jun 21 16:08:51 EST 2012) (8.0.0.03.00_2012B.FCS) ClearCase version 8.0.0.04 (Thu Sep 13 15:30:21 EDT 2012) (8.0.0.04.00_2012C.FCS) ClearCase version 8.0.0.05 (Thu Nov 29 22:26:07 EST 2012) (8.0.0.05.00_2012D.D121129) @(#) MVFS version 8.0.0.5 (Wed Nov 14 01:04:52 2012) cleartool 8.0.0.5 (Fri Nov 16 15:11:24 2012) db_server 8.0.0.5 (Wed Nov 21 01:26:48 2012) VOB database schema versions: 54, 80 Running cleartool setcs, this operation may take a while [view] $ cleartool setcs -overwrite "C:\Program Files\Jenkins\workspace\testproject\configspec6260587506161929095.txt" FATAL: null java.lang.NullPointerException at hudson.plugins.clearcase.action.BaseSnapshotCheckoutAction.checkout(BaseSnapshotCheckoutAction.java:103) at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:666) at hudson.model.AbstractProject.checkout(AbstractProject.java:1394) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:676) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:581) at hudson.model.Run.execute(Run.java:1593) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:247)
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          src/main/java/hudson/plugins/clearcase/CleartoolUpdateResult.java
          src/main/java/hudson/plugins/clearcase/action/BaseSnapshotCheckoutAction.java
          src/test/java/hudson/plugins/clearcase/action/BaseSnapshotCheckoutActionTest.java
          http://jenkins-ci.org/commit/clearcase-plugin/a4bb13e37ac3ad1e3d4f31ce5cd40fc7154c20f6
          Log:
          [FIXED JENKINS-18994] NPE when no updt file is generated

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: src/main/java/hudson/plugins/clearcase/CleartoolUpdateResult.java src/main/java/hudson/plugins/clearcase/action/BaseSnapshotCheckoutAction.java src/test/java/hudson/plugins/clearcase/action/BaseSnapshotCheckoutActionTest.java http://jenkins-ci.org/commit/clearcase-plugin/a4bb13e37ac3ad1e3d4f31ce5cd40fc7154c20f6 Log: [FIXED JENKINS-18994] NPE when no updt file is generated
          Show
          vlatombe Vincent Latombe added a comment - Could you try with the following snapshot, see if the issue is fixed? https://jenkins.ci.cloudbees.com/job/plugins/job/clearcase-plugin/35/org.jenkins-ci.plugins$clearcase/artifact/org.jenkins-ci.plugins/clearcase/1.4-SNAPSHOT/clearcase-1.4-SNAPSHOT.hpi
          Hide
          plagued85 Brad Grimmett added a comment -

          Works like a charm. Thank You for the quick fix Vincent!

          Show
          plagued85 Brad Grimmett added a comment - Works like a charm. Thank You for the quick fix Vincent!

            People

            • Assignee:
              vlatombe Vincent Latombe
              Reporter:
              plagued85 Brad Grimmett
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: