Uploaded image for project: 'FishEye'
  1. FishEye
  2. FE-2733

Error while indexing a perforce repository

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.3.6
    • 2.3.5
    • Indexing

    Description

      Error during scanning p4 repository:

      2010-08-09 14:07:55,560 DEBUG [InitialPinger1] fisheye.app P4CliUtils-dumpCommandLine - [local:1666/] Executing /data/p4/bin/p4 -p local:1666 -u p4user -ztag fixes //...@31622,31881 
      2010-08-09 14:07:55,769 DEBUG [InitialPinger1] fisheye.app P4Process-finish - Exception processing command /data/p4/bin/p4 -p local:1666 -u p4user -ztag fixes //...@31622,31881 
      java.lang.NullPointerException
      	at com.cenqua.fisheye.perforce.client.P4Client$5.processGroup(P4Client.java:206)
      	at com.cenqua.fisheye.perforce.client.P4ZTagExtractor.processLine(P4ZTagExtractor.java:43)
      	at com.cenqua.fisheye.perforce.client.P4OutputLineProcessor.processOutput(P4OutputLineProcessor.java:32)
      	at com.cenqua.fisheye.perforce.client.P4Exec$4.processOutput(P4Exec.java:180)
      	at com.cenqua.fisheye.perforce.client.P4Process$2.doTask(P4Process.java:130)
      

      Basically there is a fix listed for a change which is not in the changelist, therefore it throws a NullPointerException. The code in P4Client.java:

      public void processGroup(Map<String, String> group) {
                      // This is a fix of a job
                      String jobName = group.get("Job");
                      long changeId = Long.parseLong(group.get("Change"));
                      long fixDate = Long.parseLong(group.get("Date"));
                      String user = group.get("User");
                      P4Fix fix = new P4Fix(jobName, changeId, fixDate, user);
                      P4ChangeList change = changeLists.get(changeId);
                      change.addFix(fix);
      

      Attachments

        Activity

          People

            cmacneill Conor
            mgchong Ming Giet Chong [Atlassian]
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0h
                0h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h