GraphicsEnvironment.getLocalGraphicsEnvironment fails
843807Oct 6 2003 — edited May 26 2005We have servlets create graphics on the fly - and unlike topics discussed in the Servlet formus when we start up the servlet container everything works at first.
However, after the container runs for a week (this is a rough observation) all graphics stop to work and I get errors that match with items discussed in the Servlet forum for Solaris servers without monitor.
Does anybody know why the first few days the code runs properly and then something goes wrong and the JVM no longer can get a graphcis environment? We are running on Solaris 8 and Java 1.3.1 07 b02.
Thanks!
@2003-10-06 14:43:09: ReportChart: Cannot create chart.
!null
java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53)
at java.awt.Font.initializeFont(Font.java:259)
at java.awt.Font.<init>(Font.java:293)
at com.spinfish.chart.Chart.<init>(Chart.java:32)
at com.spinfish.chart.PieChart.<init>(PieChart.java:22)
at com.spinfish.toolbox.surveyui.ReportChartServlet.createChart(ReportChartServlet.java:86)
at com.spinfish.toolbox.surveyui.ReportChartServlet.service(ReportChartServlet.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.spinfish.sushi.JSFilterChainEnd.doFilter(JSFilterChainEnd.java:39)
at com.spinfish.sushi.App.dispatch(App.java:817)
at com.spinfish.sushi.AppManager.dispatch(AppManager.java:315)
at com.spinfish.sushi.SushiHost.dispatch(SushiHost.java:372)
at com.spinfish.sushi.Sushi.dispatch(Sushi.java:498)
at com.spinfish.sushi.Listener$Instance.run(Listener.java:484)