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

Ruwan Linton resolved SYNAPSE-51.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0

There was a wrong Class Casting in the LogMediator and I have fixed it. trunk 
contains the corrected code. Can you please verify weather this is working now?

> Exception thrown when changing the log level mediator to 'headers'
> ------------------------------------------------------------------
>
>                 Key: SYNAPSE-51
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-51
>             Project: Synapse
>          Issue Type: Bug
>    Affects Versions: 0.91
>         Environment: WinXP, Jdk1.5, 
>            Reporter: Charitha Kankanamge
>         Assigned To: Ruwan Linton
>             Fix For: 1.0
>
>
> Following exception is returned when executing the client script with setting 
> the <log level="headers"/> property in synapse_sample_0.xml file.
> stockquote:
>      [java] org.apache.axis2.AxisFault: unknown
>      [java]     at 
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:312)
>      [java]     at 
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
>      [java]     at 
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
>      [java]     at samples.userguide.StockQuoteClient.main(Unknown Source)
>      [java] Caused by: java.lang.Exception: java.lang.ClassCastException: 
> org.apache.axiom.soap.impl.llom.soap11.SOAP11HeaderBlockImpl
>      [java]     at 
> org.apache.synapse.mediators.builtin.LogMediator.getHeadersLogMessage(LogMediator.java:122)
>      [java]     at 
> org.apache.synapse.mediators.builtin.LogMediator.getLogMessage(LogMediator.java:84)
>      [java]     at 
> org.apache.synapse.mediators.builtin.LogMediator.mediate(LogMediator.java:68)
>      [java]     at 
> org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:49)
>      [java]     at 
> org.apache.synapse.mediators.base.SynapseMediator.mediate(SynapseMediator.java:55)
>      [java]     at 
> org.apache.synapse.core.axis2.Axis2SynapseEnvironment.injectMessage(Axis2SynapseEnvironment.java:76)
>      [java]     at 
> org.apache.synapse.core.axis2.SynapseMessageReceiver.receive(SynapseMessageReceiver.java:50)
>      [java]     at 
> org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
>      [java]     at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:326)
>      [java]     at 
> org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:230)
>      [java]     at 
> org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.doService(DefaultHttpServiceProcessor.java:190)
>      [java]     at 
> org.apache.http.protocol.HttpService.handleRequest(HttpService.java:123)
>      [java]     at 
> org.apache.axis2.transport.http.server.DefaultHttpServiceProcessor.run(DefaultHttpServiceProcessor.java:262)
>      [java]     at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
>      [java]     at 
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
>      [java]     at java.lang.Thread.run(Thread.java:595)
>      [java]     at org.apache.axis2.AxisFault.<init>(AxisFault.java:159)
>      [java]     ... 4 more
> Steps to rerpoduce:
> ===============
> 1. Start the Synapse configuration numbered 0: i.e. synapse -sample 0
> 2. Start the Axis2 server and deploy the SimpleStockQuoteService
> 3. Change log level in synapse_sample_0.xml file (Change to "headers")
> 3. Execute the smart client (i.e:-ant stockquote)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to