org.apache.http.NoHttpResponseException: The target server failed to respond

hc-httpclient-users | Arni Sumarlidason | 3 years ago
  1. 0

    How To: SSLSocket w/ SocksProxy

    hc-httpclient-users | 3 years ago | Arni Sumarlidason
    org.apache.http.NoHttpResponseException: The target server failed to respond
  2. 0

    Re: How To: SSLSocket w/ SocksProxy

    hc-httpclient-users | 3 years ago | Arni Sumarlidason
    org.apache.http.NoHttpResponseException: The target server failed to respond
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Hi am getting this exception while using httpclient4.1. So please give me suggestion to resolve below exception. Exception occured while getting the http response:The target server failed to respond org.apache.http.NoHttpResponseException: The target server failed to respond at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143) at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57) at org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260) at org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:161) at sun.reflect.GeneratedMethodAccessor28.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.http.impl.conn.CPoolProxy.invoke(CPoolProxy.java:138) at com.sun.proxy.$Proxy13.receiveResponseHeader(Unknown Source) at org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271) at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:253) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:194) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:85) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:57) at com.scraper.SimpleBrowserHelper.executeMethod(SimpleBrowserHelper.java:75) at com.scraper.SimpleBrowser.get(SimpleBrowser.java:275) at com.scraper.GetNavigation.navigate(GetNavigation.java:56) at com.scraper.Navigation.execute(Navigation.java:126) at com.scraper.agents.base.BaseAgent.navigate(BaseAgent.java:102) at com.scraper.agents.claim.web.ClaimTargetAgent.postLogin(ClaimTargetAgent.java:496) at com.scraper.agents.claim.web.ClaimTargetAgent.aggregateVCNAorVPCNtypeClaims(ClaimTargetAgent.java:153) at com.scraper.agents.claim.web.ClaimTargetAgent.processClaimRequest(ClaimTargetAgent.java:116) at com.scraper.agents.claim.web.ClaimTarget2AutoAgent.processClaimRequest(ClaimTarget2AutoAgent.java:237) at com.scraper.agents.base.ClaimAgent.getSingleAuthorizedData(ClaimAgent.java:1085) at com.scraper.agents.base.AuthorizedMultiAgent.processRequests(AuthorizedMultiAgent.java:135) at com.scraper.agents.base.ClaimAgent.collectAndProcessSubRequests(ClaimAgent.java:1601) at com.scraper.agents.base.ClaimAgent.getAuthorizedData(ClaimAgent.java:1563) at com.scraper.agents.base.AuthorizedMultiAgent.getData(AuthorizedMultiAgent.java:297) at com.scraper.SimpleScrapper.executeRequest(SimpleScrapper.java:157) at com.scraper.DirectUpdateScheduledAction.run(DirectUpdateScheduledAction.java:162) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276) at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:260) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)

    Apache's JIRA Issue Tracker | 3 years ago | sanath
    org.apache.http.NoHttpResponseException: The target server failed to respond
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.apache.http.NoHttpResponseException

    The target server failed to respond

    at org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead()
  2. Apache HttpClient
    DefaultHttpResponseParser.parseHead
    1. org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:143)
    2. org.apache.http.impl.conn.DefaultHttpResponseParser.parseHead(DefaultHttpResponseParser.java:57)
    2 frames
  3. Apache Http
    DefaultBHttpClientConnection.receiveResponseHeader
    1. org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:260)
    2. org.apache.http.impl.DefaultBHttpClientConnection.receiveResponseHeader(DefaultBHttpClientConnection.java:161)
    2 frames
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  5. Apache HttpClient
    CPoolProxy.invoke
    1. org.apache.http.impl.conn.CPoolProxy.invoke(CPoolProxy.java:138)
    1 frame
  6. com.sun.proxy
    $Proxy0.receiveResponseHeader
    1. com.sun.proxy.$Proxy0.receiveResponseHeader(Unknown Source)
    1 frame
  7. Apache Http
    HttpRequestExecutor.execute
    1. org.apache.http.protocol.HttpRequestExecutor.doReceiveResponse(HttpRequestExecutor.java:271)
    2. org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
    2 frames
  8. Apache HttpClient
    CloseableHttpClient.execute
    1. org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:253)
    2. org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:194)
    3. org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:85)
    4. org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:108)
    5. org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
    6. org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
    6 frames