[
https://issues.jboss.org/browse/ISPN-2831?page=com.atlassian.jira.plugin....
]
Christopher Wong commented on ISPN-2831:
----------------------------------------
I've seen this happen with Hibernate Search and Infinispan 5.2.4.Final:
Caused by: java.lang.NullPointerException
at
org.infinispan.lucene.readlocks.DistributedSegmentReadLocker.realFileDelete(DistributedSegmentReadLocker.java:184)
at
org.infinispan.lucene.readlocks.DistributedSegmentReadLocker.deleteOrReleaseReadLock(DistributedSegmentReadLocker.java:109)
at org.infinispan.lucene.InfinispanDirectory.deleteFile(InfinispanDirectory.java:213)
at org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:578)
at org.apache.lucene.index.IndexFileDeleter.<init>(IndexFileDeleter.java:256)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:1178)
at
org.hibernate.search.store.impl.DirectoryProviderHelper.initializeIndexIfNeeded(DirectoryProviderHelper.java:159)
at
org.hibernate.search.infinispan.impl.InfinispanDirectoryProvider.start(InfinispanDirectoryProvider.java:89)
at
org.hibernate.search.indexes.impl.DirectoryBasedIndexManager.initialize(DirectoryBasedIndexManager.java:93)
at
org.hibernate.search.indexes.impl.IndexManagerHolder.createDirectoryManager(IndexManagerHolder.java:241)
... 60 more
NPE in DistributedSegmentReadLocker
-----------------------------------
Key: ISPN-2831
URL:
https://issues.jboss.org/browse/ISPN-2831
Project: Infinispan
Issue Type: Feature Request
Affects Versions: 5.2.1.Final
Reporter: Michal Zaborec
Assignee: Sanne Grinovero
Fix For: 5.3.0.Final
possible NPE in DistributedSegmentReadLocker
{code}
java.lang.NullPointerException
at
org.infinispan.lucene.readlocks.DistributedSegmentReadLocker.realFileDelete(DistributedSegmentReadLocker.java:184)
at
org.infinispan.lucene.readlocks.DistributedSegmentReadLocker.deleteOrReleaseReadLock(DistributedSegmentReadLocker.java:109)
at org.infinispan.lucene.InfinispanDirectory.deleteFile(InfinispanDirectory.java:213)
at org.apache.lucene.index.IndexFileDeleter.deleteFile(IndexFileDeleter.java:578)
{code}
this is caused by this code:
{code}
final int bufferSize = file.getBufferSize();
if (file != null) //during optimization of index a same file could be deleted twice, so
you could see a null here
......
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira