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

Unexpected exception raised when listeners are registered for certain node types and parent nodes are removed

XMLWordPrintable

      When there are listeners registered for REMOVE events which also filter nodes based on a given type and the parents of such matching nodes are removed in a given session, the following exception is raised:

      odeshape-event-dispatcher-2-thread-8 10:53:08,809 ERROR Error checking primary type 'null' with mixins of 'null' against type names of '[nt:unstructured]'
      javax.jcr.PathNotFoundException: No node exists at path '/testroot/parent' in workspace "ws1"
      	at org.modeshape.jcr.JcrSession.cachedNode(JcrSession.java:623)
      	at org.modeshape.jcr.JcrSession.node(JcrSession.java:655)
      	at org.modeshape.jcr.JcrSession.node(JcrSession.java:674)
      	at org.modeshape.jcr.JcrObservationManager$ChangeSetConverter.acceptBasedOnNodeTypeName(JcrObservationManager.java:1020)
      	at org.modeshape.jcr.JcrObservationManager$ChangeSetConverter.shouldRejectChange(JcrObservationManager.java:943)
      	at org.modeshape.jcr.JcrObservationManager$ChangeSetConverter.processChange(JcrObservationManager.java:787)
      	at org.modeshape.jcr.JcrObservationManager$ChangeSetConverter.convert(JcrObservationManager.java:766)
      	at org.modeshape.jcr.JcrObservationManager$JcrListenerAdapter.notify(JcrObservationManager.java:274)
      	at org.modeshape.jcr.bus.RepositoryChangeBus$ChangeSetListenerConsumerAdapter.consume(RepositoryChangeBus.java:161)
      	at org.modeshape.jcr.bus.RepositoryChangeBus$ChangeSetListenerConsumerAdapter.consume(RepositoryChangeBus.java:155)
      	at org.modeshape.common.collection.ring.RingBuffer$ConsumerRunner.run(RingBuffer.java:462)
      	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)
      

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

                Created:
                Updated:
                Resolved: