You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by iksrazal <ik...@gmail.com> on 2005/12/22 14:26:04 UTC

[axis2] Invoking Handler 'null' in Phase 'loggingPhase'

Hi all, 

I'm trying to add the Logging module to my app. This is my axis2.xml phase 
order: 

    <phaseOrder type="inflow">
        <!--  System pre defined phases       -->
        <phase name="TransportIn"/>
        <phase name="PreDispatch"/>
        <phase name="Dispatch">
            <handler name="AddressingBasedDispatcher"
                     
class="org.apache.axis2.engine.AddressingBasedDispatcher">
                <order phase="Dispatch"/>
            </handler>
             <handler name="RequestURIBasedDispatcher"
                     
class="org.apache.axis2.engine.RequestURIBasedDispatcher">
                <order phase="Dispatch"/>
            </handler>
             <handler name="SOAPActionBasedDispatcher"
                     
class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
                <order phase="Dispatch"/>
            </handler>
             <handler name="SOAPMessageBodyBasedDispatcher"
                     
class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
                <order phase="Dispatch"/>
            </handler>
        </phase>
        <phase name="PostDispatch">
             <handler name="DispatchPostConditionsEvaluator"
                     class="org.apache.axis2.engine.DispatchingChecker">
                <order phase="PostDispatch"/>
            </handler>
            <handler name="InstanceDispatcher"
                     class="org.apache.axis2.engine.InstanceDispatcher">
                <order phase="PostDispatch"/>
            </handler>
            <handler name="SOAPProcessingModelChecker"
                     
class="org.apache.axis2.engine.SOAPProcessingModelChecker">
                <order phase="PostDispatch"/>
            </handler>
        </phase>
        <!--  System pre defined phases       -->
        <!--   After Postdispatch phase module author or or service author can 
add any phase he want      -->
        <phase name="userphase1"/>
        <phase name="loggingPhase"/>
    </phaseOrder>
    <phaseOrder type="outflow">
        <!--      user can add his own phases to this area  -->
        <phase name="userphase1"/>
        <phase name="loggingPhase"/>
        <!--system predefined phase-->
        <!--these phase will run irrespective of the service-->
        <phase name="PolicyDetermination"/>
        <phase name="MessageOut"/>
    </phaseOrder>
    <phaseOrder type="INfaultflow">
        <!--      user can add his own phases to this area  -->
        <phase name="userphase1"/>
        <phase name="loggingPhase"/>
    </phaseOrder>
    <phaseOrder type="Outfaultflow">
        <!--      user can add his own phases to this area  -->
        <phase name="userphase1"/>
        <phase name="loggingPhase"/>
        <phase name="PolicyDetermination"/>
        <phase name="MessageOut"/>
    </phaseOrder>

Here's my services.xml : 

<!--Auto generated Axis Service XML-->
<service name="SWASmartEndpoint">
<module ref="logging"/>
<parameter locked="false" 
name="ServiceClass">com.siemens.swa.webservices.foconet.SWASmartEndpointSkeleton</parameter>
<!--Mounting the method informarServicoList-->
<operation name="informarServicoList">
<messageReceiver 
class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
</operation>
<!--Mounting the method informarEquipamentoRetirado-->
<operation name="informarEquipamentoRetirado">
<messageReceiver 
class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
</operation>
<!--Mounting the method testService-->
<operation name="testService">
<messageReceiver 
class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
</operation>
<!--Mounting the method smartLogin-->
<operation name="smartLogin">
<messageReceiver 
class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
</operation>
<!--Mounting the method informarTecnicosList-->
<operation name="informarTecnicosList">
<messageReceiver 
class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
</operation>
</service>

I have axis2 in 'debug'  -  I can see all of its messages, but no message 
context messages are appearing. What I do see is: 

 005-12-22 11:18:50,651 
[org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher] - Checking for 
Operation using SOAP message body's first child's local name : smartLogin
2005-12-22 11:18:50,652 
[org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher] - Found 
AxisOperation : smartLogin
2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking phase 
"PostDispatch"
2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking Handler 
'DispatchPostConditionsEvaluator' in Phase 'PostDispatch'
2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking Handler 
'InstanceDispatcher' in Phase 'PostDispatch'
2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking Handler 
'SOAPProcessingModelChecker' in Phase 'PostDispatch'
2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking phase 
"userphase1"
2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking phase 
"loggingPhase"
2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking Handler 
'null' in Phase 'loggingPhase'
2005-12-22 11:18:50,685 
[org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder] - Build the 
OMElelment user_nameBy the StaxSOAPModelBuilder
2005-12-22 11:18:50,685 
[org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder] - Build the 
OMElelment user_passwordBy the StaxSOAPModelBuilder
2005-12-22 11:18:51,470 [org.apache.axis2.engine.AxisEngine] - Axis Engine 
Started
2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking phase 
"userphase1"
2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking phase 
"loggingPhase"
2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking Handler 
'null' in Phase 'loggingPhase'
2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking phase 
"PolicyDetermination"
2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking phase 
"MessageOut"
2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking Handler 
'AddressingOutHandler' in Phase 'MessageOut'

Yet I can't see anything related to my the MessageContext of my service 
smartLogin  . 

Please help,
iksrazal

Re: [axis2] Invoking Handler 'null' in Phase 'loggingPhase'

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi iksrazal;

If you are using Tomcat you can check whether your handler is in the right 
place.
 Go to web admin - administration
    goto operation chain when you click that  (if you have engaged the 
module to that particular operation) , then you will be able to see your 
handler. Else something has gone wrong.

Please double check the module.xml as well.

And tell me which axis version are u using (or are u using current SVN code 
?)

if you can not figure that out pls send me the mail with your module so that 
I can have a look at that.

Thanks,
 Deepal
................................................................
~Future is Open~

----- Original Message ----- 
From: "iksrazal" <ik...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Friday, December 23, 2005 5:08 PM
Subject: Re: [axis2] Invoking Handler 'null' in Phase 'loggingPhase'


