I'm pretty new to JFreeCharts but I've managed to code a line chart that reads it's values from an XML feed...I'm real proud
Anyways, the method in which I show the chart is I use the buffer stream, i.e.
Code: Select all
response.setContentType("image/png");
...
ChartUtilities.writeChartAsPNG(response.getOutputStream(), chart, 370, 130);
Code: Select all
<img src="...blah..blah../jfreechart/test"/>
Code: Select all
- java.lang.IllegalStateException
at org.apache.catalina.connector.ResponseFacade.setBufferSize(ResponseFacade.java:229)
...
...
On doing a google search for "java.lang.illegalstateexception" "org.apache.catalina.connector.ResponseFacade.setBufferSize"
I found little to help, except maybe the third hit might give an idea of what's happening (I can't paste the url here, I'm new & so this post won't allow it).
I also kept increasing the buffersize of the response, until I stopped at:
response.setBufferSize(100000000);
but still the error shows
Does anyone know a solution or even have a grasp of what's happening here?
Best,
Al