-
Bug
-
Resolution: Duplicate
-
Major
-
4.1.0.Final
I attached a @Listener to specifically listen on @CacheEntryEvicted event. But a NPE is thrown
java.lang.NullPointerException
at org.infinispan.notifications.cachelistener.CacheNotifierImpl.notifyCacheEntryEvicted(CacheNotifierImpl.java:192)
at org.infinispan.eviction.EvictionManagerImpl.preEvict(EvictionManagerImpl.java:147)
at org.infinispan.container.DefaultDataContainer$DefaultEvictionListener.preEvict(DefaultDataContainer.java:242)
at org.infinispan.util.concurrent.BoundedConcurrentHashMap$LRU.execute(BoundedConcurrentHashMap.java:433)
at org.infinispan.util.concurrent.BoundedConcurrentHashMap$Segment.put(BoundedConcurrentHashMap.java:977)
at org.infinispan.util.concurrent.BoundedConcurrentHashMap.put(BoundedConcurrentHashMap.java:1487)
at org.infinispan.container.DefaultDataContainer.put(DefaultDataContainer.java:178)
at org.infinispan.container.entries.ReadCommittedEntry.commit(ReadCommittedEntry.java:160)
at org.infinispan.interceptors.DistLockingInterceptor.commitEntry(DistLockingInterceptor.java:33)
at org.infinispan.interceptors.LockingInterceptor.cleanupLocks(LockingInterceptor.java:281)
at org.infinispan.interceptors.LockingInterceptor.visitCommitCommand(LockingInterceptor.java:88)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.CacheStoreInterceptor.visitCommitCommand(CacheStoreInterceptor.java:136)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:132)
at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:113)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.NotificationInterceptor.visitCommitCommand(NotificationInterceptor.java:55)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.TxInterceptor.visitCommitCommand(TxInterceptor.java:101)
at org.infinispan.interceptors.DistTxInterceptor.visitCommitCommand(DistTxInterceptor.java:71)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:57)
at org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:38)
at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:113)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:118)
at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:76)
at org.infinispan.commands.AbstractVisitor.visitCommitCommand(AbstractVisitor.java:113)
at org.infinispan.commands.tx.CommitCommand.acceptVisitor(CommitCommand.java:50)
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:273)
at org.infinispan.transaction.xa.TransactionXaAdapter.commit(TransactionXaAdapter.java:113)
at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:304)
at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:97)
at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:96)
at org.infinispan.batch.BatchContainer.resolveTransaction(BatchContainer.java:130)
at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:107)
at org.infinispan.batch.BatchContainer.endBatch(BatchContainer.java:92)
at org.infinispan.CacheDelegate.endBatch(CacheDelegate.java:375)
at org.infinispan.lucene.InfinispanIndexOutput.doFlush(InfinispanIndexOutput.java:169)
at org.infinispan.lucene.InfinispanIndexOutput.newChunk(InfinispanIndexOutput.java:100)
at org.infinispan.lucene.InfinispanIndexOutput.writeBytes(InfinispanIndexOutput.java:126)
at org.apache.lucene.store.IndexOutput.writeBytes(IndexOutput.java:43)
at org.apache.lucene.store.Directory.copy(Directory.java:197)