[
https://issues.jboss.org/browse/ISPN-1778?page=com.atlassian.jira.plugin....
]
Dan Berindei commented on ISPN-1778:
------------------------------------
The original reporter confirmed that he had an inconsistency in his hashCode/equals
implementation:
https://community.jboss.org/message/648205#648205
I'm keeping the issue open for now in case we think of a lightweight way to diagnose
this kind of problems and to log a better error message to the user.
NullPointerException when putting into Cache
--------------------------------------------
Key: ISPN-1778
URL:
https://issues.jboss.org/browse/ISPN-1778
Project: Infinispan
Issue Type: Bug
Affects Versions: 5.1.0.CR4
Reporter: Galder Zamarreño
Assignee: Dan Berindei
Fix For: 5.2.0.FINAL
NPE thrown:
{code}16:06:31,680 ERROR [org.infinispan.interceptors.InvocationContextInterceptor]
(http-localhost.localdomain-127.0.0.1-8080-4) ISPN000136: Execution error:
java.lang.NullPointerException
at org.infinispan.commands.write.PutKeyValueCommand.perform(PutKeyValueCommand.java:82)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at org.infinispan.interceptors.CallInterceptor.handleDefault(CallInterceptor.java:83)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:61)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.DistributionInterceptor.handleWriteCommand(DistributionInterceptor.java:464)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.DistributionInterceptor.visitPutKeyValueCommand(DistributionInterceptor.java:274)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.EntryWrappingInterceptor.invokeNextAndApplyChanges(EntryWrappingInterceptor.java:199)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.EntryWrappingInterceptor.visitPutKeyValueCommand(EntryWrappingInterceptor.java:134)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.locking.NonTransactionalLockingInterceptor.visitPutKeyValueCommand(NonTransactionalLockingInterceptor.java:68)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.base.CommandInterceptor.handleDefault(CommandInterceptor.java:130)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:61)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.StateTransferLockInterceptor.handleWithRetries(StateTransferLockInterceptor.java:201)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.StateTransferLockInterceptor.visitPutKeyValueCommand(StateTransferLockInterceptor.java:131)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.base.CommandInterceptor.invokeNextInterceptor(CommandInterceptor.java:116)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.InvocationContextInterceptor.handleAll(InvocationContextInterceptor.java:116)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.interceptors.InvocationContextInterceptor.handleDefault(InvocationContextInterceptor.java:76)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.commands.AbstractVisitor.visitPutKeyValueCommand(AbstractVisitor.java:61)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at
org.infinispan.commands.write.PutKeyValueCommand.acceptVisitor(PutKeyValueCommand.java:76)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at org.infinispan.CacheImpl.executeCommandAndCommitIfNeeded(CacheImpl.java:941)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at org.infinispan.CacheImpl.put(CacheImpl.java:654)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at org.infinispan.CacheImpl.put(CacheImpl.java:646)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
at org.infinispan.CacheSupport.put(CacheSupport.java:52)
[infinispan-core-5.1.0.CR4.jar:5.1.0.CR4]
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira