Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
java.lang.IllegalStateException: getOutputStream() has already been called for this response [SPR-10293] #14927
then got lots of getOutputStream() exception
Windows 64bit version - STS Version: 3.1.0.RELEASE Build Id: 201210061306
Affects: 3.1 GA
Juergen Hoeller commented
This is usually caused by mixed getWriter() and getOutputStream() usage on an HttpServletResponse, i.e. by mixed textual and binary content generation on the same response. I've also seen this caused by a JSP trying to forward to a binary download controller - with a bit of comments/empty lines having been generated by the JSP before, and the response having been flushed already.
Anyway, jay, it would be good to see your stacktrace here. Could you post it?
Phil Webb commented
I have tried to replicate the issue with the latest STS release without success and I cannot see anything in the stacktrace that indicates an issue within the core framework. If you are still having issues I suggest raising a bug with the Spring Roo team who will be in a better position to track down the root cause. We can reopen this bug if it turns out not to be something specific to Roo.