File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Network Error (tcp_error) to call AXIS web service. faultString: (503)Service Unavailable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Network Error (tcp_error) to call AXIS web service. faultString: (503)Service Unavailable" Watch "Network Error (tcp_error) to call AXIS web service. faultString: (503)Service Unavailable" New topic
Author

Network Error (tcp_error) to call AXIS web service. faultString: (503)Service Unavailable

Abhishekshri Shrivastava
Ranch Hand

Joined: Jan 13, 2011
Posts: 31
Hi,

I am using axis to call a web service. when I run it on local machine (local jboss server) it works fine.

But after deploying it on development server I see service unavailable error code 503. It gets timed out. I am able to telnet (using wsdl port ) from development server to the server where the web service is deployed.
somewhere I also studied that because of having a lot of response data the webservice call gets timed out and you get service not found.
I tried to attach the .txt , .log file but was unable to attach. I am really concerned about it; as it's running well on local server but not on development server.
Please suggest me the solution.

at java.lang.Thread.run(Thread.java:619)
06:24:16,020 ERROR [STDERR] AxisFault
06:24:16,021 ERROR [STDERR] faultCode: {http://xml.apache.org/axis/}HTTP
06:24:16,021 ERROR [STDERR] faultSubcode:
06:24:16,022 ERROR [STDERR] faultString: (503)Service Unavailable

06:24:16,022 ERROR [STDERR] faultActor:
06:24:16,023 ERROR [STDERR] faultNode:
06:24:16,023 ERROR [STDERR] faultDetail:
06:24:16,024 ERROR [STDERR] {}:return code: 503
06:24:16,024 ERROR [STDERR] <HTML><HEAD>
06:24:16,025 ERROR [STDERR] <TITLE>Network Error</TITLE>
06:24:16,025 ERROR [STDERR] </HEAD>
06:24:16,026 ERROR [STDERR] <BODY>
06:24:16,026 ERROR [STDERR] <FONT face="Helvetica">
06:24:16,026 ERROR [STDERR] <big><strong></strong></big><BR>
06:24:16,027 ERROR [STDERR] </FONT>
06:24:16,027 ERROR [STDERR] <blockquote>
06:24:16,028 ERROR [STDERR] <TABLE border=0 cellPadding=1 width="80%">
06:24:16,028 ERROR [STDERR] <TR><TD>
06:24:16,029 ERROR [STDERR] <FONT face="Helvetica">
06:24:16,030 ERROR [STDERR] <big>Network Error (tcp_error)</big>

06:24:16,030 ERROR [STDERR] <BR>
06:24:16,030 ERROR [STDERR] <BR>
06:24:16,031 ERROR [STDERR] </FONT>
06:24:16,031 ERROR [STDERR] </TD></TR>
06:24:16,032 ERROR [STDERR] <TR><TD>
06:24:16,032 ERROR [STDERR] <FONT face="Helvetica">
06:24:16,033 ERROR [STDERR] A communication error occurred: "Operation timed out"
06:24:16,033 ERROR [STDERR] </FONT>
06:24:16,034 ERROR [STDERR] </TD></TR>
06:24:16,033 ERROR [STDERR] </FONT>
06:24:16,034 ERROR [STDERR] </TD></TR>
06:24:16,034 ERROR [STDERR] <TR><TD>
06:24:16,035 ERROR [STDERR] <FONT face="Helvetica">
06:24:16,035 ERROR [STDERR] The Web Server may be down, too busy, or experiencing other problems preventing it from responding to requests. You may wish to try again at a later time.
06:24:16,036 ERROR [STDERR] </FONT>
06:24:16,036 ERROR [STDERR] </TD></TR>
06:24:16,037 ERROR [STDERR] <TR><TD>
06:24:16,037 ERROR [STDERR] <FONT face="Helvetica" SIZE=2>
06:24:16,038 ERROR [STDERR] <BR>
06:24:16,038 ERROR [STDERR] For assistance, contact the Helpdesk.
06:24:16,039 ERROR [STDERR] </FONT>
06:24:16,039 ERROR [STDERR] </TD></TR>
06:24:16,040 ERROR [STDERR] </TABLE>
06:24:16,040 ERROR [STDERR] </blockquote>
06:24:16,041 ERROR [STDERR] </FONT>
06:24:16,041 ERROR [STDERR] </BODY></HTML>
06:24:16,042 ERROR [STDERR]
06:24:16,042 ERROR [STDERR] {http://xml.apache.org/axis/}HttpErrorCode:503
06:24:16,043 ERROR [STDERR]
06:24:16,043 ERROR [STDERR] (503)Service Unavailable
06:24:16,044 ERROR [STDERR] at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
06:24:16,045 ERROR [STDERR] at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
06:24:16,045 ERROR [STDERR] at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
06:24:16,046 ERROR [STDERR] at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
06:24:16,046 ERROR [STDERR] at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
06:24:16,047 ERROR [STDERR] at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
06:24:16,047 ERROR [STDERR] at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
06:24:16,048 ERROR [STDERR] at org.apache.axis.client.Call.invoke(Call.java:2767)
06:24:16,048 ERROR [STDERR] at org.apache.axis.client.Call.invoke(Call.java:2443)
06:24:16,049 ERROR [STDERR] at org.apache.axis.client.Call.invoke(Call.java:2366)
06:24:16,049 ERROR [STDERR] at org.apache.axis.client.Call.invoke(Call.java:1812)
06:24:16,050 ERROR [STDERR] at com.peregrine.webservice.IncidentManagement_BindingStub.retrieveIncidentList(IncidentManagement_BindingStub.java:652)
06:24:16,050 ERROR [STDERR] at com.bfm.app.identity.webservice.sm9request.GetSM9Tickets.SM9TicketInfo(GetSM9Tickets.java:94)
06:24:16,051 ERROR [STDERR] at com.bfm.app.identity.controller.IndetityViewController.getUserTicketInfo(IndetityViewController.java:93)
06:24:16,051 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
06:24:16,052 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
06:24:16,052 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
06:24:16,053 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:597)
06:24:16,053 ERROR [STDERR] at org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:212)
06:24:16,054 ERROR [STDERR] at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:126)
06:24:16,055 ERROR [STDERR] at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
06:24:16,055 ERROR [STDERR] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
06:24:16,056 ERROR [STDERR] at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
06:24:16,056 ERROR [STDERR] at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
06:24:16,057 ERROR [STDERR] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
06:24:16,057 ERROR [STDERR] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
06:24:16,058 ERROR [STDERR] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
06:24:16,058 ERROR [STDERR] at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
06:24:16,059 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
06:24:16,059 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
06:24:16,060 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:324)
06:24:16,060 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)
06:24:16,061 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
06:24:16,061 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
06:24:16,062 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:88)
06:24:16,063 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:100)
06:24:16,063 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
06:24:16,064 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
06:24:16,064 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
06:24:16,065 ERROR [STDERR] at org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:53)
06:24:16,065 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
06:24:16,066 ERROR [STDERR] at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:504)
06:24:16,066 ERROR [STDERR] at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:437)

