synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNAPSE-881) When SynapseRecevieCallback handler receives SOAP fault from backend then synapse Message helper always try to cast SOAP Fault detail entries to OMElement without type checking
Date Sat, 28 Jul 2012 09:13:34 GMT

    [ https://issues.apache.org/jira/browse/SYNAPSE-881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13424305#comment-13424305
] 

Andreas Veithen commented on SYNAPSE-881:
-----------------------------------------

Axiom actually has an API that allows cloning SOAPEnvelopes. I think that instead of attempting
to fix the cloneSOAPEnvelope/cloneSOAPFault methods in MessageHelper, we should just use that
feature in Axiom. However, we need to make sure that the code in Axiom is not affected by
the same issue.

Can you please submit a test case for the issue you have discovered?
                
> When SynapseRecevieCallback handler receives SOAP fault from backend then synapse Message
helper always try to cast SOAP Fault  detail entries to  OMElement without type checking 
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SYNAPSE-881
>                 URL: https://issues.apache.org/jira/browse/SYNAPSE-881
>             Project: Synapse
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1
>         Environment: Ubuntu 64x 12.04
>            Reporter: Dushan Sachinda Abeyruwan
>            Assignee: Andreas Veithen
>             Fix For: FUTURE
>
>         Attachments: Sysnapse_message_helper_patch.patch
>
>
> er Error For : 127.0.0.1:8088 For Request : Axis2Request [Message ID : urn:uuid:5af24cbf-73c7-4c68-8cc3-6ceedd17dbbb]
[Status Completed : true] [Status SendingCompleted : true]
> [2012-06-23 17:09:57,463] ERROR - NativeWorkerPool Uncaught exception
> java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMTextImpl cannot be cast
to org.apache.axiom.om.OMElement
> 	at org.apache.synapse.util.MessageHelper.cloneSOAPFault(MessageHelper.java:441)
> 	at org.apache.synapse.util.MessageHelper.cloneSOAPEnvelope(MessageHelper.java:254)
> 	at org.apache.synapse.core.axis2.SOAPUtils.convertSOAP11toSOAP12(SOAPUtils.java:95)
> 	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.handleMessage(SynapseCallbackReceiver.java:323)
> 	at org.apache.synapse.core.axis2.SynapseCallbackReceiver.receive(SynapseCallbackReceiver.java:160)
> 	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
> 	at org.apache.synapse.transport.nhttp.ClientWorker.run(ClientWorker.java:275)
> 	at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:173)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)
> [2012-06-23 17:10:57,481]  INFO - HTTPSender Unable to sendViaPost to url[http://localhost:8280/services/TestProxy.TestProxyHttpSoap12Endpoint]
> java.net.SocketTimeoutException: Read timed out
> 	at java.net.SocketInputStream.socketRead0(Native Method)
> 	at java.net.SocketInputStream.read(SocketInputStream.java:129)
> 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
> 	at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
> 	at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
> 	at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
> 	at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
> 	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
> 	at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
> 	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
> 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
> 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
> 	at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:621)
> 	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:193)
> 	at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:75)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:449)
> 	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:276)
> 	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:443)
> 	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:406)
> 	

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

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@synapse.apache.org
For additional commands, e-mail: dev-help@synapse.apache.org


Mime
View raw message