jasperreports异常net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: Problem reading

这几天服务器出现问题把程序从12切换到14服务器结果在14服务器下应用报表打印报错,后面添加了jasperreports-fonts-4.5.1.jar 问题解决了,很纳闷12上没有这个包怎么一直正常!

An unexpected application exception has occurred.

  • java.lang.ExceptionInInitializerError
    exception
    net.sf.jasperreports.engine.JRRuntimeException: java.io.IOException: Problem reading font data.
  • net.sf.jasperreports.engine.JRRuntimeException
    java.io.IOException: Problem reading font data.
  • java.io.IOException
    Problem reading font data.
    Filter stack frames Stack trace
    • java.awt.Font.createFont0(Font.java:999)
    • java.awt.Font.createFont(Font.java:876)
    • net.sf.jasperreports.engine.fonts.SimpleFontFace.(SimpleFontFace.java:69)
    • net.sf.jasperreports.engine.fonts.SimpleFontFamily.createFontFace(SimpleFontFamily.java:316)
    • net.sf.jasperreports.engine.fonts.SimpleFontFamily.setNormal(SimpleFontFamily.java:85)
    • net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamily(SimpleFontExtensionHelper.java:243)
    • net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.parseFontFamilies(SimpleFontExtensionHelper.java:214)
    • net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:183)
    • net.sf.jasperreports.engine.fonts.SimpleFontExtensionHelper.loadFontFamilies(SimpleFontExtensionHelper.java:152)
    • net.sf.jasperreports.engine.fonts.FontExtensionsRegistry.getExtensions(FontExtensionsRegistry.java:55)
    • net.sf.jasperreports.extensions.DefaultExtensionsRegistry.getExtensions(DefaultExtensionsRegistry.java:110)
    • net.sf.jasperreports.engine.util.JRStyledTextParser.(JRStyledTextParser.java:83)
    • net.sf.jasperreports.engine.fill.JRBaseFiller.(JRBaseFiller.java:121)
    • net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:77)
    • net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:87)
    • net.sf.jasperreports.engine.fill.JRVerticalFiller.(JRVerticalFiller.java:57)
    • net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
    • net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:114)
    • net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:435)
    • net.sf.dynamicreports.jasper.builder.JasperReportBuilder.toJasperPrint(JasperReportBuilder.java:311)
    • net.sf.dynamicreports.jasper.builder.JasperReportBuilder.export(JasperReportBuilder.java:596)
    • net.sf.dynamicreports.jasper.builder.JasperReportBuilder.toXls(JasperReportBuilder.java:561)
    • com.hkr.chain.pdf.SaleOrderPdf.build(SaleOrderPdf.java:171)
    • com.hkr.revision.pages.sale.order.invoice.Print.onActivate(Print.java:64)
    • com.hkr.revision.pages.sale.order.invoice.Print.dispatchComponentEvent(Print.java)
    • org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:932)
    • org.apache.tapestry5.internal.structure.ComponentPageElementImpl.processEventTriggering(ComponentPageElementImpl.java:1117)
    • org.apache.tapestry5.internal.structure.ComponentPageElementImpl.access$3100(ComponentPageElementImpl.java:61)
    • org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1062)
    • org.apache.tapestry5.internal.structure.ComponentPageElementImpl$5.invoke(ComponentPageElementImpl.java:1059)
    • org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:74)
    • org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:87)
    • org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:1124)
    • org.apache.tapestry5.internal.structure.ComponentPageElementResourcesImpl.invoke(ComponentPageElementResourcesImpl.java:146)
    • org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1058)
    • org.apache.tapestry5.internal.structure.InternalComponentResourcesImpl.triggerContextEvent(InternalComponentResourcesImpl.java:302)
    • org.apache.tapestry5.internal.services.PageActivatorImpl.activatePage(PageActivatorImpl.java:34)
    • $PageActivator_1397dcab3af92.activatePage(Unknown Source)
    • org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:57)
    • org.apache.tapestry5.services.TapestryModule$38.handle(TapestryModule.java:2222)
    • $PageRenderRequestHandler_1397dcab3af93.handle(Unknown Source)
    • $PageRenderRequestHandler_1397dcab3af69.handle(Unknown Source)
    • org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48)
    • org.apache.tapestry5.services.InitializeActivePageName.handlePageRender(InitializeActivePageName.java:47)
    • $ComponentRequestHandler_1397dcab3af70.handlePageRender(Unknown Source)
    • com.hkr.security.services.TouchComponentRequestFilter.handlePageRender(TouchComponentRequestFilter.java:36)
    • $ComponentRequestFilter_1397dcab3af58.handlePageRender(Unknown Source)
    • $ComponentRequestHandler_1397dcab3af70.handlePageRender(Unknown Source)
    • org.tynamo.security.SecurityComponentRequestFilter.handlePageRender(SecurityComponentRequestFilter.java:49)
    • $ComponentRequestFilter_1397dcab3af61.handlePageRender(Unknown Source)
    • $ComponentRequestHandler_1397dcab3af70.handlePageRender(Unknown Source)
    • $ComponentRequestHandler_1397dcab3aeaa.handlePageRender(Unknown Source)
    • org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45)
    • $Dispatcher_1397dcab3aeb2.dispatch(Unknown Source)
    • $Dispatcher_1397dcab3aeb5.advised$dispatch_1397dcab3aeb7(Unknown Source)
    • $Dispatcher_1397dcab3aeb5$Invocation_dispatch_1397dcab3aeb6.proceedToAdvisedMethod(Unknown Source)
    • org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:84)
    • com.hkr.vfs.services.VFSDispatherMethodAdvice.advise(VFSDispatherMethodAdvice.java:34)
    • org.apache.tapestry5.internal.plastic.AbstractMethodInvocation.proceed(AbstractMethodInvocation.java:86)
    • $Dispatcher_1397dcab3aeb5.dispatch(Unknown Source)
    • $Dispatcher_1397dcab3ae9d.dispatch(Unknown Source)
    • org.apache.tapestry5.services.TapestryModule$RequestHandlerTerminator.service(TapestryModule.java:302)
    • org.apache.tapestry5.internal.services.RequestErrorFilter.service(RequestErrorFilter.java:26)
    • $RequestHandler_1397dcab3ae9e.service(Unknown Source)
    • org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:902)
    • $RequestHandler_1397dcab3ae9e.service(Unknown Source)
    • org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:892)
    • $RequestHandler_1397dcab3ae9e.service(Unknown Source)
    • org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90)
    • $RequestHandler_1397dcab3ae9e.service(Unknown Source)
    • org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:105)
    • org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:95)
    • org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85)
    • org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:119)
    • $RequestHandler_1397dcab3ae9e.service(Unknown Source)
    • $RequestHandler_1397dcab3ad1a.service(Unknown Source)
    • org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:253)
    • org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:44)
    • $HttpServletRequestHandler_1397dcab3ad1f.service(Unknown Source)
    • org.tynamo.security.services.impl.SecurityConfiguration$1.call(SecurityConfiguration.java:58)
    • org.tynamo.security.services.impl.SecurityConfiguration$1.call(SecurityConfiguration.java:53)
    • org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90)
    • org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83)
    • org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:380)
    • org.tynamo.security.services.impl.SecurityConfiguration.service(SecurityConfiguration.java:53)
    • $HttpServletRequestFilter_1397dcab3ad0a.service(Unknown Source)
    • $HttpServletRequestHandler_1397dcab3ad1f.service(Unknown Source)
    • org.tynamo.resteasy.ResteasyRequestFilter.service(ResteasyRequestFilter.java:100)
    • $HttpServletRequestFilter_1397dcab3ad15.service(Unknown Source)
    • $HttpServletRequestHandler_1397dcab3ad1f.service(Unknown Source)
    • com.hkr.soup.icepush.filter.IcepushRequestFilter.service(IcepushRequestFilter.java:60)
    • $HttpServletRequestFilter_1397dcab3ad0e.service(Unknown Source)
    • $HttpServletRequestHandler_1397dcab3ad1f.service(Unknown Source)
    • org.apache.tapestry5.internal.services.IgnoredPathsFilter.service(IgnoredPathsFilter.java:62)
    • $HttpServletRequestFilter_1397dcab3ad04.service(Unknown Source)
    • $HttpServletRequestHandler_1397dcab3ad1f.service(Unknown Source)
    • org.apache.tapestry5.services.TapestryModule$1.service(TapestryModule.java:852)
    • $HttpServletRequestHandler_1397dcab3ad1f.service(Unknown Source)
    • $HttpServletRequestHandler_1397dcab3ac2b.service(Unknown Source)
    • org.apache.tapestry5.TapestryFilter.doFilter(TapestryFilter.java:171)
    • org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
    • org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    • org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
    • org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
    • org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
    • org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
    • com.googlecode.psiprobe.Tomcat70AgentValve.invoke(Tomcat70AgentValve.java:38)
    • org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    • org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
    • org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    • org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    • org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
    • org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
    • org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
    • java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    • java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    • java.lang.Thread.run(Thread.java:745)

你可能感兴趣的:(异常)