Return-Path: X-Original-To: apmail-synapse-dev-archive@www.apache.org Delivered-To: apmail-synapse-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B94D9D9F1 for ; Tue, 14 May 2013 17:47:19 +0000 (UTC) Received: (qmail 75942 invoked by uid 500); 14 May 2013 17:47:19 -0000 Delivered-To: apmail-synapse-dev-archive@synapse.apache.org Received: (qmail 75184 invoked by uid 500); 14 May 2013 17:47:18 -0000 Mailing-List: contact dev-help@synapse.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@synapse.apache.org Delivered-To: mailing list dev@synapse.apache.org Received: (qmail 74996 invoked by uid 99); 14 May 2013 17:47:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 May 2013 17:47:18 +0000 Date: Tue, 14 May 2013 17:47:18 +0000 (UTC) From: "Andreas Veithen (JIRA)" To: dev@synapse.apache.org Message-ID: In-Reply-To: References: 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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SYNAPSE-881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13657270#comment-13657270 ] Andreas Veithen commented on SYNAPSE-881: ----------------------------------------- @Dushan: can we get a test case for this? > 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 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