[
https://issues.jboss.org/browse/ISPN-1887?page=com.atlassian.jira.plugin....
]
Manik Surtani updated ISPN-1887:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
AdvancedCache.lock() when run without transactions should produce a
more sane error
-----------------------------------------------------------------------------------
Key: ISPN-1887
URL:
https://issues.jboss.org/browse/ISPN-1887
Project: Infinispan
Issue Type: Bug
Affects Versions: 5.1.1.FINAL
Reporter: Galder ZamarreƱo
Assignee: Galder ZamarreƱo
Fix For: 5.1.2.CR1, 5.1.2.FINAL
2) using AdvancedCache::lock w/o Tx present results in CCE
java.lang.ClassCastException: org.infinispan.context.impl.NonTxInvocationContext cannot
be cast to org.infinispan.context.impl.TxInvocationContext
at
org.infinispan.commands.control.LockControlCommand.acceptVisitor(LockControlCommand.java:129)
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)
at org.infinispan.CacheImpl.lock(CacheImpl.java:481)
at org.infinispan.CacheImpl.lock(CacheImpl.java:468)
at
org.infinispan.AbstractDelegatingAdvancedCache.lock(AbstractDelegatingAdvancedCache.java:153)
--
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