Po aktualizacji Jaspera do ostatniej wersji, zatrzymał znalezienie jednej czcionki: Symbol. Pozostałe czcionki wydają się być w porządku. Mam kilka ttfs w tym samym katalogu, gdzie Jasper jest uruchamiany program jest tylko mały wrapper do generowania plików PDF, a to rzuca ten błąd:Jasper przestaje znajdować jedną czcionkę
net.sf.jasperreports.engine.util.JRFontNotFoundException: Font 'Symbol' is not available to the JVM. See the Javadoc for more details.
at net.sf.jasperreports.engine.util.JRFontUtil.checkAwtFont(JRFontUtil.java:358)
at net.sf.jasperreports.engine.util.JRStyledText.getAwtAttributedString(JRStyledText.java:226)
at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:362)
at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:1129)
at net.sf.jasperreports.engine.fill.JRFillStaticText.prepare(JRFillStaticText.java:183)
at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:329)
at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:419)
at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:378)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2028)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:757)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:269)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:127)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:942)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:860)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:84)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624)
at XmlJasperInterface.report(XmlJasperInterface.java:82)
at XmlJasperInterface.main(XmlJasperInterface.java:60)</pre>
Katalog, w którym program jest uruchomiony:
# ls *.ttf
arial.ttf arialbd.ttf lsans.ttf lsansd.ttf lsansi.ttf symbol.ttf
Wszystkie inne czcionki są znalezione. Och, w moim laptopie (macosx) działa dobrze, tylko zepsuje się na serwerze (Debian). Otworzyłem symbol.ttf i otworzyłem go dobrze na Mac OS X (na wypadek, gdyby plik był uszkodzony).
Jakieś pomysły, co może się dziać?
To nie sprawia, że znajduje czcionkę, ale sprawia, że nie narzeka na nią i używa innych czcionek. Ponieważ było to poprzednie zachowanie i wszyscy byli z niego zadowoleni, właśnie to zrobiłem, chociaż nie jest to optymalne rozwiązanie. – Pablo
To nie rozwiązuje problemu, po prostu ignoruje problem. –
To jest domyślny serwer jasperserver, ale nadal dostaję błąd dotyczący brakujących czcionek. –