简体   繁体   English

调用wso2 http端点时出现“ org.apache.http.nohttpresponseexception目标服务器无法响应”

[英]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="&#34;In listenAbc1Mq&#34;"/>
         </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="&#34;after payload factory&#34;"/>
         </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="&#34;Out sequence&#34;"/>
         </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.

相关问题 REST 保证 - org.apache.http.NoHttpResponseException:<server_address> :80 未能回应</server_address> - REST Assured - org.apache.http.NoHttpResponseException: <server_address>:80 failed to respond Android- org.apache.http.ProtocolException:服务器无法通过有效的HTTP响应进行响应 - Android- org.apache.http.ProtocolException: The server failed to respond with a valid HTTP response Apache HTTP Server端口不响应 - Apache HTTP Server port doesn't respond 服务器未能以有效的 HTTP 响应进行响应 - The server failed to respond with a valid HTTP response 获取错误 com.intuit.karate - http 请求失败:org.apache.http.conn.HttpHostConnectException - Getting ERROR com.intuit.karate - http request failed: org.apache.http.conn.HttpHostConnectException 如何在WSO2身份服务器中将http配置为默认请求 - how to config http as default request in WSO2 Identity server 使用Http源会引发org / wso2 / transport / http / netty / contract / config / ListenerConfiguration错误 - Using Http source throws org/wso2/transport/http/netty/contract/config/ListenerConfiguration error WSO2为SCEP服务器HTTP GET POST创建API - WSO2 create API for SCEP server HTTP GET POST HTTP Post Request:目标服务器无法响应 - HTTP Post Request: target server failed to response 无法通过其HTTP端点URL访问WSO2 ESB代理服务 - Can't access WSO2 ESB proxy service thru its http endpoint URL
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM