-
Oct 16th, 2011, 12:32 AM
#1
Problem with Roo web scaffold - Roo generated code throws exception
I created a Spring roo project in STS and added a scaffold using "web mvc scaffold", then deployed the application to Tomcat V7.0.21. When clicking any link (home, standard/alt etc.) on the app's homepage, the Roo console shows a " java.lang.IllegalStateException: getOutputStream() has already been called for this response" exception with the following stack trace:
Caused by: java.lang.IllegalStateException: getOutputStream() has already been called for this response
at org.apache.catalina.connector.Response.getWriter(R esponse.java:627)
at org.apache.catalina.connector.ResponseFacade.getWr iter(ResponseFacade.java:215)
at javax.servlet.ServletResponseWrapper.getWriter(Ser vletResponseWrapper.java:105)
at javax.servlet.ServletResponseWrapper.getWriter(Ser vletResponseWrapper.java:105)
at org.apache.jasper.runtime.JspWriterImpl.initOut(Js pWriterImpl.java:125)
at org.apache.jasper.runtime.JspWriterImpl.flushBuffe r(JspWriterImpl.java:118)
at org.apache.jasper.runtime.PageContextImpl.release( PageContextImpl.java:182)
at org.apache.jasper.runtime.JspFactoryImpl.internalR eleasePageContext(JspFactoryImpl.java:123)
at org.apache.jasper.runtime.JspFactoryImpl.releasePa geContext(JspFactoryImpl.java:80)
at org.apache.jsp.WEB_002dINF.layouts.default_jspx._j spService(default_jspx.java:112)
at org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
at org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:433)
at org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:389)
at org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:333)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:722)
at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(ApplicationFilterChain.java:304)
at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationDispatcher.inv oke(ApplicationDispatcher.java:684)
at org.apache.catalina.core.ApplicationDispatcher.doI nclude(ApplicationDispatcher.java:593)
at org.apache.catalina.core.ApplicationDispatcher.inc lude(ApplicationDispatcher.java:530)
at org.apache.tiles.servlet.context.ServletTilesReque stContext.include(ServletTilesRequestContext.java: 260)
If I go to the urls directly instead of through the links, I don't get the exception. The application doesn't have code other than those generated by Roo.
Is this a bug in Roo, or Tiles or something else? My STS version is 2.7.1, Spring version 3.0.5, Roo version 1.1.5, and Tiles version 2.2.1, OS is Windows 7 and web server is Tomcat 7.0.21.
Thanks!
-
Oct 17th, 2011, 02:31 AM
#2
I'd say this is not normal at least. Why don't you set up debug logging and find out more about what could be causing the errors? Then post relevant parts if you still need help. I'd find that often better logging makes all the difference in finding errors and problems.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules