Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2071

IndexMerger throws null pointer exception without stacktrace

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.5.5
    • jackrabbit-core
    • None
    • Windows OS (XP, Vista)
      Linux RHEL
       

    Description

      I get the following errors in my log file randomly. It seems to happen most often when creating the lucene indices, but has happened at other times as well:

      [IndexMerger] ERROR - Error while merging indexes: java.lang.NullPointerException

      The code at org.apache.jackrabbit.core.query.lucene.IndexMerger line 344 appears to be the point where the error is logged, but no other information is provided because the throwable isn't sent to the log (only the toString() version of the exception). I haven't been able to tell if any indexes are corrupt when this happens.

      I suggest that the logger be changed to determine where the null pointer is coming from first, then resolve the actual issue that is occurring.

      Attachments

        1. IndexMerger.patch
          0.5 kB
          Chris Schmidt

        Activity

          People

            Unassigned Unassigned
            cschmidt Chris Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: