Details
Description
org.apache.jackrabbit.core.query.lucene.NodeIteratorImpl#fetchNext has a bug where it causes the iterator never to move on to the next element (node).
When the iterator is used after the session has been logged out the FetchNext#perform operation is never called because SessionState#perform throws an exception when first checking if the session is alive. This causes the current iterator node never to be reset.