Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AxisFault: ErrorCode 502

 
Ketan KC Chachad
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic