-
1. Re: IllegalStateException - ActionStatus.COMMITTED is not in a valid state to be invoking cache operations on
sudheerk84 May 29, 2012 12:30 PM (in response to sudheerk84)Also I was expecting @TransactionCompleted , is called only when transtcion is completed and committed. Isnt that true ? Or shoudl i be checking event.isPre() false to know if teh transtcion commit is complete.
-
2. Re: IllegalStateException - ActionStatus.COMMITTED is not in a valid state to be invoking cache operations on
galder.zamarreno May 31, 2012 5:16 AM (in response to sudheerk84)Do you get the same issue when event.isPre() is false?
-
3. Re: IllegalStateException - ActionStatus.COMMITTED is not in a valid state to be invoking cache operations on
sudheerk84 May 31, 2012 5:49 AM (in response to galder.zamarreno)Yes i do get teh same issue with event.isPre() set to false.
Just to note all these happens for me with - replicated mode, Asyn replication and syn listeners .
When listener is made asyn with other settinsg as same all works fine. I am really puzzled about it.
Any clue what i may be doing wrong ?
-
4. Re: IllegalStateException - ActionStatus.COMMITTED is not in a valid state to be invoking cache operations on
galder.zamarreno Jun 4, 2012 7:09 AM (in response to sudheerk84)The problem is that callback is still happening within a committed transaction and you cannot make any further cache calls in that transaction. I've created a bug for it in https://issues.jboss.org/browse/ISPN-2090 (with potential workarounds)
It's basically a limitation of the current architechture which we'll revisit when we implement JSR-107 notifications.
-
5. Re: IllegalStateException - ActionStatus.COMMITTED is not in a valid state to be invoking cache operations on
sudheerk84 Jun 6, 2012 3:39 AM (in response to galder.zamarreno)Thansk Galder,
I think the second option works for me , as i need to set sync = true.
-
6. Re: IllegalStateException - ActionStatus.COMMITTED is not in a valid state to be invoking cache operations on
sudheerk84 Jun 6, 2012 8:53 AM (in response to sudheerk84)Based on your reply, what is teh best way to get the transaction manager instance inside the @TransactionCompleted call ?
-
7. Re: IllegalStateException - ActionStatus.COMMITTED is not in a valid state to be invoking cache operations on
galder.zamarreno Jun 12, 2012 10:21 AM (in response to sudheerk84)event.getCache().getAdvancedCache().getTransactionManager?