[infinispan-issues] [JBoss JIRA] (ISPN-2090) Cache get from TransactionCompleted throws IllegalStateException

Manik Surtani (JIRA) jira-events at lists.jboss.org
Fri Nov 16 06:33:21 EST 2012


    [ https://issues.jboss.org/browse/ISPN-2090?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12734834#comment-12734834 ] 

Manik Surtani commented on ISPN-2090:
-------------------------------------

I presume this only happens when you use {{@Listener (sync = true)}} and the callback is on the same thread as the transaction.  I suppose the right answer here is to suspend the transaction before invoking the listener?
                
> Cache get from TransactionCompleted throws IllegalStateException
> ----------------------------------------------------------------
>
>                 Key: ISPN-2090
>                 URL: https://issues.jboss.org/browse/ISPN-2090
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Listeners, Transactions
>            Reporter: Galder Zamarreño
>            Assignee: Mircea Markus
>
> When implementing @TransactionCompleted in a sync listener, calling cache.get() even when event.isPre=false throws:
> {code}IllegalStateException - ActionStatus.COMMITTED  is not in a valid state to be invoking cache operations on{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the infinispan-issues mailing list