java.lang.NoClassDefFoundError: Could not initialize class sun.font.SunFontManager
at java.desktop/sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:265)
at java.desktop/java.awt.Font.getStringBounds(Font.java:2607)
at java.desktop/java.awt.Font.getStringBounds(Font.java:2517)
at java.desktop/java.awt.Font.getStringBounds(Font.java:2551)
at org.jrobin.graph.ImageWorker.getStringWidth(ImageWorker.java:166)
at org.jrobin.graph.RrdGraph.getSmallFontCharWidth(RrdGraph.java:594)
at org.jrobin.graph.RrdGraph.initializeLimits(RrdGraph.java:319)
at org.jrobin.graph.RrdGraph.createGraph(RrdGraph.java:88)
at org.jrobin.graph.RrdGraph.<init>(RrdGraph.java:59)
at net.bull.javamelody.internal.model.JRobin.graph(JRobin.java:262)
at net.bull.javamelody.internal.web.MonitoringController.doGraph(MonitoringController.java:394)
at net.bull.javamelody.internal.web.MonitoringController.doReport(MonitoringController.java:192)
at net.bull.javamelody.internal.web.MonitoringController.doActionIfNeededAndReport(MonitoringController.java:163)
at net.bull.javamelody.MonitoringFilter.doMonitoring(MonitoringFilter.java:408)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:206)
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
解决办法安装,安装 fontconfig
1
So, in my case apt-get install fontconfig solved the problem permanently.