Re: [AXIS2 v1.4] Logging module not logging message reply receipt

2008-12-16 Thread searl
Hi,

I've determined a little more about what is happening with some debug
logging
statements. Maybe this will help determine why I'm seeing what I'm seeing.

I wanted to compare the phases on the InFlow message from the
MessageContext of the inbound request of the service and the inbound
rely to the client.

On the service side, in the receiver class generated by wsdl2java 
ADB binding I placed some debug statements that produced the following:

2008-12-15 18:16:18,188 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:32
- InFlow handlers:
2008-12-15 18:16:18,188 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:36
- index = 0 Phase handler=RMPhase
2008-12-15 18:16:18,189 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:37
-   There are this many handlers in the phase: 0
2008-12-15 18:16:18,189 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:36
- index = 1 Phase handler=OperationInPhase
2008-12-15 18:16:18,190 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:37
-   There are this many handlers in the phase: 1
2008-12-15 18:16:18,191 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:40
-   Hander name =MustUnderstandChecker
2008-12-15 18:16:18,191 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:36
- index = 2 Phase handler=soapmonitorPhase
2008-12-15 18:16:18,191 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:37
-   There are this many handlers in the phase: 0
2008-12-15 18:16:18,192 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:36
- index = 3 Phase handler=loggingPhase
2008-12-15 18:16:18,195 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:37
-   There are this many handlers in the phase: 1
2008-12-15 18:16:18,196 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:40
-   Hander name =InFlowLogHandler
2008-12-15 18:16:18,196 [INFO ] MRN_SensorNodeMessageReceiverInOut.java:44
- Current Handler Index=4

On the client side in the stub method generated by the wsdl2java ADB
binding I place
some debug logging to print out the phases of the MessageContext of the
reply message.

2008-12-15 18:16:23,445 [INFO ] MRN_SensorNodeStub.java:927 - InFlow
handlers: 
2008-12-15 18:16:23,446 [INFO ] MRN_SensorNodeStub.java:931 - index = 0
Phase handler=RMPhase 
2008-12-15 18:16:23,446 [INFO ] MRN_SensorNodeStub.java:932 - There are
this many handlers in the phase: 0 
2008-12-15 18:16:23,446 [INFO ] MRN_SensorNodeStub.java:931 - index = 1
Phase handler=OperationInPhase 
2008-12-15 18:16:23,446 [INFO ] MRN_SensorNodeStub.java:932 - There are
this many handlers in the phase: 1 
2008-12-15 18:16:23,446 [INFO ] MRN_SensorNodeStub.java:935 -   Hander name
=MustUnderstandChecker 
2008-12-15 18:16:23,447 [INFO ] MRN_SensorNodeStub.java:931 - index = 2
Phase handler=soapmonitorPhase 
2008-12-15 18:16:23,447 [INFO ] MRN_SensorNodeStub.java:932 - There are
this many handlers in the phase: 0 
2008-12-15 18:16:23,447 [INFO ] MRN_SensorNodeStub.java:931 - index = 3
Phase handler=loggingPhase 
2008-12-15 18:16:23,447 [INFO ] MRN_SensorNodeStub.java:932 - There are
this many handlers in the phase: 0 
2008-12-15 18:16:23,447 [INFO ] MRN_SensorNodeStub.java:939 - Current
Handler Index=4 

As you can see the "loggingPhase" is in both the server and client InFlow
Phases lists but
the logging handler is only in the Server InFlow. It is missing from the
Client InFlow.
Both client and server use identical Logging MAR modules.

So now the question is: way is the logging handler not being added to the
client
Logging Phase on the InFlow?

leon

On Thu, 11 Dec 2008 15:15:15 -0600, searl  wrote:
> Hi Deepal,
> 
> I will create the JIRA.
> 
> Since I'm seeing the logging on the service side for both
> inbound request and outbound response BUT
> on the client side seeing the log for ONLY outbound request,
> I'm thinking that the InFlow phases must not be getting handled
> the same for clients and services.
> 
> leon
> 
> On Thu, 11 Dec 2008 16:11:13 -0500, Deepal Jayasinghe
>  wrote:
>> Hmm, I think I can not give an exact answer without looking at the code,
>> so if you can please create a JIRA[1] and attach all the stuff need to
>> regenerate the issue.
>> 
>> [1] : http://issues.apache.org/jira
>> 
>> Thank you!
>> Deepal
>>> Hi Deepal,
>>>
>>> Yes, I believe that the module is engaged for both services.
>>> Particularly since I'm seeing the message logged for the outbound
>>> request from the client side. I'm just not seeing the message logged
>>> for the inbound reply on the client side.
>>>
>>> leon
>>>
>>> On Thu, 11 Dec 2008 15:37:23 -0500, Deepal Jayasinghe
>>>  wrote:
>>>   
> Hi,
>
> I have a modified version of the Logging module MAR for logging the
> xml
> of sent and received messages in my services. The service side
> is logging the messages without problems. The client side
> is logging the outbound request but not the inbound replay.
>   
>   
 Did you engage the logging module to both the client side and the
> server
 side ?

 As I can see you have client server communication, so you need to
>

Re: [AXIS2 v1.4] Logging module not logging message reply receipt

2008-12-11 Thread searl
Hi Deepal,

I will create the JIRA.

Since I'm seeing the logging on the service side for both
inbound request and outbound response BUT
on the client side seeing the log for ONLY outbound request,
I'm thinking that the InFlow phases must not be getting handled
the same for clients and services.

leon

On Thu, 11 Dec 2008 16:11:13 -0500, Deepal Jayasinghe
 wrote:
> Hmm, I think I can not give an exact answer without looking at the code,
> so if you can please create a JIRA[1] and attach all the stuff need to
> regenerate the issue.
> 
> [1] : http://issues.apache.org/jira
> 
> Thank you!
> Deepal
>> Hi Deepal,
>>
>> Yes, I believe that the module is engaged for both services.
>> Particularly since I'm seeing the message logged for the outbound
>> request from the client side. I'm just not seeing the message logged
>> for the inbound reply on the client side.
>>
>> leon
>>
>> On Thu, 11 Dec 2008 15:37:23 -0500, Deepal Jayasinghe
>>  wrote:
>>   
 Hi,

 I have a modified version of the Logging module MAR for logging the
xml
 of sent and received messages in my services. The service side
 is logging the messages without problems. The client side
 is logging the outbound request but not the inbound replay.
   
   
>>> Did you engage the logging module to both the client side and the
server
>>> side ?
>>>
>>> As I can see you have client server communication, so you need to
engage
>>> the same module for both the side.
>>>
>>> Thank you!
>>> Deepal
>>> 
 I have two services, A and B. A is acting as a client
 to B. A sends a request to B and B returns a replay.
 The A outbound request is logged by the logging MAR OK.
 The B inbound request is logged OK.
 The B outbound response is logged OK.
 The A inbound response is never logged.

 Messaging is synchronous. Transport is HTTP.

 I would assume that since the B service logs for both
 inbound and outbound that the phases setup in the axis.xml
 file is correct.

 Can anyone tell me if this is known/expected behavior? or
 what to look at.

 I would be happy to supply code and config files if that would help.

 Thanks!

 leon

   
   
>>> 
> 
>
-- 
Leon S. Searl, Software Research Engineer
Information and Telecommunication Technology Center, University of Kansas
Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
Ph: 785-864-7820 Fax: 785-864-0387
http://www.ittc.ku.edu


Re: [AXIS2 v1.4] Logging module not logging message reply receipt

2008-12-11 Thread Deepal Jayasinghe
Hmm, I think I can not give an exact answer without looking at the code,
so if you can please create a JIRA[1] and attach all the stuff need to
regenerate the issue.

[1] : http://issues.apache.org/jira

Thank you!
Deepal
> Hi Deepal,
>
> Yes, I believe that the module is engaged for both services.
> Particularly since I'm seeing the message logged for the outbound
> request from the client side. I'm just not seeing the message logged
> for the inbound reply on the client side.
>
> leon
>
> On Thu, 11 Dec 2008 15:37:23 -0500, Deepal Jayasinghe
>  wrote:
>   
>>> Hi,
>>>
>>> I have a modified version of the Logging module MAR for logging the xml
>>> of sent and received messages in my services. The service side
>>> is logging the messages without problems. The client side
>>> is logging the outbound request but not the inbound replay.
>>>   
>>>   
>> Did you engage the logging module to both the client side and the server
>> side ?
>>
>> As I can see you have client server communication, so you need to engage
>> the same module for both the side.
>>
>> Thank you!
>> Deepal
>> 
>>> I have two services, A and B. A is acting as a client
>>> to B. A sends a request to B and B returns a replay.
>>> The A outbound request is logged by the logging MAR OK.
>>> The B inbound request is logged OK.
>>> The B outbound response is logged OK.
>>> The A inbound response is never logged.
>>>
>>> Messaging is synchronous. Transport is HTTP.
>>>
>>> I would assume that since the B service logs for both
>>> inbound and outbound that the phases setup in the axis.xml
>>> file is correct.
>>>
>>> Can anyone tell me if this is known/expected behavior? or
>>> what to look at.
>>>
>>> I would be happy to supply code and config files if that would help.
>>>
>>> Thanks!
>>>
>>> leon
>>>
>>>   
>>>   
>> 

-- 
Thank you!


http://blogs.deepal.org



Re: [AXIS2 v1.4] Logging module not logging message reply receipt

2008-12-11 Thread searl
On Thu, 11 Dec 2008 15:04:57 -0600, searl  wrote:
> Hi Deepal,
> 
> Yes, I believe that the module is engaged for both services.
> Particularly since I'm seeing the message logged for the outbound
> request from the client side. I'm just not seeing the message logged
> for the inbound reply on the client side.
> 
> leon
> 
> On Thu, 11 Dec 2008 15:37:23 -0500, Deepal Jayasinghe
>  wrote:
>>> Hi,
>>>
>>> I have a modified version of the Logging module MAR for logging the xml
>>> of sent and received messages in my services. The service side
>>> is logging the messages without problems. The client side
>>> is logging the outbound request but not the inbound replay.
>>>   
>> Did you engage the logging module to both the client side and the server
>> side ?
>> 
>> As I can see you have client server communication, so you need to engage
>> the same module for both the side.
>> 
>> Thank you!
>> Deepal
>>> I have two services, A and B. A is acting as a client
>>> to B. A sends a request to B and B returns a replay.
>>> The A outbound request is logged by the logging MAR OK.
>>> The B inbound request is logged OK.
>>> The B outbound response is logged OK.
>>> The A inbound response is never logged.
>>>
>>> Messaging is synchronous. Transport is HTTP.
>>>
>>> I would assume that since the B service logs for both
>>> inbound and outbound that the phases setup in the axis.xml
>>> file is correct.
>>>
>>> Can anyone tell me if this is known/expected behavior? or
>>> what to look at.
>>>
>>> I would be happy to supply code and config files if that would help.
>>>
>>> Thanks!
>>>
>>> leon
>>>
>>>   
>> 
>>
>
-- 
Leon S. Searl, Software Research Engineer
Information and Telecommunication Technology Center, University of Kansas
Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
Ph: 785-864-7820 Fax: 785-864-0387
http://www.ittc.ku.edu


Re: [AXIS2 v1.4] Logging module not logging message reply receipt

2008-12-11 Thread searl
Hi Deepal,

Yes, I believe that the module is engaged for both services.
Particularly since I'm seeing the message logged for the outbound
request from the client side. I'm just not seeing the message logged
for the inbound reply on the client side.

leon

On Thu, 11 Dec 2008 15:37:23 -0500, Deepal Jayasinghe
 wrote:
>> Hi,
>>
>> I have a modified version of the Logging module MAR for logging the xml
>> of sent and received messages in my services. The service side
>> is logging the messages without problems. The client side
>> is logging the outbound request but not the inbound replay.
>>   
> Did you engage the logging module to both the client side and the server
> side ?
> 
> As I can see you have client server communication, so you need to engage
> the same module for both the side.
> 
> Thank you!
> Deepal
>> I have two services, A and B. A is acting as a client
>> to B. A sends a request to B and B returns a replay.
>> The A outbound request is logged by the logging MAR OK.
>> The B inbound request is logged OK.
>> The B outbound response is logged OK.
>> The A inbound response is never logged.
>>
>> Messaging is synchronous. Transport is HTTP.
>>
>> I would assume that since the B service logs for both
>> inbound and outbound that the phases setup in the axis.xml
>> file is correct.
>>
>> Can anyone tell me if this is known/expected behavior? or
>> what to look at.
>>
>> I would be happy to supply code and config files if that would help.
>>
>> Thanks!
>>
>> leon
>>
>>   
> 
>
-- 
Leon S. Searl, Software Research Engineer
Information and Telecommunication Technology Center, University of Kansas
Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
Ph: 785-864-7820 Fax: 785-864-0387
http://www.ittc.ku.edu


Re: [AXIS2 v1.4] Logging module not logging message reply receipt

2008-12-11 Thread Deepal Jayasinghe

> Hi,
>
> I have a modified version of the Logging module MAR for logging the xml
> of sent and received messages in my services. The service side
> is logging the messages without problems. The client side
> is logging the outbound request but not the inbound replay.
>   
Did you engage the logging module to both the client side and the server
side ?

As I can see you have client server communication, so you need to engage
the same module for both the side.

Thank you!
Deepal
> I have two services, A and B. A is acting as a client
> to B. A sends a request to B and B returns a replay.
> The A outbound request is logged by the logging MAR OK.
> The B inbound request is logged OK.
> The B outbound response is logged OK.
> The A inbound response is never logged.
>
> Messaging is synchronous. Transport is HTTP.
>
> I would assume that since the B service logs for both
> inbound and outbound that the phases setup in the axis.xml
> file is correct.
>
> Can anyone tell me if this is known/expected behavior? or
> what to look at.
>
> I would be happy to supply code and config files if that would help.
>
> Thanks!
>
> leon
>
>   

-- 
Thank you!


http://blogs.deepal.org



[AXIS2 v1.4] Logging module not logging message reply receipt

2008-12-11 Thread searl
Hi,

I have a modified version of the Logging module MAR for logging the xml
of sent and received messages in my services. The service side
is logging the messages without problems. The client side
is logging the outbound request but not the inbound replay.

I have two services, A and B. A is acting as a client
to B. A sends a request to B and B returns a replay.
The A outbound request is logged by the logging MAR OK.
The B inbound request is logged OK.
The B outbound response is logged OK.
The A inbound response is never logged.

Messaging is synchronous. Transport is HTTP.

I would assume that since the B service logs for both
inbound and outbound that the phases setup in the axis.xml
file is correct.

Can anyone tell me if this is known/expected behavior? or
what to look at.

I would be happy to supply code and config files if that would help.

Thanks!

leon

-- 
Leon S. Searl, Software Research Engineer
Information and Telecommunication Technology Center, University of Kansas
Nichols Hall, 2335 Irving Hill Road, Lawrence, KS 66045-7612
Ph: 785-864-7820 Fax: 785-864-0387
http://www.ittc.ku.edu