When running tomcat in a cluster blank pages can be served while trying to display a chart.
Here is why:
org.jfree.chart.servlet.ChartDeleter is put on the HTTPSession in org.jfree.chart.servlet.ServletUtilities.
Because ChartDeleter is not a serializable object, if you are running Tomcat in a cluster you will end up with a NotSerializableException.
The fix is simple. Just change the class declaration to:
public class ChartDeleter implements HttpSessionBindingListener, Serializable
Log in to post a comment.