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

java.lang.NullPointerException pointer exception using 1.5.4-SNAPSHOT

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: clearcase-plugin
    • Environment:
      Jenkins: 1.580.3, ClearCase Plugin: 1.5.4-SNAPSHOT, Jenkins Server: RHEL 5.7, ClearCase: 7.1.2.15
    • Similar Issues:

      Description

      While testing the 1.5.4-SNAPSHOT for another issue, I see a new issue where the plugin gets a java.lang.NullPointerException when the plugin is running "ct diffbl". Reverting to the 1.5.3 version makes the issue go away.

      Console log:

      ...
      ...
      ...
      [mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191] $ /usr/atria//bin/cleartool lshistory -all -since 2-apr-15.06:31:38utc+0000 -fmt '\"%Nd\" \"%u\" \"%En\" \"%Vn\" \"%e\" \"%o\" \"%[activity]p\" \n%c\n' -branch brtype:Draco_ML_int -nco vobs/mrf_vob1/OAMP vobs/mrf_vob1/Draco
      "20150402.201242" "rkanniap" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Mpc/Cp/inc/MpcCpSpa_PortData.h" "/main/Draco_Import_int/Draco_ML_int/4" "create version" "checkin" "deliver.rkanniap_Draco_ML.20150402.201014"

      "20150402.201242" "rkanniap" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Mpc/Cp/src/scp/MpcCpScp_CallLegRdncy.cpp" "/main/Draco_Import_int/Draco_ML_int/5" "create version" "checkin" "deliver.rkanniap_Draco_ML.20150402.201014"

      "20150402.201242" "rkanniap" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Mpc/Cp/src/spa/MpcCpSpa_RdncyMgr.cpp" "/main/Draco_Import_int/Draco_ML_int/6" "create version" "checkin" "deliver.rkanniap_Draco_ML.20150402.201014"

      "20150402.201242" "rkanniap" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Mpc/Cp/src/spa/MpcCpSpa_PortDataRdncy.cpp" "/main/Draco_Import_int/Draco_ML_int/5" "create version" "checkin" "deliver.rkanniap_Draco_ML.20150402.201014"

      "20150402.201242" "rkanniap" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Mpc/Cp/src/spa/MpcCpSpa_ScrmSpa.cpp" "/main/Draco_Import_int/Draco_ML_int/16" "create version" "checkin" "deliver.rkanniap_Draco_ML.20150402.201014"

      "20150402.201242" "rkanniap" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Mpc/Cp/src/spa/MpcCpSpa_PortData.cpp" "/main/Draco_Import_int/Draco_ML_int/8" "create version" "checkin" "deliver.rkanniap_Draco_ML.20150402.201014"

      "20150402.201242" "rkanniap" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Mpc/Cp/src/scp/MpcCpScp_PortControl.cpp" "/main/Draco_ML_int/5" "create version" "checkin" "deliver.rkanniap_Draco_ML.20150402.201014"

      "20150402.165346" "apaulraj" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Scc/Cp/src/smp/SccCpSmp_coreAffinityTbl.cpp" "/main/Draco_Import_int/Draco_ML_int/5" "create version" "checkin" "deliver.apaulraj_Draco_ML.20150402.165419"

      "20150402.151802" "apaulraj" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Scc/Macros/bin/card/Set_MPC_Service_Mode" "/main/Draco_Import_int/Draco_ML_int/4" "create version" "checkin" "deliver.apaulraj_Draco_ML.20150402.151806"

      "20150402.151802" "apaulraj" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Scc/Cp/src/smp/SccCpSmp_commShelfTbl.cpp" "/main/Draco_Import_int/Draco_ML_int/1" "create version" "checkin" "deliver.apaulraj_Draco_ML.20150402.151806"

      "20150402.151732" "apaulraj" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Scc/Cp/src/smp/SccCpSmp_commShelfTbl.cpp" "/main/Draco_Import_int/Draco_ML_int/0" "create version" "mkbranch" ""

      "20150402.151732" "apaulraj" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Scc/Cp/src/smp/SccCpSmp_commShelfTbl.cpp" "/main/Draco_Import_int/Draco_ML_int" "create branch" "mkbranch" ""

      "20150402.151517" "ankumar" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Mpc/Cp/src/cc/MpcCpCc_ProcCom.cpp" "/main/Draco_Import_int/Draco_ML_int/8" "create version" "checkin" "deliver.ankumar_Draco_ML.20150402.151351"

      "20150402.143604" "sagupta" "/view/mrfbldac_Mainline_Draco_Draco_ML-AllTargets_191/vobs/mrf_vob1/Draco/Mpc/Cp/src/b2bscp/MpcCpB2BScp_SdpGetFunctions.cpp" "/main/Draco_Import_int/Draco_ML_int/7" "create version" "checkin" "deliver.sagupta_Draco_ML.20150402.143701"

      [Draco_ML-AllTargets] $ /usr/atria//bin/cleartool diffbl -activities baseline:PLATFORM_1.03@/vobs/mrf_pvob baseline:PLATFORM_1.05@/vobs/mrf_pvob
      Comparing the following:
      PLATFORM_1.03@/vobs/mrf_pvob
      PLATFORM_1.05@/vobs/mrf_pvob
      Differences:
      >> deliver.fchaliss_Platform_ML_dev.20150325.114544@/vobs/mrf_pvob "deliver fchaliss_Platform_ML_dev on 25-03-2015 11:45:44."
      >> NCQ_Release_PLATFORM_1.04_binary_checkins@/vobs/mrf_pvob "NCQ: Release PLATFORM_1.04 binary checkins"
      >> deliver.hrajpoot_Platform_ML.20150331.141741@/vobs/mrf_pvob "deliver hrajpoot_Platform_ML on 31-Mar-15 2:17:41 PM."
      >> NCQ_Release_PLATFORM_1.05_binary_checkins@/vobs/mrf_pvob "NCQ: Release PLATFORM_1.05 binary checkins"
      >> MAS00074221@/vobs/mrf_pvob "MAS00074221"
      >> MAS00057851_After_SCC_Swithover_LED_on_chasis_Facelplate_rese@/vobs/mrf_pvob "MAS00057851:After SCC Swithover LED on chasis Facelplate reset"

      FATAL: null
      java.lang.NullPointerException
      at hudson.plugins.clearcase.history.DefaultFilter.accept(DefaultFilter.java:36)
      at hudson.plugins.clearcase.history.FilterChain.accept(FilterChain.java:50)
      at hudson.plugins.clearcase.history.AbstractHistoryAction.filterEntries(AbstractHistoryAction.java:139)
      at hudson.plugins.clearcase.history.AbstractHistoryAction.runAndFilterLsHistory(AbstractHistoryAction.java:260)
      at hudson.plugins.clearcase.history.AbstractHistoryAction.getChanges(AbstractHistoryAction.java:81)
      at hudson.plugins.clearcase.ucm.UcmHistoryAction.getChanges(UcmHistoryAction.java:109)
      at hudson.plugins.clearcase.AbstractClearCaseScm.saveChangeLog(AbstractClearCaseScm.java:1098)
      at hudson.plugins.clearcase.AbstractClearCaseScm.checkout(AbstractClearCaseScm.java:388)
      at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
      at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
      at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
      at hudson.model.Run.execute(Run.java:1745)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:89)
      at hudson.model.Executor.run(Executor.java:240)

        Attachments

          Activity

          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/history/DefaultFilter.java
          src/main/java/hudson/plugins/clearcase/history/FieldFilter.java
          src/main/java/hudson/plugins/clearcase/history/HistoryEntry.java
          src/main/java/hudson/plugins/clearcase/ucm/EntryListAdapter.java
          src/test/java/hudson/plugins/clearcase/history/FieldFilterTest.java
          http://jenkins-ci.org/commit/clearcase-plugin/f8984fb7b5669d269e9488337e1bd25148a4f932
          Log:
          JENKINS-27733 Handle gracefully history entries with no version
          information (only ucm activity metadata)

          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/history/DefaultFilter.java src/main/java/hudson/plugins/clearcase/history/FieldFilter.java src/main/java/hudson/plugins/clearcase/history/HistoryEntry.java src/main/java/hudson/plugins/clearcase/ucm/EntryListAdapter.java src/test/java/hudson/plugins/clearcase/history/FieldFilterTest.java http://jenkins-ci.org/commit/clearcase-plugin/f8984fb7b5669d269e9488337e1bd25148a4f932 Log: JENKINS-27733 Handle gracefully history entries with no version information (only ucm activity metadata)
          Hide
          vlatombe Vincent Latombe added a comment -

          Released in 1.6

          Show
          vlatombe Vincent Latombe added a comment - Released in 1.6

            People

            • Assignee:
              vlatombe Vincent Latombe
              Reporter:
              john_lengeling John Lengeling
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: