[infinispan-issues] [JBoss JIRA] (ISPN-1887) AdvancedCache.lock() when run without transactions should produce a more sane error

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Mon Feb 27 04:16:36 EST 2012


     [ https://issues.jboss.org/browse/ISPN-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Galder Zamarreño updated ISPN-1887:
-----------------------------------

              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/infinispan/infinispan/pull/976

    
> 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

       



More information about the infinispan-issues mailing list