Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 35087 invoked from network); 2 May 2010 14:49:21 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 May 2010 14:49:21 -0000 Received: (qmail 97851 invoked by uid 500); 2 May 2010 14:49:20 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 97489 invoked by uid 500); 2 May 2010 14:49:20 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 97481 invoked by uid 99); 2 May 2010 14:49:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 May 2010 14:49:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 May 2010 14:49:18 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o42EmuHl020252 for ; Sun, 2 May 2010 14:48:57 GMT Message-ID: <7977409.5541272811736782.JavaMail.jira@thor> Date: Sun, 2 May 2010 10:48:56 -0400 (EDT) From: "Amila Chinthaka Suriarachchi (JIRA)" To: java-dev@axis.apache.org Subject: [jira] Resolved: (AXIS2-4616) Problem with phases on the Output flow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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