0

我在 tomcat 上有一个应用程序,在更新 tomcat 版本后,当它生成 jasper 报告时开始显示此日志:

Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at sun.font.ExtendedTextSourceLabel.createCharinfo(ExtendedTextSourceLabel.java:608)
at sun.font.ExtendedTextSourceLabel.getCharinfo(ExtendedTextSourceLabel.java:508)
at sun.font.ExtendedTextSourceLabel.getLineBreakIndex(ExtendedTextSourceLabel.java:454)
at java.awt.font.TextMeasurer.calcLineBreak(TextMeasurer.java:325)
at java.awt.font.TextMeasurer.getLineBreakIndex(TextMeasurer.java:561)
at java.awt.font.LineBreakMeasurer.nextOffset(LineBreakMeasurer.java:358)
at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:440)
at java.awt.font.LineBreakMeasurer.nextLayout(LineBreakMeasurer.java:413)
at net.sf.jasperreports.engine.fill.TextMeasurer.renderNextLine(TextMeasurer.java:611)
at net.sf.jasperreports.engine.fill.TextMeasurer.renderParagraph(TextMeasurer.java:444)
at net.sf.jasperreports.engine.fill.TextMeasurer.measure(TextMeasurer.java:397)
at net.sf.jasperreports.engine.fill.JRFillTextElement.chopTextElement(JRFillTextElement.java:1130)
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.fillTitle(JRVerticalFiller.java:328)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:262)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:128)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:946)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:845)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
at com.netbyte.toby.aucklandzoo.server.dao.impl.ReportDaoImpl.createPDFJasperPrint(ReportDaoImpl.java:174)
at com.netbyte.toby.aucklandzoo.server.dao.impl.ReportDaoImpl.createReport(ReportDaoImpl.java:97)
at com.netbyte.toby.aucklandzoo.server.service.impl.ReportServiceImpl.createReport(ReportServiceImpl.java:23)
at com.netbyte.toby.aucklandzoo.server.gwtService.GwtReportServiceImpl.generateReport(GwtReportServiceImpl.java:25)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:561)
    ... 28 more

我已经在网上搜索了这个问题,我收到了与我在报告中使用的字体“Calibri”的 SDK 版本 1.7 错误相关的响应,但是我在服务器上拥有的 SDK 版本是 1.6,我测试将字体更改为默认字体,例如“Arial”,但是当我再次尝试时,我得到了同样的错误。我使用的 jasper 报告版本是 4.1.3。

4

0 回答 0