[infinispan-issues] [JBoss JIRA] Created: (ISPN-638) Exceptions thrown by command invocation in CallInterceptor.handleDefault(...) are hidden by catch cause

Paul Ferraro (JIRA) jira-events at lists.jboss.org
Thu Sep 9 22:21:49 EDT 2010


Exceptions thrown by command invocation in CallInterceptor.handleDefault(...) are hidden by catch cause
-------------------------------------------------------------------------------------------------------

                 Key: ISPN-638
                 URL: https://jira.jboss.org/browse/ISPN-638
             Project: Infinispan
          Issue Type: Bug
    Affects Versions: 4.1.0.Final
            Reporter: Paul Ferraro
            Assignee: Manik Surtani
         Attachments: patch.txt

If CallInterceptor.handleDefault(...) is called with a RemoteTxInvocationContext, and if command invocation throws an exception, the catch clause ends up hiding this with an IllegalStateException.
The culprit is RemoteTxInvocationContext.isValidRunningTx(), which internally calls RemoteTxInvocationContext.getRunningTransaction(), which always throws an ISE.
If this method would instead return null, RemoteTxInvocationContext.isValidRunningTx() will return false, and all is well, and the genuine exception can propagate properly.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list