powered by Jive Software

Monitoring Graphs Not Being Generated

Hi there,

The graphs under Server > Statistics are not being generated. Every place you should see a graph (png image), there is a broken page icon.

Under Server > Statistics > All Reports any of the PDF download links like:
https://$SERVERNAME:9091/plugins/monitoring/graph?stat=sessions&timeperiod=last60minutes&pdf=all

Yields server error:

HTTP ERROR 500

Problem accessing /plugins/monitoring/graph. Reason:

    Server Error

Caused by:

java.lang.NoClassDefFoundError: Could not initialize class org.jfree.chart.JFreeChart
	at org.jivesoftware.openfire.reporting.graph.GraphEngine.createChart(GraphEngine.java:309)
	at org.jivesoftware.openfire.reporting.graph.GraphEngine.createChart(GraphEngine.java:305)
	at org.jivesoftware.openfire.reporting.graph.GraphEngine.createTimeBarChart(GraphEngine.java:277)
	at org.jivesoftware.openfire.reporting.graph.GraphEngine.generateChart(GraphEngine.java:125)
	at org.jivesoftware.openfire.reporting.graph.GraphServlet.service(GraphServlet.java:111)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.jivesoftware.openfire.container.PluginServlet.handleServlet(PluginServlet.java:404)
	at org.jivesoftware.openfire.container.PluginServlet.service(PluginServlet.java:101)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
	at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:226)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:215)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
	at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:110)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
	at org.eclipse.jetty.server.Server.handle(Server.java:499)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
	at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
	at java.lang.Thread.run(Thread.java:748)

Powered by Jetty://

This has been a problem for a long time, through many upgrades and reinstalls.
Debian 9 Stretch (Stable) ; openjdk-8-jre-headless:amd64

If there is anything else that you need to help let me know and I will get it to you.

Thanks!

I remember it being broken for me also at some point (many years ago, maybe also on Linux at that point). But it works now on my test server with Openfire 4.2.3 with built-in Java and Monitoring Service 1.6.0 on Windows 7 x64. Graphs are showing and i can open the report pdf. So, it is something related to your setup. As the error is about JFreeChart, it can be related to JRE, but not sure. I would try with Oracle Java if possible.

1 Like

Excellent suggestion, thank you! I don’t really know Java so I also don’t really understand how to read it’s errors. After searching this “JFreeChart” error found that Jenkins people have this same error and this it the solution, for Debian 9 Stretch.

sudo apt-get install libjfreechart-java

This error could very well be caused by the use of openjdk but that is what is available through standard debian repos so that’s kinda what I want to stick with, for the sake of simplicity.

Thanks again for your help wroot.

1 Like