Search code examples
javaweb-applicationshttprequesthttp-response-codes

NetworkError: 503 Service Unavailable - on hitting the url from browser?


i hit the url from browser http://myMachine/webApp1/customer.do?method=getCustDetail" . I get the call at server side but once i return from server i get the following error in mozilla console i.e

 "NetworkError: 503 Service Unavailable - `http://myMachine/webApp1/customer.do?method=getCustDetail"`

Here is my server code

  public String getCustDetail(HttpServletRequest req) {
    req.getSession().removeAttribute("custId");
    return null;
  }

i am not getting when i am able to hit the server with above url why i get the NetworkError: 503 Service Unavailable error


Solution

  • It was happening because of some strut 2 interceptor. At least i know rason know and can work on that.