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

NPE during Mercurial indexing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 2.5.2
    • 2.5.0
    • Indexing

    Description

      A NullPointerException occurs when FishEye asks for the manifest at a revision and cannot resolve one of the files to a revision in the repository index:

      Caused by: java.lang.NullPointerException
      	at com.atlassian.fisheye.hg.HgCache$2.visit(HgCache.java:220)
      	at com.atlassian.fisheye.hg.HgCache$2.visit(HgCache.java:217)
      	at com.atlassian.fisheye.hg.client.HgClientManifestDAO$1.doProcessLine(HgClientManifestDAO.java:66)
      	at com.atlassian.fisheye.dvcs.handler.DvcsLineOutputHandler.processLine(DvcsLineOutputHandler.java:23)
      	at com.atlassian.utils.process.LineOutputHandler.process(LineOutputHandler.java:49)
      	at com.atlassian.utils.process.LineOutputHandler.process(LineOutputHandler.java:36)
      	at com.atlassian.utils.process.PluggableProcessHandler.processOutput(PluggableProcessHandler.java:34)
      	at com.atlassian.utils.process.ExternalProcess$4.doTask(ExternalProcess.java:265)
      	... 4 more
      

      FishEye is asking hg for the manifest for the repository at some revision (the list of files that exist at that revision). It gets a list of path+version entries from hg and tries to resolve each of those to a file revision in the InfinityDb database.

      It is failing to resolve one of those entries and gets null as a result. Later on, the code tries to get an attribute from the null filerevision resulting in the NPE.

      At this point the filerevision should not be null, so this is probably a symptom of an underlying issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mheemskerk Michael Heemskerk (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: