[
https://jira.jboss.org/browse/ISPN-676?page=com.atlassian.jira.plugin.sys...
]
Vladimir Blagojevic resolved ISPN-676.
--------------------------------------
Assignee: Vladimir Blagojevic (was: Manik Surtani)
Fix Version/s: 4.2.0.BETA1
5.0.0.BETA1
Resolution: Duplicate Issue
Duplicate of ISPN-674.
NullPointerException in CacheNotifierImpl.notifyCacheEntryEvicted
-----------------------------------------------------------------
Key: ISPN-676
URL:
https://jira.jboss.org/browse/ISPN-676
Project: Infinispan
Issue Type: Bug
Components: Core API
Affects Versions: 4.1.0.Final
Environment: ubuntu 10.04 i486 32bits, JVM 1.6_018-b07 Hotspot standalone app
Reporter: Franck Garcia
Assignee: Vladimir Blagojevic
Fix For: 4.2.0.BETA1, 5.0.0.BETA1
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)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira