Home > Back-end >  The ajax request the server did not return to the results, close the browser error problem
The ajax request the server did not return to the results, close the browser error problem

Time:05-13

 $. Ajax ({
Url: the path + "/Article/UnionSearchNav",
Type: "post",
DataType: "json",
ContentType: "application/json,"
Data: JSON. Stringify (conditionObj),
Success: the function (data) {

This is the front request code;
 
@ RequestMapping ("/UnionSearchNav ")
@ ResponseBody
Public String UnionSearchNav (@ RequestBody SearchCondition condition) {
String STR=searchService. GetTotal (condition);
Return the STR;
}

This is the background processing code;
If a request, the background hasn't been processed to shut down the browser, when after the background processing will be submitted to the following error (processing time is about 5 s), how to solve?
 
Org. Apache. Catalina. Connector. ClientAbortException: Java. IO. IOException: software in your host suspended a connection has been established,
The at org. Apache. Catalina. Connector. OutputBuffer. RealWriteBytes (OutputBuffer. Java: 393)
At org, apache tomcat. Util. Buf. ByteChunk. FlushBuffer (ByteChunk. Java: 426)
The at org. Apache. Catalina. Connector. OutputBuffer. DoFlush (OutputBuffer. Java: 342)
The at org. Apache. Catalina. Connector. OutputBuffer. Flush (OutputBuffer. Java: 317)
The at org. Apache. Catalina. Connector. CoyoteOutputStream. Flush (CoyoteOutputStream. Java: 110)
At sun. Nio. Cs. StreamEncoder. ImplFlush (StreamEncoder. Java: 297)
At sun. Nio. Cs. StreamEncoder. Flush (StreamEncoder. Java: 141)
The at Java. IO. OutputStreamWriter. Flush (OutputStreamWriter. Java: 229)
At org. Springframework. Util. StreamUtils. Copy (121) StreamUtils. Java:
The at org. Springframework. HTTP. Converter. StringHttpMessageConverter. WriteInternal (StringHttpMessageConverter. Java: 103)
The at org. Springframework. HTTP. Converter. StringHttpMessageConverter. WriteInternal (43) StringHttpMessageConverter. Java:
The at org. Springframework. HTTP. Converter. AbstractHttpMessageConverter. Write (AbstractHttpMessageConverter. Java: 224)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. AbstractMessageConverterMethodProcessor. WriteWithMessageConverters (AbstractMessageConverterMethodProcessor. Java: 275)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestResponseBodyMethodProcessor. HandleReturnValue (RequestResponseBodyMethodProcessor. Java: 180)
The at org. Springframework. Web. Method. Support. HandlerMethodReturnValueHandlerComposite. HandleReturnValue (HandlerMethodReturnValueHandlerComposite. Java: 82)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. ServletInvocableHandlerMethod. InvokeAndHandle (ServletInvocableHandlerMethod. Java: 119)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. InvokeHandlerMethod (RequestMappingHandlerAdapter. Java: 877)
The at org. Springframework. Web. Servlet. MVC) method. The annotation. RequestMappingHandlerAdapter. HandleInternal (RequestMappingHandlerAdapter. Java: 783)
The at org. Springframework. Web. Servlet. MVC. Method. AbstractHandlerMethodAdapter. Handle (AbstractHandlerMethodAdapter. Java: 87)
The at org. Springframework. Web. Servlet. DispatcherServlet. DoDispatch (DispatcherServlet. Java: 991)
The at org. Springframework. Web. Servlet. DispatcherServlet. DoService (DispatcherServlet. Java: 925)
The at org. Springframework. Web. Servlet. FrameworkServlet. The processRequest (FrameworkServlet. Java: 974)
The at org. Springframework. Web. Servlet. FrameworkServlet. DoPost (FrameworkServlet. Java: 877)
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 648)
At org. Springframework. Web. Servlet. FrameworkServlet. Service (851) FrameworkServlet. Java:
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 729)
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 291)
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 206)
At org, apache tomcat, websocket server WsFilter. DoFilter (WsFilter. Java: 52)
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 239)
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 206)
The at org. Springframework. Web. Filter. CharacterEncodingFilter. DoFilterInternal (CharacterEncodingFilter. Java: 200)
The at org. Springframework. Web. Filter. OncePerRequestFilter. DoFilter (OncePerRequestFilter. Java: 107)
The at org. Apache. Catalina. Core. ApplicationFilterChain. InternalDoFilter (ApplicationFilterChain. Java: 239)
The at org. Apache. Catalina. Core. ApplicationFilterChain. DoFilter (ApplicationFilterChain. Java: 206)
The at org. Apache. Catalina. Core. StandardWrapperValve. Invoke (StandardWrapperValve. Java: 217)
The at org. Apache. Catalina. Core. StandardContextValve. Invoke (StandardContextValve. Java: 106)
The at org. Apache. Catalina. The authenticator. AuthenticatorBase. Invoke (AuthenticatorBase. Java: 502)
The at org. Apache. Catalina. Core. StandardHostValve. Invoke (StandardHostValve. Java: 142)
The at org. Apache. Catalina. Valves. ErrorReportValve. Invoke (ErrorReportValve. Java: 79)
The at org. Apache. Catalina. Valves. AbstractAccessLogValve. Invoke (AbstractAccessLogValve. Java: 616)
The at org. Apache. Catalina. Core. StandardEngineValve. Invoke (StandardEngineValve. Java: 88)
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related