> Thanks for the reply Deepal,
>
> The LogHandler has:
>
> public void invoke(MessageContext msgContext) throws AxisFault {
>        log.info(msgContext.getEnvelope().toString());
>    }
>
> Those are the MessageContext logs I'd like to see. Not sure why I'm not.
>
> iksrazal
>
> Em Sexta 23 Dezembro 2005 07:11, o Deepal Jayasinghe escreveu:
>> Hi iksrazal;
>>
>> The simple reason  is I can not see any logs in Message Context , because
>> MessageConetxt is a property bag and I think we do not need to log
>> operation in MessageConetxt.
>>
>> Any way I will try to add some logs to Message Context if it is required.
>>
>> Thanks,
>>  Deepal
>> ................................................................
>> ~Future is Open~
>>
>> ----- Original Message -----
>> From: "iksrazal" <ik...@gmail.com>
>> To: <ax...@ws.apache.org>
>> Sent: Thursday, December 22, 2005 7:26 PM
>> Subject: [axis2] Invoking Handler 'null' in Phase 'loggingPhase'
>>
>> > Hi all,
>> >
>> > I'm trying to add the Logging module to my app. This is my axis2.xml
>> > phase order:
>> >
>> >    <phaseOrder type="inflow">
>> >        <!--  System pre defined phases       -->
>> >        <phase name="TransportIn"/>
>> >        <phase name="PreDispatch"/>
>> >        <phase name="Dispatch">
>> >            <handler name="AddressingBasedDispatcher"
>> >
>> > class="org.apache.axis2.engine.AddressingBasedDispatcher">
>> >                <order phase="Dispatch"/>
>> >            </handler>
>> >             <handler name="RequestURIBasedDispatcher"
>> >
>> > class="org.apache.axis2.engine.RequestURIBasedDispatcher">
>> >                <order phase="Dispatch"/>
>> >            </handler>
>> >             <handler name="SOAPActionBasedDispatcher"
>> >
>> > class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
>> >                <order phase="Dispatch"/>
>> >            </handler>
>> >             <handler name="SOAPMessageBodyBasedDispatcher"
>> >
>> > class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
>> >                <order phase="Dispatch"/>
>> >            </handler>
>> >        </phase>
>> >        <phase name="PostDispatch">
>> >             <handler name="DispatchPostConditionsEvaluator"
>> >                     class="org.apache.axis2.engine.DispatchingChecker">
>> >                <order phase="PostDispatch"/>
>> >            </handler>
>> >            <handler name="InstanceDispatcher"
>> >                     class="org.apache.axis2.engine.InstanceDispatcher">
>> >                <order phase="PostDispatch"/>
>> >            </handler>
>> >            <handler name="SOAPProcessingModelChecker"
>> >
>> > class="org.apache.axis2.engine.SOAPProcessingModelChecker">
>> >                <order phase="PostDispatch"/>
>> >            </handler>
>> >        </phase>
>> >        <!--  System pre defined phases       -->
>> >        <!--   After Postdispatch phase module author or or service 
>> > author
>> > can
>> > add any phase he want      -->
>> >        <phase name="userphase1"/>
>> >        <phase name="loggingPhase"/>
>> >    </phaseOrder>
>> >    <phaseOrder type="outflow">
>> >        <!--      user can add his own phases to this area  -->
>> >        <phase name="userphase1"/>
>> >        <phase name="loggingPhase"/>
>> >        <!--system predefined phase-->
>> >        <!--these phase will run irrespective of the service-->
>> >        <phase name="PolicyDetermination"/>
>> >        <phase name="MessageOut"/>
>> >    </phaseOrder>
>> >    <phaseOrder type="INfaultflow">
>> >        <!--      user can add his own phases to this area  -->
>> >        <phase name="userphase1"/>
>> >        <phase name="loggingPhase"/>
>> >    </phaseOrder>
>> >    <phaseOrder type="Outfaultflow">
>> >        <!--      user can add his own phases to this area  -->
>> >        <phase name="userphase1"/>
>> >        <phase name="loggingPhase"/>
>> >        <phase name="PolicyDetermination"/>
>> >        <phase name="MessageOut"/>
>> >    </phaseOrder>
>> >
>> > Here's my services.xml :
>> >
>> > <!--Auto generated Axis Service XML-->
>> > <service name="SWASmartEndpoint">
>> > <module ref="logging"/>
>> > <parameter locked="false"
>> > name="ServiceClass">com.siemens.swa.webservices.foconet.SWASmartEndpointS
>> >keleton</parameter> <!--Mounting the method informarServicoList-->
>> > <operation name="informarServicoList">
>> > <messageReceiver
>> > class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceive
>> >r"/> </operation>
>> > <!--Mounting the method informarEquipamentoRetirado-->
>> > <operation name="informarEquipamentoRetirado">
>> > <messageReceiver
>> > class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceive
>> >r"/> </operation>
>> > <!--Mounting the method testService-->
>> > <operation name="testService">
>> > <messageReceiver
>> > class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceive
>> >r"/> </operation>
>> > <!--Mounting the method smartLogin-->
>> > <operation name="smartLogin">
>> > <messageReceiver
>> > class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceive
>> >r"/> </operation>
>> > <!--Mounting the method informarTecnicosList-->
>> > <operation name="informarTecnicosList">
>> > <messageReceiver
>> > class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceive
>> >r"/> </operation>
>> > </service>
>> >
>> > I have axis2 in 'debug'  -  I can see all of its messages, but no 
>> > message
>> > context messages are appearing. What I do see is:
>> >
>> > 005-12-22 11:18:50,651
>> > [org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher] - Checking for
>> > Operation using SOAP message body's first child's local name : 
>> > smartLogin
>> > 2005-12-22 11:18:50,652
>> > [org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher] - Found
>> > AxisOperation : smartLogin
>> > 2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking 
>> > phase
>> > "PostDispatch"
>> > 2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking
>> > Handler 'DispatchPostConditionsEvaluator' in Phase 'PostDispatch'
>> > 2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking
>> > Handler 'InstanceDispatcher' in Phase 'PostDispatch'
>> > 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking
>> > Handler 'SOAPProcessingModelChecker' in Phase 'PostDispatch'
>> > 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking 
>> > phase
>> > "userphase1"
>> > 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking 
>> > phase
>> > "loggingPhase"
>> > 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking
>> > Handler 'null' in Phase 'loggingPhase'
>> > 2005-12-22 11:18:50,685
>> > [org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder] - Build
>> > the OMElelment user_nameBy the StaxSOAPModelBuilder
>> > 2005-12-22 11:18:50,685
>> > [org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder] - Build
>> > the OMElelment user_passwordBy the StaxSOAPModelBuilder
>> > 2005-12-22 11:18:51,470 [org.apache.axis2.engine.AxisEngine] - Axis
>> > Engine Started
>> > 2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking 
>> > phase
>> > "userphase1"
>> > 2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking 
>> > phase
>> > "loggingPhase"
>> > 2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking
>> > Handler 'null' in Phase 'loggingPhase'
>> > 2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking 
>> > phase
>> > "PolicyDetermination"
>> > 2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking 
>> > phase
>> > "MessageOut"
>> > 2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking
>> > Handler 'AddressingOutHandler' in Phase 'MessageOut'
>> >
>> > Yet I can't see anything related to my the MessageContext of my service
>> > smartLogin  .
>> >
>> > Please help,
>> > iksrazal
> 



