iReport 预览报错,Windows2003不报错,win7报错求解

desunpd 发布于 2016/10/20 13:56
阅读 237
收藏 0
avax.servlet.ServletException: Servlet execution threw an exception

root cause

java.lang.ExceptionInInitializerError
	net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:124)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:89)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:104)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:62)
	net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:179)
	net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:108)
	net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:668)
	net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:984)
	com.desuntech.action.XCWTServlet.xcwtdPrint(XCWTServlet.java:290)
	com.desuntech.action.XCWTServlet.doPost(XCWTServlet.java:87)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

root cause

net.sf.jasperreports.engine.JRRuntimeException: java.awt.FontFormatException: java.nio.BufferUnderflowException
	net.sf.jasperreports.engine.fonts.SimpleFontFace.setTtf(SimpleFontFace.java:178)
	net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFace(SimpleFontExtensionHelper.java:357)
	net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:290)
	net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java:254)
	net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:215)
	net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:184)
	net.sf.jasperreports.engine.fonts.FontExtensionsRegistry.getExtensions(FontExtensionsRegistry.java:56)
	net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:110)
	net.sf.jasperreports.engine.util.JRStyledTextParser.<clinit>(JRStyledTextParser.java:83)
	net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:124)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:89)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:104)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:62)
	net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:179)
	net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:108)
	net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:668)
	net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:984)
	com.desuntech.action.XCWTServlet.xcwtdPrint(XCWTServlet.java:290)
	com.desuntech.action.XCWTServlet.doPost(XCWTServlet.java:87)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

root cause

java.awt.FontFormatException: java.nio.BufferUnderflowException
	sun.font.TrueTypeFont.init(TrueTypeFont.java:523)
	sun.font.TrueTypeFont.<init>(TrueTypeFont.java:162)
	sun.font.FontManager.createFont2D(FontManager.java:2255)
	java.awt.Font.<init>(Font.java:570)
	java.awt.Font.createFont(Font.java:896)
	net.sf.jasperreports.engine.fonts.SimpleFontFace.setTtf(SimpleFontFace.java:174)
	net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFace(SimpleFontExtensionHelper.java:357)
	net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:290)
	net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java:254)
	net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:215)
	net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:184)
	net.sf.jasperreports.engine.fonts.FontExtensionsRegistry.getExtensions(FontExtensionsRegistry.java:56)
	net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:110)
	net.sf.jasperreports.engine.util.JRStyledTextParser.<clinit>(JRStyledTextParser.java:83)
	net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:124)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:89)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:104)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:62)
	net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:179)
	net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:108)
	net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:668)
	net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:984)
	com.desuntech.action.XCWTServlet.xcwtdPrint(XCWTServlet.java:290)
	com.desuntech.action.XCWTServlet.doPost(XCWTServlet.java:87)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)

note The full stack trace of the root cause is available in the Apache Tomcat/6.0.44 logs.


javax.servlet.ServletException: Servlet execution threw an exception 

root cause

java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser
	net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:124)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:89)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:104)
	net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:62)
	net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:179)
	net.sf.jasperreports.engine.fill.JRFiller.fill(JRFiller.java:108)
	net.sf.jasperreports.engine.JasperFillManager.fill(JasperFillManager.java:668)
	net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:984)
	com.desuntech.action.XCWTServlet.xcwtdPrint(XCWTServlet.java:290)
	com.desuntech.action.XCWTServlet.doPost(XCWTServlet.java:87)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:643)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
加载中
0
desunpd
desunpd
有大神遇到吗?
返回顶部
顶部