Forum

This content is now out of date.

Visit Our Community

‘fatal error No fonts found’ – When creating chart report.

Hi,

I have recently installed Yellowfin 5.2.
Everything installed ok and I've mananged to create some reports.

But I was trying to create a chart report and I got the following error:

[code]
Error: java.lang.Error: Probable fatal error:No fonts found.
At:
sun.font.FontManager.getDefaultPhysicalFont(FontManager.java:1088)
sun.font.FontManager.initialiseDeferredFont(FontManager.java:967)
sun.font.CompositeFont.doDeferredInitialisation(CompositeFont.java:254)
sun.font.CompositeFont.getSlotFont(CompositeFont.java:334)
sun.font.CompositeStrike.getStrikeForSlot(CompositeStrike.java:77)
sun.font.CompositeStrike.getFontMetrics(CompositeStrike.java:93)
sun.font.FontDesignMetrics.initMatrixAndMetrics(FontDesignMetrics.java:358)
sun.font.FontDesignMetrics.(FontDesignMetrics.java:349)
sun.font.FontDesignMetrics.getMetrics(FontDesignMetrics.java:301)
sun.java2d.SunGraphics2D.getFontMetrics(SunGraphics2D.java:790)
org.jfree.text.G2TextMeasurer.getStringWidth(G2TextMeasurer.java:79)
org.jfree.text.TextUtilities.nextLineBreak(TextUtilities.java:285)
org.jfree.text.TextUtilities.createTextBlock(TextUtilities.java:226)
org.jfree.chart.title.TextTitle.arrangeRR(TextTitle.java:632)
org.jfree.chart.title.TextTitle.arrange(TextTitle.java:501)
org.jfree.chart.JFreeChart.drawTitle(JFreeChart.java:1321)
org.jfree.chart.JFreeChart.draw(JFreeChart.java:1209)
org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1409)
org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:215)
com.hof.mi.export.ReportResultBean.renderChart(ReportResultBean.java:5590)
com.hof.mi.export.HtmlExporter.A(HtmlExporter.java:7775)
com.hof.mi.export.HtmlExporter.A(HtmlExporter.java:3144)
com.hof.mi.export.HtmlExporter.A(HtmlExporter.java:2978)
com.hof.mi.export.HtmlExporter.B(HtmlExporter.java:2111)
com.hof.mi.export.HtmlExporter.D(HtmlExporter.java:1141)
com.hof.mi.export.HtmlExporter.export(HtmlExporter.java:1117)
com.hof.jsp.mi_005fchart_005fformat_jsp._jspService(mi_005fchart_005fformat_jsp.java:217)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:679)
org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:461)
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:399)
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
java.lang.Thread.run(Thread.java:636)
[/code]

Any ideas?

It's a clean linux box, and already have Yellowfin working on another machine in the office.

Thanks.
Hi,

This error is related to not having fonts installed on the System which are usually installed as part of JRE.

E.g If you have installed the open-6-jre-headless package you will receive this error as headless package does not include any fonts.

Please see the links below for more information:
http://forums.atlassian.com/thread.jspa?messageID=257287262&#257287262
http://forums.pentaho.com/showthread.php?73805-Probable-fatal-error-No-fonts-found
Please let me know if you still have issues.

Regards,
David