服务器无响应,帮忙找下错!
ception in thread "main" org.apache.commons.httpclient.NoHttpResponseException: The server corporbank.dccnet.com failed to respond
at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1835)
at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
at org.apache.commons.httpclient.ConnectMethod.execute(ConnectMethod.java:144)
at org.apache.commons.httpclient.HttpMethodDirector.executeConnect(HttpMethodDirector.java:495)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:390)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:324)
at com.icbc.SSL.SSLSendAndRec.main(SSLSendAndRec.java:54)

解决方案 »

  1.   

    是用java访问还是服务器上的阿帕奇启动不起来?
      

  2.   

    是不是开着防火墙呢?关闭掉所有防火墙,包括windows自带的
      

  3.   

    http://hc.apache.org/httpclient-3.x/exception-handling.html
    这个是对apache httpclient异常的官方主要讲解
    你看一下这段org.apache.commons.httpclient.NoHttpResponseException
    java.io.IOException
      +- org.apache.commons.httpclient.NoHttpResponseExceptionIn some circumstances, usually when under heavy load, the web server may be able to receive requests but unable to process them. A lack of sufficient resources like worker threads is a good example. This may cause the server to drop the connection to the client without giving any response. HttpClient throws NoHttpResponseException when it encounters such a condition. In most cases it is safe to retry a method that failed with NoHttpResponseException. 
      

  4.   

    “在一些环境,通常是在大压力情况下,web容器能名接收到请求,但是不能够处理它们。比如缺少线程资源就是最好的例子,这将会导致服务端断掉客户端的连接而不给任何的响应,在这种情况下HttpClient就会抛出NoHttpResponseException异常,多数情况下尝试再次调用方法来可靠的处理NoHttpResponseException。”
      

  5.   

    后台出现异常日志?一般会出现什么异常啊,我这是icbc给的一个用例,进行的icbc的api查询!
      

  6.   

    工商银行!!mygod!!!80口能进不能出?  看你自己的组件认证看看是否成功了!
      

  7.   

    是不是jar包问题?
    或者哪个方法调用的时候该传HttpResponse对象没传,或者传入Null值
      

  8.   

    这个基本不可能,用例是icbc给的!
      

  9.   

    应该没什么问题的,就导了2个icbc给的证书在证书库里,然后使用证书库!
      

  10.   

    证书是icbc那给的,我只需要导进证书库就可以了的,
    你说可能是那边服务器的防火墙问题吗?
      

  11.   

    这个,好像变得扑朔迷离了。如果是NoHttpResponseException这个异常的话,说明网络是通的,但是服务器没有应答,或者拒绝服务。
    只能理解成防火墙了,或者服务器有其他的安全策略?麻烦了。
      

  12.   

    几天呢我改变代理服务器的端口号为80的时候成这样了
    server responding body :<h1>Bad Request (Invalid URL)</h1>
    server responding code :HTTP/1.1 400 Bad Request
      

  13.   

    尝试检测corporbank.dccnet.com这个服务器是不是还活着,有可能服务器已挂掉了啊