Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2390

Possible NPE when reindexing node-type indexes

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.2.0.Final
    • 4.1.0.Final
    • Query
    • None

    Description

      When a repository has one or more node-type indexes and performs a re-indexing, the following exception may occur:

      modeshape-reindexing-4-thread-1 11:32:04,455 ERROR Error while indexing '/' in workspace 'default': null
      java.lang.NullPointerException
      	at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:333)
      	at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:988)
      	at org.modeshape.jcr.cache.document.LazyCachedNode$1.getProperty(LazyCachedNode.java:413)
      	at org.modeshape.jcr.index.local.IndexChangeAdapters$AbstractPropertyChangeAdapter.reindexNode(IndexChangeAdapters.java:487)
      	at org.modeshape.jcr.spi.index.provider.IndexChangeAdapter.index(IndexChangeAdapter.java:66)
      	at org.modeshape.jcr.spi.index.provider.IndexProvider$7.add(IndexProvider.java:802)
      	at org.modeshape.jcr.spi.index.provider.IndexProvider$1.add(IndexProvider.java:190)
      	at org.modeshape.jcr.RepositoryQueryManager.reindexContent(RepositoryQueryManager.java:435)
      	at org.modeshape.jcr.RepositoryQueryManager$2$1.scan(RepositoryQueryManager.java:282)
      	at org.modeshape.jcr.RepositoryIndexManager$ScanningRequest.onEachPathInWorkspace(RepositoryIndexManager.java:889)
      	at org.modeshape.jcr.RepositoryQueryManager$2.call(RepositoryQueryManager.java:288)
      	at org.modeshape.jcr.RepositoryQueryManager$2.call(RepositoryQueryManager.java:255)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:724)
      

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            hchiorean Horia Chiorean (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: