5

我正在尝试通过在家中连接到我组织的 VPN 来使用 SOAP UI。但是我收到了这个错误-

“获取响应时出错:org.apache.http.conn.HttpHostConnectException:连接到 https://xxx.xxxxxxx.xxxxxx.xxx:xxxx 被拒绝”

我怎样才能摆脱这个错误?它是否与 SOAP UI 设置有关?

编辑 - 下面是 error.log 文件

Wed May 01 13:57:00 *** 2013:ERROR:org.apache.http.conn.HttpHostConnectException: Connection to http://stage2cpplvs52.qa.paypal.com:7021 refused
   org.apache.http.conn.HttpHostConnectException: Connection to http://stage2cpplvs52.qa.paypal.com:7021 refused
    at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$SoapUIClientConnectionOperator.openConnection(SoapUIMultiThreadedHttpConnectionManager.java:321)
    at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:149)
    at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:121)
    at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:561)
    at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
    at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:236)
    at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:345)
    at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:241)
    at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
   Caused by: java.net.ConnectException: Connection timed out: connect
    at java.net.DualStackPlainSocketImpl.connect0(Native Method)
    at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
    at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
    at java.net.PlainSocketImpl.connect(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:123)
    at com.eviware.soapui.impl.wsdl.support.http.SoapUIMultiThreadedHttpConnectionManager$SoapUIClientConnectionOperator.openConnection(SoapUIMultiThreadedHttpConnectionManager.java:299)
    ... 16 more
4

6 回答 6

15
Go to file > Preferences >Proxy settings and set Proxy to :None

试试这样

于 2014-04-07T03:06:47.267 回答
2

企业部门的此问题是由于“未向您的用户 ID 提供环境和端口访问”。

因此,请联系企业网络服务团队并请求访问该文件夹。

如何注意这个问题?

转到命令提示符,

输入以下命令,

ping“端点网址”

按回车。

如果您没有得到任何响应,这意味着您无权访问该 URL(请致电您的系统管理员并请求访问该 URL)。

如果你得到回应,

然后在命令提示符下输入以下命令,

telnet “端点 URL” “端口号”

按回车。

如果您没有得到响应,则表示您无权访问该特定“端点 url”的端口。因此,请您的系统管理员提供对该 url 和特定端口的访问权限

于 2016-07-14T06:31:30.787 回答
0

您必须在首选项中配置或关闭代理服务器或检查您的防火墙设置。

于 2015-02-23T18:28:35.023 回答
0

当您尝试连接的服务器关闭或您尝试访问的服务未启动时,就会发生这种情况。

在您的情况下,看起来服务器“stage2cpplvs52.qa.paypal.com”已关闭或在启动时出现问题。

在从 SOAP UI 连接之前,请先尝试重新启动/启动服务器并从浏览器访问服务。

于 2016-05-09T02:46:17.493 回答
0

此处的解决方案:https ://yiingw.wordpress.com/2014/07/11/soapui-5-0-0-org-apache-http-nohttpresponseexception-the-target-server-failed-to-respond/

启用“Expect-Continue”,现在一切正常。

文件→HTTP 设置→Expect-Continue:将 Expect-Continue 标头添加到传出请求

参考: http: //www.soapui.org/Working-with-soapUI/preferences.html rfc 2616

于 2018-04-03T13:44:24.353 回答
0

对我来说,帮助我将应用程序的托管模型更改为 Out Of Process。转到应用程序属性->调试->托管模型->进程外

于 2020-09-17T15:56:07.897 回答