aspose file tools*
The moose likes Web Services and the fly likes AxisFault: ErrorCode 502 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "AxisFault: ErrorCode 502" Watch "AxisFault: ErrorCode 502" New topic
Author

AxisFault: ErrorCode 502

Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 76
I have published a web service on my local machine and am trying to consume it locally too. When I access the WSDL no errors are generated but when I execute a client program to consume the same web service the following exception message is thrown.
{http://xml.apache.org/axis/}HttpErrorCode:502

(502)Proxy Error ( The ISA Server denied the specified Uniform Resource Locator (URL). )
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at service.search.item.ItemSearchSoapBindingStub.getItemsByCategory(ItemSearchSoapBindingStub.java:239)
at service.search.item.SearchItemClient.main(SearchItemClient.java:30)

Can anyone tell me as to why a proxy error is thrown, when I have already done the necessary proxy settings in the client code and also when the other client Java programs to consume other locally published web services work without any errors.


Regards,<br />Ketan KC Chachad
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Originally posted by Ketan KC Chachad:
Can anyone tell me as to why a proxy error is thrown, when I have already done the necessary proxy settings in the client code and also when the other client Java programs to consume other locally published web services work without any errors.


Do the other local Java programs actually use the DNS-based address of the machine (causing it to go out on the network pass through the firewall(s) and come back) or are they actually using a "localhost" or 127.0.0.1 (loopback) based address (i.e. they never leave the local machine)?
[ May 16, 2006: Message edited by: Peer Reynders ]
Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 76
Do the other local Java programs actually use the DNS-based address of the machine (causing it to go out on the network pass through the firewall(s) and come back) or are they actually using a "localhost" or 127.0.0.1 (loopback) based address (i.e. they never leave the local machine)?


The other local Java programs do use the DNS-based address of the machine but since the client programs and the server are residing on the same physical machine I do not think they go out on the network.

Also in the other Java programs I have not made any proxy settings but they still work fine. And if I do the same for the current program that is returning me the error code 502, a java.net.ConnectException is thrown.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
You stated that you already set up authentication and proxy setting as described here getting exception while invoking service frm client on another system?

The details on the java.net.ConnectException could be helpful.
Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 76
Hi tried executing the program to get the details of the java.net.ConnectException but now everytime the client program invokes the service the following exception is thrown at the server side and the client program thus throws the following message

I understand by the above message(s) that the Item class is giving a serialization exception but the class on the server side does implement the [b]java.io.Serializable interface[b] and so does the Item class that gets generated using the WSDL2Java utility.

Can anyone figure out the reason behind this exception being thrown?
Ketan KC Chachad
Ranch Hand

Joined: Nov 23, 2003
Posts: 76
Also I tried executing the same client program by giving the proxy settings, this time only the client side gave the following exception message
{http://xml.apache.org/axis/}HttpErrorCode:502

(502)Proxy Error ( The ISA Server denied the specified Uniform Resource Locator (URL). )
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at itemsearch.ItemSearchSoapBindingStub.getItemsByCategory(ItemSearchSoapBindingStub.java:239)
at itemsearch.ClientSearch.main(ClientSearch.java:22)
Exception in thread "main"


Please help me understand what the actual issue is.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AxisFault: ErrorCode 502