• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Response is not forwarding to downstream using Apache HTTP server

 
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Hi All,

We are using Apache HTTP server to send & receive the request to third Party(on top of Apache server we have loadbalancer and proxy server.). We can successfully send the request to third party but while receiving the response from third part we are getting the below error.

We tried to forward the request to another server say Tomcat,we can successfully manipulate the request in that server and while POST/GET the request from Tomcat to Apache this proxy error has thrown.


Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request POST /Domino/responseReceiver.jsp

Reason: Error reading from remote server

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


But the server is up and running,below is the error log when request hits Apache server

[Mon Aug 01 17:14:20 2016] [debug] mod_headers.c(756): headers: ap_headers_output_filter()
[Mon Aug 01 17:14:30 2016] [debug] mod_headers.c(756): headers: ap_headers_output_filter()
[Mon Aug 01 17:14:58 2016] [notice] Parent: child process exited with status 3221225477 -- Restarting.
[Mon Aug 01 17:14:58 2016] [notice] Apache/2.2.21 (Win32) configured -- resuming normal operations
[Mon Aug 01 17:14:58 2016] [notice] Server built: Sep  9 2011 10:26:10
[Mon Aug 01 17:14:58 2016] [notice] Parent: Created child process 5240
[Mon Aug 01 17:14:58 2016] [debug] mpm_winnt.c(477): Parent: Sent the scoreboard to the child
[Mon Aug 01 17:15:00 2016] [notice] Child 5240: Child process is running
[Mon Aug 01 17:15:00 2016] [debug] mpm_winnt.c(398): Child 5240: Retrieved our scoreboard from the parent.
[Mon Aug 01 17:15:00 2016] [info] Parent: Duplicating socket 232 and sending it to child process 5240
[Mon Aug 01 17:15:00 2016] [debug] mpm_winnt.c(595): Parent: Sent 1 listeners to child 5240
[Mon Aug 01 17:15:00 2016] [debug] mpm_winnt.c(554): Child 5240: retrieved 1 listeners from parent
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 8 in child 5240 for worker proxy:reverse
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1837): proxy: worker proxy:reverse already initialized
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1914): proxy: initialized worker 8 in child 5240 for (*) min=0 max=150 smax=150
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1818): proxy: grabbed scoreboard slot 7 in child 5240 for worker ajp://localhost:8009/Domino/
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1837): proxy: worker ajp://localhost:8009/Domino/ already initialized
[Mon Aug 01 17:15:00 2016] [debug] proxy_util.c(1914): proxy: initialized worker 7 in child 5240 for (localhost) min=0 max=150 smax=150
[Mon Aug 01 17:15:00 2016] [notice] Child 5240: Acquired the start mutex.
[Mon Aug 01 17:15:00 2016] [notice] Child 5240: Starting 150 worker threads.
[Mon Aug 01 17:15:01 2016] [notice] Child 5240: Starting thread to listen on port 80.
[Mon Aug 01 17:15:02 2016] [debug] mod_headers.c(756): headers: ap_headers_output_filter()



Please help us to resolve the issue.






 
Bartender
Posts: 3648
16
Android Mac OS X Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What does the Tomcat log say when you load the page /Domino/responseReceiver.jsp?

The problem is more likely with Tomcat than Apache.
 
Saloon Keeper
Posts: 28140
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, are you using Apache's mod_jk, mod_proxy, or perhaps some other proxying module?
 
bacon. tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic