> From: Diego Castorina [mailto:di...@quince.nl] > Subject: RE: Tomcat does not respond > > SEVERE: Servlet.service() for servlet springapp threw exception > java.lang.IllegalStateException: getOutputStream() has already been > called for this response > at org.apache.catalina.connector.Response.getWriter(Response.java:604) > at > org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198) > at > org.springframework.web.servlet.view.json.JsonView.renderMergedOutputModel(JsonView.java:60)
It would seem like the first thing you need to do is fix your webapp so it doesn't provoke the above error. If Spring intends to use the Writer associated with the Response object, you cannot use the OutputStream (and vice versa). Fix the other parts of your webapp to use Response.getWriter(), not Response.getOutputStream(). - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org