[英]getting “org.apache.http.nohttpresponseexception the target server failed to respond” while calling wso2 http endpoint
I am getting below error while calling http endpoint:- The endpoint is HTTP endpoint which I am using. 呼叫http端点时出现以下错误:-端点是我正在使用的HTTP端点。 Also added timeout parameters in axis2.xml and axis2.blocking.xml. 还在axis2.xml和axis2.blocking.xml中添加了超时参数。 But it did not work. 但这没有用。 Can anyone provide any solution to it? 谁能提供任何解决方案?
HTTPSender Unable to sendViaPost to url[http://*********]
org.apache.commons.httpclient.NoHttpResponseException: The server ****** failed to respond
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1976)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
the esb proxy looks like below:-- esb代理如下所示:-
<?xml version="1.0" encoding="UTF-8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="mqListener"
startOnLoad="true"
statistics="disable"
trace="disable"
transports="http,https">
<target>
<inSequence>
<log description="print message" level="full">
<property name="message" value=""In listenAbc1Mq""/>
</log>
<payloadFactory media-type="json">
<format>
{
"orderId": ""
}
</format>
<args>
<arg evaluator="xml" expression="//verkkopvc/text()"/>
</payloadFactory>
<log description="print message" level="full">
<property name="message" value=""after payload factory""/>
</log>
<property name="OUT_ONLY" value="true"/>
<property name="DISABLE_CHUNKING"
scope="axis2"
type="STRING"
value="true"/>
<call blocking="true">
<endpoint key="abc"/>
</call>
<log description="print message" level="full">
<property name="message" value=""Out sequence""/>
</log>
</inSequence>
<outSequence/>
<description/>
</proxy>
I believe the error is printed by your http client. 我相信错误是由您的http客户端打印的。 To fix it, do these. 要修复它,请执行以下操作。
1) Remove <property name="OUT_ONLY" value="true"/>
1)删除<property name="OUT_ONLY" value="true"/>
2) Add <respond/>
mediator at the end of inSequence
. 2)在inSequence
的末尾添加<respond/>
中介inSequence
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.