Re: [axis2] Invoking Handler 'null' in Phase 'loggingPhase'

Posted by iksrazal <ik...@gmail.com>.
Thanks for the reply Deepal, 

The LogHandler has: 

public void invoke(MessageContext msgContext) throws AxisFault {
        log.info(msgContext.getEnvelope().toString());
    }

Those are the MessageContext logs I'd like to see. Not sure why I'm not. 

iksrazal

Em Sexta 23 Dezembro 2005 07:11, o Deepal Jayasinghe escreveu:
> Hi iksrazal;
>
> The simple reason  is I can not see any logs in Message Context , because
> MessageConetxt is a property bag and I think we do not need to log
> operation in MessageConetxt.
>
> Any way I will try to add some logs to Message Context if it is required.
>
> Thanks,
>  Deepal
> ................................................................
> ~Future is Open~
>
> ----- Original Message -----
> From: "iksrazal" <ik...@gmail.com>
> To: <ax...@ws.apache.org>
> Sent: Thursday, December 22, 2005 7:26 PM
> Subject: [axis2] Invoking Handler 'null' in Phase 'loggingPhase'
>
> > Hi all,
> >
> > I'm trying to add the Logging module to my app. This is my axis2.xml
> > phase order:
> >
> >    <phaseOrder type="inflow">
> >        <!--  System pre defined phases       -->
> >        <phase name="TransportIn"/>
> >        <phase name="PreDispatch"/>
> >        <phase name="Dispatch">
> >            <handler name="AddressingBasedDispatcher"
> >
> > class="org.apache.axis2.engine.AddressingBasedDispatcher">
> >                <order phase="Dispatch"/>
> >            </handler>
> >             <handler name="RequestURIBasedDispatcher"
> >
> > class="org.apache.axis2.engine.RequestURIBasedDispatcher">
> >                <order phase="Dispatch"/>
> >            </handler>
> >             <handler name="SOAPActionBasedDispatcher"
> >
> > class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
> >                <order phase="Dispatch"/>
> >            </handler>
> >             <handler name="SOAPMessageBodyBasedDispatcher"
> >
> > class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
> >                <order phase="Dispatch"/>
> >            </handler>
> >        </phase>
> >        <phase name="PostDispatch">
> >             <handler name="DispatchPostConditionsEvaluator"
> >                     class="org.apache.axis2.engine.DispatchingChecker">
> >                <order phase="PostDispatch"/>
> >            </handler>
> >            <handler name="InstanceDispatcher"
> >                     class="org.apache.axis2.engine.InstanceDispatcher">
> >                <order phase="PostDispatch"/>
> >            </handler>
> >            <handler name="SOAPProcessingModelChecker"
> >
> > class="org.apache.axis2.engine.SOAPProcessingModelChecker">
> >                <order phase="PostDispatch"/>
> >            </handler>
> >        </phase>
> >        <!--  System pre defined phases       -->
> >        <!--   After Postdispatch phase module author or or service author
> > can
> > add any phase he want      -->
> >        <phase name="userphase1"/>
> >        <phase name="loggingPhase"/>
> >    </phaseOrder>
> >    <phaseOrder type="outflow">
> >        <!--      user can add his own phases to this area  -->
> >        <phase name="userphase1"/>
> >        <phase name="loggingPhase"/>
> >        <!--system predefined phase-->
> >        <!--these phase will run irrespective of the service-->
> >        <phase name="PolicyDetermination"/>
> >        <phase name="MessageOut"/>
> >    </phaseOrder>
> >    <phaseOrder type="INfaultflow">
> >        <!--      user can add his own phases to this area  -->
> >        <phase name="userphase1"/>
> >        <phase name="loggingPhase"/>
> >    </phaseOrder>
> >    <phaseOrder type="Outfaultflow">
> >        <!--      user can add his own phases to this area  -->
> >        <phase name="userphase1"/>
> >        <phase name="loggingPhase"/>
> >        <phase name="PolicyDetermination"/>
> >        <phase name="MessageOut"/>
> >    </phaseOrder>
> >
> > Here's my services.xml :
> >
> > <!--Auto generated Axis Service XML-->
> > <service name="SWASmartEndpoint">
> > <module ref="logging"/>
> > <parameter locked="false"
> > name="ServiceClass">com.siemens.swa.webservices.foconet.SWASmartEndpointS
> >keleton</parameter> <!--Mounting the method informarServicoList-->
> > <operation name="informarServicoList">
> > <messageReceiver
> > class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceive
> >r"/> </operation>
> > <!--Mounting the method informarEquipamentoRetirado-->
> > <operation name="informarEquipamentoRetirado">
> > <messageReceiver
> > class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceive
> >r"/> </operation>
> > <!--Mounting the method testService-->
> > <operation name="testService">
> > <messageReceiver
> > class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceive
> >r"/> </operation>
> > <!--Mounting the method smartLogin-->
> > <operation name="smartLogin">
> > <messageReceiver
> > class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceive
> >r"/> </operation>
> > <!--Mounting the method informarTecnicosList-->
> > <operation name="informarTecnicosList">
> > <messageReceiver
> > class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceive
> >r"/> </operation>
> > </service>
> >
> > I have axis2 in 'debug'  -  I can see all of its messages, but no message
> > context messages are appearing. What I do see is:
> >
> > 005-12-22 11:18:50,651
> > [org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher] - Checking for
> > Operation using SOAP message body's first child's local name : smartLogin
> > 2005-12-22 11:18:50,652
> > [org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher] - Found
> > AxisOperation : smartLogin
> > 2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking phase
> > "PostDispatch"
> > 2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking
> > Handler 'DispatchPostConditionsEvaluator' in Phase 'PostDispatch'
> > 2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking
> > Handler 'InstanceDispatcher' in Phase 'PostDispatch'
> > 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking
> > Handler 'SOAPProcessingModelChecker' in Phase 'PostDispatch'
> > 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking phase
> > "userphase1"
> > 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking phase
> > "loggingPhase"
> > 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking
> > Handler 'null' in Phase 'loggingPhase'
> > 2005-12-22 11:18:50,685
> > [org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder] - Build
> > the OMElelment user_nameBy the StaxSOAPModelBuilder
> > 2005-12-22 11:18:50,685
> > [org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder] - Build
> > the OMElelment user_passwordBy the StaxSOAPModelBuilder
> > 2005-12-22 11:18:51,470 [org.apache.axis2.engine.AxisEngine] - Axis
> > Engine Started
> > 2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking phase
> > "userphase1"
> > 2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking phase
> > "loggingPhase"
> > 2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking
> > Handler 'null' in Phase 'loggingPhase'
> > 2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking phase
> > "PolicyDetermination"
> > 2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking phase
> > "MessageOut"
> > 2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking
> > Handler 'AddressingOutHandler' in Phase 'MessageOut'
> >
> > Yet I can't see anything related to my the MessageContext of my service
> > smartLogin  .
> >
> > Please help,
> > iksrazal

