You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Raghu Upadhyayula <ru...@responsys.com> on 2007/11/16 20:03:38 UTC

HTTP 502 Proxy Error in Axis 1.3

Hi,

 

We have a webservice which is using Axis 1.3.

 

There are some clients using our webservices.  One of the clients
reported that he is getting a HTTP 502 Proxy Error intermittently when
accessing our webservices.

 

Does anyone face this problem before or know why this is occurring?  Is
there any solution for this issue?

 

Here is the stack trace of the error.

 

AxisFault

 faultCode: {http://xml.apache.org/axis/}HTTP

 faultSubcode:

 faultString: (502)Proxy Error

 faultActor:

 faultNode:

 faultDetail:

        {}string: return code:  502

&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML 2.0//EN&quot;&gt;

&lt;html&gt;&lt;head&gt;

&lt;title&gt;502 Proxy Error&lt;/title&gt;

&lt;/head&gt;&lt;body&gt;

&lt;h1&gt;Proxy Error&lt;/h1&gt;

&lt;p&gt;The proxy server received an invalid^M

response from an upstream server.&lt;br /&gt;^M

The proxy server could not handle the request &lt;em&gt;&lt;a
href=&quot;/webservices/ResponsysWS&quot;&gt;POST&amp;nbsp;/webservices/
ResponsysWS&lt;/a&gt;&lt;/em&gt;.&lt;p&gt;

Reason: &lt;strong&gt;Error reading from remote
server&lt;/strong&gt;&lt;/p&gt;&lt;/p&gt;

&lt;hr&gt;

&lt;address&gt;Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a Server
at ws1.responsys.net Port 80&lt;/address&gt;

&lt;/body&gt;&lt;/html&gt;

 

 

(502)Proxy Error

        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:630)

        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)

        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)

        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)

        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)

        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)

        at org.apache.axis.client.Call.invokeEngine(Call.java:2564)

        at org.apache.axis.client.Call.invoke(Call.java:2553)

        at org.apache.axis.client.Call.invoke(Call.java:2248)

        at org.apache.axis.client.Call.invoke(Call.java:2171)

        at org.apache.axis.client.Call.invoke(Call.java:1691)

        ...

        ...

 

Thanks in advance

Raghu


RE: HTTP 502 Proxy Error in Axis 1.3

Posted by "Walker, Jeff" <Je...@fmr.com>.
I would hazard a guess that it is an infrastructure problem
(request/response routing, IP address changing), since your web services
do work some of the time.
You might want to get your production support (network engineers) onto
it.
-jeff


  _____  

	From: Raghu Upadhyayula [mailto:rupadhyayula@responsys.com] 
	Sent: Friday, November 16, 2007 2:04 PM
	To: axis-user@ws.apache.org
	Subject: HTTP 502 Proxy Error in Axis 1.3
	
	

	Hi,

	 

	We have a webservice which is using Axis 1.3.

	 

	There are some clients using our webservices.  One of the
clients reported that he is getting a HTTP 502 Proxy Error
intermittently when accessing our webservices.

	 

	Does anyone face this problem before or know why this is
occurring?  Is there any solution for this issue?

	 

	Here is the stack trace of the error.

	 

	AxisFault

	 faultCode: {http://xml.apache.org/axis/}HTTP

	 faultSubcode:

	 faultString: (502)Proxy Error

	 faultActor:

	 faultNode:

	 faultDetail:

	        {}string: return code:  502

	&lt;!DOCTYPE HTML PUBLIC &quot;-//IETF//DTD HTML
2.0//EN&quot;&gt;

	&lt;html&gt;&lt;head&gt;

	&lt;title&gt;502 Proxy Error&lt;/title&gt;

	&lt;/head&gt;&lt;body&gt;

	&lt;h1&gt;Proxy Error&lt;/h1&gt;

	&lt;p&gt;The proxy server received an invalid^M

	response from an upstream server.&lt;br /&gt;^M

	The proxy server could not handle the request &lt;em&gt;&lt;a
href=&quot;/webservices/ResponsysWS&quot;&gt;POST&amp;nbsp;/webservices/
ResponsysWS&lt;/a&gt;&lt;/em&gt;.&lt;p&gt;

	Reason: &lt;strong&gt;Error reading from remote
server&lt;/strong&gt;&lt;/p&gt;&lt;/p&gt;

	&lt;hr&gt;

	&lt;address&gt;Apache/2.2.4 (Unix) mod_ssl/2.2.4 OpenSSL/0.9.7a
Server at ws1.responsys.net Port 80&lt;/address&gt;

	&lt;/body&gt;&lt;/html&gt;

	 

	 

	(502)Proxy Error

	        at
org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java
:630)

	        at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)

	        at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.j
ava:71)

	        at
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)

	        at
org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)

	        at
org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)

	        at
org.apache.axis.client.Call.invokeEngine(Call.java:2564)

	        at org.apache.axis.client.Call.invoke(Call.java:2553)

	        at org.apache.axis.client.Call.invoke(Call.java:2248)

	        at org.apache.axis.client.Call.invoke(Call.java:2171)

	        at org.apache.axis.client.Call.invoke(Call.java:1691)

	        ...

	        ...

	 

	Thanks in advance

	Raghu