Hi,
I am attempting to perform an XML/XSLT transformation using Spring 2.5 and Glassfish 2. The problem seems to be when calling the response.getOutputStream() within the Spring org.springframework.web.servlet.view.xslt.AbstractXsltView.doTransform() method. In particular org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream is throwing an IllegalStateException. This seems to be the code for this class:
public ServletOutputStream getOutputStream() throws IOException {
throw new IllegalStateException();
}
Can anyone shed light on why this method throws an exception and nothing more?
The code for transforming xml with Spring has worked for years on Weblogic and Orion. We are now planning to migrate the application to Glassfish but this problem is a show stopper.
I can provide more details if is helps but include the top of the stack for an overview:
java.lang.IllegalStateException at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:104) at org.springframework.web.servlet.view.xslt.AbstractXsltView.doTransform(AbstractXsltView.java:393)
at org.springframework.web.servlet.view.xslt.AbstractXsltView.renderMergedOutputModel(AbstractXsltView.java:346)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:239)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1158)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:808)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
Many thanks in advance,
Gerald
[Message sent by forum member 'ggierer' (ggierer)]
http://forums.java.net/jive/thread.jspa?messageID=249257