Thanks,
Abhishek Shrivastava
William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

"A communication error occurred: "Operation timed out"

Talk to your network people. If you're going a VPN, that may also cause serious delays.

WP
Abhishekshri Shrivastava
Ranch Hand

Joined: Jan 13, 2011
Posts: 31
William P O'Sullivan wrote:"A communication error occurred: "Operation timed out"

Talk to your network people. If you're going a VPN, that may also cause serious delays.

WP

I asked network guys they are saying things are ok. We are able to telnet and pong the webservice server on the same port.


Is there any way such that we could increase the timed out interval in axis webservice connection?
Abhishekshri Shrivastava
Ranch Hand

Joined: Jan 13, 2011
Posts: 31
Still I am unable to figure out the issue. :-(
Abhishekshri Shrivastava
Ranch Hand

Joined: Jan 13, 2011
Posts: 31
After a lot of Analysis we got that the issue was due to the difference in JVMs of Jboss server and Web service Jboss server. Both were at different location.

The issue could be resolved in two ways-->>

1. Remove proxy setting present in jboss startup config file

Or

2. Add webservice server to non proxy hosts list for Jboss startup config file

I am happy it got resolved :-) Cheers.....!!!
 
GeeCON Prague 2014
 
subject: Network Error (tcp_error) to call AXIS web service. faultString: (503)Service Unavailable