java.lang.IllegalStateException at org.apache.catalina.connector.ResponseFacade

Java代码
  1.  2012-10-4 19:50:37 org.apache.catalina.core.StandardWrapperValve invoke  
  2. 严重: Servlet.service() for servlet default threw exception  
  3. java.lang.IllegalStateException  
  4. at org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:407)  
  5. at org.apache.struts2.dispatcher.Dispatcher.sendError(Dispatcher.java:839)  
  6. at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:533)  
  7. at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)  
  8. at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:91)  
  9. at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)  
  10. at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)  
  11. at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)  
  12. at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)  
  13. at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)  
  14. at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)  
  15. at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)  
  16. at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)  
  17. at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)  
  18. at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)  
  19. at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)  
  20. at java.lang.Thread.run(Thread.java:619)  

 在用action 里返回json 数据时,不能return SUCCESS ,必须return null 否则报此错误!

posted on 2013-08-06 19:11  you Richer  阅读(2000)  评论(0编辑  收藏  举报