Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-676

NullPointerException in CacheNotifierImpl.notifyCacheEntryEvicted

XMLWordPrintable

    • Hide

      trivial (passed context is explicitly null in EvictionManager.preevict EvictionManager.postEvict)

      Show
      trivial (passed context is explicitly null in EvictionManager.preevict EvictionManager.postEvict)

      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)

              vblagoje Vladimir Blagojevic (Inactive)
              garcimouche Franck Garcia (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: