Missing font for chart

we got a problem with the burndown chart too, caused by a missing font as well.

We are running on a debian squeeze with Java6 and Tomcat6.
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8.10) (6b18-1.8.10-0+squeeze2)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

Also we installed the ttf-liberation font as suggested in another issue here.
Which other font could be missing?

    FATAL AHttpServlet         GET failed: scrum.server.sprint.SprintBurndownChartServlet ->
java.lang.Error: Probable fatal error:No fonts found.
    at sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1088)
    at sun.font.FontManager.initialiseDeferredFont(FontManager.java:967)
    at sun.font.CompositeFont.doDeferredInitialisation(CompositeFont.java:254)
    at sun.font.CompositeFont.getSlotFont(CompositeFont.java:334)
    at sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:77)
    at sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93)
    at sun.font.Font2D.getFontMetrics(Font2D.java:387)
    at java.awt.Font.defaultLineMetrics(Font.java:2086)
    at java.awt.Font.getLineMetrics(Font.java:2156)
    at org.jfree.chart.axis.ValueAxis.findMaximumTickLabelHeight(ValueAxis.java:850)
    at org.jfree.chart.axis.ValueAxis.reserveSpace(ValueAxis.java:790)
    at org.jfree.chart.plot.XYPlot.calculateDomainAxisSpace(XYPlot.java:2567)
    at org.jfree.chart.plot.XYPlot.calculateAxisSpace(XYPlot.java:2524)
    at org.jfree.chart.plot.XYPlot.draw(XYPlot.java:2656)
    at org.jfree.chart.JFreeChart.draw(JFreeChart.java:1222)
    at org.jfree.chart.ChartUtilities.writeScaledChartAsPNG(ChartUtilities.java:257)
    at scrum.server.common.BurndownChart.writeSprintBurndownChart(BurndownChart.java:151)
    at scrum.server.common.BurndownChart.writeSprintBurndownChart(BurndownChart.java:105)
    at scrum.server.common.BurndownChart.writeSprintBurndownChart(BurndownChart.java:90)
    at scrum.server.sprint.SprintBurndownChartServlet.onRequest(SprintBurndownChartServlet.java:45)

Statement from Kunagi Team

We will try to convince JFreeChart to use an installed font.

Status

Issue is closed for Release 0.23.1.

Comments

So, Jan 29, 2012, 22:50 by Nick Godbey

Just loaded 0.22.3 and the burn down chart still not displayed
java -version
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (rhel-1.39.1.9.7.el6-x86_64)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode)

any ideas?

Mo, Jan 30, 2012, 11:01 by Witek (SM,T)

I have removed all references to specific fonts. Seams JFreeChart still can not find any font. Did you already try to install some font packages for your distro?

Fr, Apr 6, 2012, 14:20 by Anne-Sophie

apt-get install msttcorefonts fixed it for me

Post a comment



optional
optional