我最近在本地 ubuntu 服务器(Linux 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 UTC 2011 x86_64 GNU/Linux)上部署了我的 Web 应用程序(在 JBoss7、Java 7 上运行)
从那时起,当我尝试在我的应用程序上运行报告时,我遇到了各种异常。该应用程序使用 Jasper Reports,这是我看到的异常......
Caused by: net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: Problem reading font data.
at net.sf.jasperreports.engine.fonts.SimpleFontFace.(SimpleFontFace.java:109) [jasperreports-javaflow-4.7.0.jar:4.7.0]
at net.sf.jasperreports.engine.fonts.SimpleFontFace.(SimpleFontFace.java:129) [jasperreports-javaflow-4.7.0.jar:4.7.0]
at net.sf.jasperreports.engine.fonts.SimpleFontFace.getInstance(SimpleFontFace.java:68) [jasperreports-javaflow-4.7.0.jar:4.7.0]
at net.sf.jasperreports.engine.fonts.SimpleFontFamily.setNormal(SimpleFontFamily.java:99) [jasperreports-javaflow-4.7.0.jar:4.7.0]
at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:261) [jasperreports-javaflow-4.7.0.jar:4.7.0]
at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java:232) [jasperreports-javaflow-4.7.0.jar:4.7.0]
at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:193) [jasperreports-javaflow-4.7.0.jar:4.7.0]
at net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:162) [jasperreports-javaflow-4.7.0.jar:4.7.0]
at net.sf.jasperreports.engine.fonts.FontExtensionsRegistry.getExtensions(FontExtensionsRegistry.java:56) [jasperreports-javaflow-4.7.0.jar:4.7.0]
at net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:110) [jasperreports-javaflow-4.7.0.jar:4.7.0]
at net.sf.jasperreports.engine.util.JRStyledTextParser.(JRStyledTextParser.java:83) [jasperreports-javaflow-4.7.0.jar:4.7.0]
... 36 more
Caused by: java.io.IOException: Problem reading font data.
at java.awt.Font.createFont(Font.java:967) [rt.jar:1.7.0_21]
at net.sf.jasperreports.engine.fonts.SimpleFontFace.(SimpleFontFace.java:101) [jasperreports-javaflow-4.7.0.jar:4.7.0]
... 46 more
我无法弄清楚是什么导致了阻止读取字体数据的 IOException。任何帮助深表感谢。