The proxy server received an invalid response from an upstream server là gì

The proxy server received an invalid response from an upstream server là gì

502 Proxy Error – The proxy server received an invalid response from an upstream server. The proxy server could not handle the request.
Reason: Error reading from remote server.
Web server: Apache/2.2.15 (Oracle)
When i try to load the Webpage URL (URI) which ends with .ece , I found the error.
What is .ece format webpage: Web page dynamically generated by the Escenic Content Engine, an advanced platform for Web publishing and content management; typically contains server-side code that is parsed by the Web server, which generates HTML for the Web page.

Nguồn:https://madisonrep.org/

Xem thêm Bài Viết:

  • Bật mí cách chuyển file scan sang word nhanh nhất
  • Tuyệt chiêu sạc pin iphone đúng cách giúp kéo dài tuổi thọ pin
  • Bất ngờ tài khoản netflix premium miễn phí dành cho bạn
  • how to check window bit 32 or 64 of your pc
  • How to install Eclipse on Windows 8.1

We are building a mass mailing sending application in Java. Mail is being send by third party SMTP. After sending 400-500 mails tomcat6 service get stopped. Below is the error.

Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /lin/Campaignn.jsp. Reason: Error reading from remote server

Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.

Apache Server at msizzler.com Port 80

But when we are sending from localhost I did not received any error. It send all the mails. Please help me to sort it out this problem.

The proxy server received an invalid response from an upstream server là gì

Yurets

3,90917 gold badges50 silver badges73 bronze badges

asked Dec 5, 2013 at 17:36

Ranjeet RanjanRanjeet Ranjan

8922 gold badges9 silver badges20 bronze badges

1

The HTTP 502 "Bad Gateway" response is generated when Apache web server does not receive a valid HTTP response from the upstream server, which in this case is your Tomcat web application.

Some reasons why this might happen:

  • Tomcat may have crashed
  • The web application did not respond in time and the request from Apache timed out
  • The Tomcat threads are timing out
  • A network device is blocking the request, perhaps as some sort of connection timeout or DoS attack prevention system

If the problem is related to timeout settings, you may be able to resolve it by investigating the following:

  • ProxyTimeout directive of Apache's mod_proxy
  • Connector config of Apache Tomcat
  • Your network device's manual

answered Jan 29, 2014 at 2:18

0

Add this into your httpd.conf file

Timeout 2400 ProxyTimeout 2400 ProxyBadHeader Ignore

Ian Hunter

8,99112 gold badges62 silver badges73 bronze badges

answered Feb 18, 2014 at 9:23

7

The java application takes too long to respond(maybe due start-up/jvm being cold) thus you get the proxy error.

Proxy Error The proxy server received an invalid response from an upstream server. The proxy server could not handle the request GET /lin/Campaignn.jsp.

As Albert Maclang said amending the http timeout configuration may fix the issue. I suspect the java application throws a 500+ error thus the apache gateway error too. You should look in the logs.

answered Sep 28, 2014 at 1:56

Anthony HuntAnthony Hunt

1,3504 gold badges18 silver badges29 bronze badges

I had this issue once. It turned out to be database query issue. After re-create tables and index it has been fixed.

Although it says proxy error, when you look at server log, it shows execute query timeout. This is what I had before and how I solved it.

The proxy server received an invalid response from an upstream server là gì

DimaSan

11.6k11 gold badges64 silver badges74 bronze badges

answered Oct 26, 2016 at 19:29

CincyBellaCincyBella

991 silver badge4 bronze badges

1

Not the answer you're looking for? Browse other questions tagged java email proxy tomcat6 or ask your own question.