You are viewing a plain text version of this content. The canonical link for it is here.
Posted to savan-dev@ws.apache.org by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2010/05/02 16:48:56 UTC

[jira] Resolved: (AXIS2-4616) Problem with phases on the Output flow

     [ https://issues.apache.org/jira/browse/AXIS2-4616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-4616.
-------------------------------------------------

    Resolution: Fixed

fixed with revision 940239

> Problem with phases on the Output flow
> --------------------------------------
>
>                 Key: AXIS2-4616
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4616
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.1, 1.5, 1.4.1
>            Reporter: Sorin Boeru
>             Fix For: 1.4.1
>
>
> I created a Phase which overrides the checkPreconditions and checkPostconditions methods in the Phase class.
> If I add this Phase to the input flow in the axis2.xml file, it passes through the mentioned methods.
> But if I add the same Phase to the output flow, it doesn't pass through these methods.
> In both cases, I use a global Phase.
> From what I saw in the kernel jar, there's a problem in the PhasesInfo.class.
> The getGlobalOutPhaseList() method, when adding a new phase to the output flow list, it calls the method copyPhase(phase), which recreates the phase by adding the name, description and handlers. But by doing so, the initial Phase is cast down from the class I defined (for example MyPhase extends Phase) to a simple Phase and the checkPreconditions and checkPostconditions methods are no longer available. Therefore, in this case, it pases through the checkPrecondition method which is in the Phase class.
> For the input flow, the method getGlobalInFlow() in PhasesInfo doesn't call the copyPhase method, and the original phase remains how it was.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org