Re: [axis2] Invoking Handler 'null' in Phase 'loggingPhase'

Posted by Deepal Jayasinghe <de...@opensource.lk>.
Hi iksrazal;

The simple reason  is I can not see any logs in Message Context , because 
MessageConetxt is a property bag and I think we do not need to log operation 
in MessageConetxt.

Any way I will try to add some logs to Message Context if it is required.

Thanks,
 Deepal
................................................................
~Future is Open~

----- Original Message ----- 
From: "iksrazal" <ik...@gmail.com>
To: <ax...@ws.apache.org>
Sent: Thursday, December 22, 2005 7:26 PM
Subject: [axis2] Invoking Handler 'null' in Phase 'loggingPhase'


> Hi all,
>
> I'm trying to add the Logging module to my app. This is my axis2.xml phase
> order:
>
>    <phaseOrder type="inflow">
>        <!--  System pre defined phases       -->
>        <phase name="TransportIn"/>
>        <phase name="PreDispatch"/>
>        <phase name="Dispatch">
>            <handler name="AddressingBasedDispatcher"
>
> class="org.apache.axis2.engine.AddressingBasedDispatcher">
>                <order phase="Dispatch"/>
>            </handler>
>             <handler name="RequestURIBasedDispatcher"
>
> class="org.apache.axis2.engine.RequestURIBasedDispatcher">
>                <order phase="Dispatch"/>
>            </handler>
>             <handler name="SOAPActionBasedDispatcher"
>
> class="org.apache.axis2.engine.SOAPActionBasedDispatcher">
>                <order phase="Dispatch"/>
>            </handler>
>             <handler name="SOAPMessageBodyBasedDispatcher"
>
> class="org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher">
>                <order phase="Dispatch"/>
>            </handler>
>        </phase>
>        <phase name="PostDispatch">
>             <handler name="DispatchPostConditionsEvaluator"
>                     class="org.apache.axis2.engine.DispatchingChecker">
>                <order phase="PostDispatch"/>
>            </handler>
>            <handler name="InstanceDispatcher"
>                     class="org.apache.axis2.engine.InstanceDispatcher">
>                <order phase="PostDispatch"/>
>            </handler>
>            <handler name="SOAPProcessingModelChecker"
>
> class="org.apache.axis2.engine.SOAPProcessingModelChecker">
>                <order phase="PostDispatch"/>
>            </handler>
>        </phase>
>        <!--  System pre defined phases       -->
>        <!--   After Postdispatch phase module author or or service author 
> can
> add any phase he want      -->
>        <phase name="userphase1"/>
>        <phase name="loggingPhase"/>
>    </phaseOrder>
>    <phaseOrder type="outflow">
>        <!--      user can add his own phases to this area  -->
>        <phase name="userphase1"/>
>        <phase name="loggingPhase"/>
>        <!--system predefined phase-->
>        <!--these phase will run irrespective of the service-->
>        <phase name="PolicyDetermination"/>
>        <phase name="MessageOut"/>
>    </phaseOrder>
>    <phaseOrder type="INfaultflow">
>        <!--      user can add his own phases to this area  -->
>        <phase name="userphase1"/>
>        <phase name="loggingPhase"/>
>    </phaseOrder>
>    <phaseOrder type="Outfaultflow">
>        <!--      user can add his own phases to this area  -->
>        <phase name="userphase1"/>
>        <phase name="loggingPhase"/>
>        <phase name="PolicyDetermination"/>
>        <phase name="MessageOut"/>
>    </phaseOrder>
>
> Here's my services.xml :
>
> <!--Auto generated Axis Service XML-->
> <service name="SWASmartEndpoint">
> <module ref="logging"/>
> <parameter locked="false"
> name="ServiceClass">com.siemens.swa.webservices.foconet.SWASmartEndpointSkeleton</parameter>
> <!--Mounting the method informarServicoList-->
> <operation name="informarServicoList">
> <messageReceiver
> class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
> </operation>
> <!--Mounting the method informarEquipamentoRetirado-->
> <operation name="informarEquipamentoRetirado">
> <messageReceiver
> class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
> </operation>
> <!--Mounting the method testService-->
> <operation name="testService">
> <messageReceiver
> class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
> </operation>
> <!--Mounting the method smartLogin-->
> <operation name="smartLogin">
> <messageReceiver
> class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
> </operation>
> <!--Mounting the method informarTecnicosList-->
> <operation name="informarTecnicosList">
> <messageReceiver
> class="com.siemens.swa.webservices.foconet.SWASmartEndpointMessageReceiver"/>
> </operation>
> </service>
>
> I have axis2 in 'debug'  -  I can see all of its messages, but no message
> context messages are appearing. What I do see is:
>
> 005-12-22 11:18:50,651
> [org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher] - Checking for
> Operation using SOAP message body's first child's local name : smartLogin
> 2005-12-22 11:18:50,652
> [org.apache.axis2.engine.SOAPMessageBodyBasedDispatcher] - Found
> AxisOperation : smartLogin
> 2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking phase
> "PostDispatch"
> 2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking Handler
> 'DispatchPostConditionsEvaluator' in Phase 'PostDispatch'
> 2005-12-22 11:18:50,652 [org.apache.axis2.engine.Phase] - Invoking Handler
> 'InstanceDispatcher' in Phase 'PostDispatch'
> 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking Handler
> 'SOAPProcessingModelChecker' in Phase 'PostDispatch'
> 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking phase
> "userphase1"
> 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking phase
> "loggingPhase"
> 2005-12-22 11:18:50,657 [org.apache.axis2.engine.Phase] - Invoking Handler
> 'null' in Phase 'loggingPhase'
> 2005-12-22 11:18:50,685
> [org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder] - Build the
> OMElelment user_nameBy the StaxSOAPModelBuilder
> 2005-12-22 11:18:50,685
> [org.apache.axis2.soap.impl.llom.builder.StAXSOAPModelBuilder] - Build the
> OMElelment user_passwordBy the StaxSOAPModelBuilder
> 2005-12-22 11:18:51,470 [org.apache.axis2.engine.AxisEngine] - Axis Engine
> Started
> 2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking phase
> "userphase1"
> 2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking phase
> "loggingPhase"
> 2005-12-22 11:18:51,470 [org.apache.axis2.engine.Phase] - Invoking Handler
> 'null' in Phase 'loggingPhase'
> 2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking phase
> "PolicyDetermination"
> 2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking phase
> "MessageOut"
> 2005-12-22 11:18:51,471 [org.apache.axis2.engine.Phase] - Invoking Handler
> 'AddressingOutHandler' in Phase 'MessageOut'
>
> Yet I can't see anything related to my the MessageContext of my service
> smartLogin  .
>
> Please help,
> iksrazal
>