I'm using the JFreeChart ChartUtilities.writeChartAsPNG to display my charts using JSPs. I'm now receiving the following errors:
java.lang.IllegalStateException: getOutputStream() has already been called for this response
java.lang.IllegalStateException: Cannot reset buffer after response has been committed
This worked fine with previous versions of Java. Now anytime I do a getOutputStream from the response object I get the above errors when trying to display my charts.
Using out.clear() and out = pageContext.pushBody() in my JSP eliminates the errors above, but I'm still having problems displaying charts from my servlet.
Any help, examples, or advice would be greatly appreciated.
Thanks,
Brandon
ServletOutputStream
Re: ServletOutputStream
U can refer this thread ..but i have done it using spring MVC controller
i think it may help you...
http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=29303
i think it may help you...
http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=29303