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

AdvancedCache.lock() when run without transactions should produce a more sane error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 5.1.2.CR1, 5.1.2.FINAL
    • 5.1.1.FINAL
    • None
    • None

      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)

              rh-ee-galder Galder ZamarreƱo
              rh-ee-galder Galder ZamarreƱo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: