You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Gang Yang (JIRA)" <de...@tuscany.apache.org> on 2011/02/23 23:02:38 UTC

[jira] Created: (TUSCANY-3838) PolicyHandler.afterInvoke() is skipped when AxisFault occurs

PolicyHandler.afterInvoke() is skipped when AxisFault occurs
------------------------------------------------------------

                 Key: TUSCANY-3838
                 URL: https://issues.apache.org/jira/browse/TUSCANY-3838
             Project: Tuscany
          Issue Type: Improvement
          Components: Java SCA Policy
    Affects Versions: Java-SCA-1.6
         Environment: Windows 2003.
            Reporter: Gang Yang


When AxisFault is generated from invoking a remote service using WS binding, the reference side PolicyHandler.afterInvoke() is not called.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (TUSCANY-3838) PolicyHandler.afterInvoke() is skipped when AxisFault occurs

Posted by "Gang Yang (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gang Yang updated TUSCANY-3838:
-------------------------------

    Attachment: code-snippet.txt

> PolicyHandler.afterInvoke() is skipped when AxisFault occurs
> ------------------------------------------------------------
>
>                 Key: TUSCANY-3838
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3838
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Policy
>    Affects Versions: Java-SCA-1.6
>         Environment: Windows 2003.
>            Reporter: Gang Yang
>         Attachments: code-snippet.txt
>
>
> When AxisFault is generated from invoking a remote service using WS binding, the reference side PolicyHandler.afterInvoke() is not called.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (TUSCANY-3838) PolicyHandler.afterInvoke() is skipped when AxisFault occurs

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Nash reassigned TUSCANY-3838:
-----------------------------------

    Assignee: Simon Nash

> PolicyHandler.afterInvoke() is skipped when AxisFault occurs
> ------------------------------------------------------------
>
>                 Key: TUSCANY-3838
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3838
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Policy
>    Affects Versions: Java-SCA-1.6
>         Environment: Windows 2003.
>            Reporter: Gang Yang
>            Assignee: Simon Nash
>         Attachments: code-snippet.txt
>
>
> When AxisFault is generated from invoking a remote service using WS binding, the reference side PolicyHandler.afterInvoke() is not called.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (TUSCANY-3838) PolicyHandler.afterInvoke() is skipped when AxisFault occurs

Posted by "Simon Nash (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Nash resolved TUSCANY-3838.
---------------------------------

       Resolution: Fixed
    Fix Version/s: Java-SCA-1.x

Thanks for the patch. I've applied this to the 1.x trunk under revision r1086757, with a small change to use a finally block instead of copying the policy handler invocation code.

> PolicyHandler.afterInvoke() is skipped when AxisFault occurs
> ------------------------------------------------------------
>
>                 Key: TUSCANY-3838
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3838
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Policy
>    Affects Versions: Java-SCA-1.6
>         Environment: Windows 2003.
>            Reporter: Gang Yang
>            Assignee: Simon Nash
>             Fix For: Java-SCA-1.x
>
>         Attachments: code-snippet.txt
>
>
> When AxisFault is generated from invoking a remote service using WS binding, the reference side PolicyHandler.afterInvoke() is not called.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (TUSCANY-3838) PolicyHandler.afterInvoke() is skipped when AxisFault occurs

Posted by "Simon Laws (Closed) (JIRA)" <de...@tuscany.apache.org>.
     [ https://issues.apache.org/jira/browse/TUSCANY-3838?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Simon Laws closed TUSCANY-3838.
-------------------------------


I believe this is fixed now. The policy runtime is slightly different in 2.x when compared to 1.x. In 2.x we have policy interceptors on the operation wire and on the binding wire and the binding wire providers get the opportunity to configure the binding. In the exception case the exception, wrapped in a Message object, should flow back along the wire and through the interceptors in the same way as a non-exception response does. 
                
> PolicyHandler.afterInvoke() is skipped when AxisFault occurs
> ------------------------------------------------------------
>
>                 Key: TUSCANY-3838
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-3838
>             Project: Tuscany
>          Issue Type: Improvement
>          Components: Java SCA Policy
>    Affects Versions: Java-SCA-1.6
>         Environment: Windows 2003.
>            Reporter: Gang Yang
>            Assignee: Simon Nash
>             Fix For: Java-SCA-1.x
>
>         Attachments: code-snippet.txt
>
>
> When AxisFault is generated from invoking a remote service using WS binding, the reference side PolicyHandler.afterInvoke() is not called.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira