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

Asankha C. Perera resolved SYNAPSE-75.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0-RC1-B2

Fixed null pointer exception

Log levels 
* Custom - prints any custom properties (values/expressions) specified only. No 
soap headers or envelope
* Simple - prints To, From, ReplyTo, SoapAction, WSAction and MessageID plus 
any custom properties if specified
* Headers - prints *all* SOAP headers plus any custom properties if specified

* Full - prints all soap headers, the envelope and any custom properties if 
specified

> Issues occurred when using the log mediator
> -------------------------------------------
>
>                 Key: SYNAPSE-75
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-75
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: 1.0-RC1-B1
>         Environment: Windows XP, JDK 1.5.0_06
>            Reporter: Evanthika Amarasiri
>             Fix For: 1.0-RC1-B2
>
>
> When setting the log levels, experienced the following issues
> Issue 1 - Setting the log level to "headers"
> ================================
> When the log level is set to "headers", it does not log anything
> Therefore when the log level is set to "headers" in the out mediator, it 
> gives a null pointer exception
> [HttpClientWorker-4] DEBUG LogMediator - Log mediator :: mediate()
> Exception in thread "HttpClientWorker-4" java.lang.NullPointerException
>         at 
> org.apache.synapse.mediators.builtin.LogMediator.getHeadersLogMessage(LogMediator.java:121)
>         at 
> org.apache.synapse.mediators.builtin.LogMediator.getLogMessage(LogMediator.java:85)
>         at 
> org.apache.synapse.mediators.builtin.LogMediator.mediate(LogMediator.java:69)
>         at 
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49)
>         at 
> org.apache.synapse.mediators.filters.OutMediator.mediate(OutMediator.java:55)
>         at 
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49)
>         at 
> org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:98)
>         at 
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:104)
>         at 
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:150)
>         at 
> org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:56)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:144)
>         at 
> org.apache.axis2.transport.nhttp.ClientWorker.run(ClientWorker.java:136)
>         at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>         at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>         at java.lang.Thread.run(Thread.java:595)
> Issue 2 - Setting the log level to "simple"
> ===============================
> When setting the log level to "simple" and the request sent, only the 
> following properties are logged
> For the incoming message - To, WSAction, SOAPAction
> For the outgoing message - To, MessageID
> Issue 3 - Setting the log level to "full"
> ============================
> When setting the log level to "full" and the request sent, only the following 
> properties are logged
> For the incoming message - To, WSAction, SOAPAction, Envelope
> For the outgoing message - To, MessageID, Envelope

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to