1

基于第二个数据集的HTML5 图表出现错误。图表类型为堆积柱形图。基于相同数据集的两个图表可以工作并给出完全相同的图表(如预期的那样)。

随后将其中一个图表指向第二个数据集会出现错误:

Error displaying report page. See the console for details.

但是控制台中没有详细信息。

图表中的子数据集已设置,连接表达式已设置为Use Connection Expression

我正在使用iReport 5.1.0

任何帮助将不胜感激。


今天调试的更多细节:选择 PDF 预览会将以下错误转储到输出中:

Compiling to file... H:\QED\Design Specs\JasperReports5\New Reports\report6.jasper
Compilation running time: 1,170! 
    Filling report...
    Locale: English (United States)
    Time zone: Default
Setting up the file resolver...  
Report fill running time: 249! (pages generated: 3) 
    Exporting PDF (using iText) to file... H:\QED\Design Specs\JasperReports5\New Reports\report6.pdf!
Error exporting print... org.apache.batik.bridge.BridgeException: null:-1 The attribute "y" of the element <text> is invalid 
net.sf.jasperreports.engine.JRRuntimeException: org.apache.batik.bridge.BridgeException: null:-1 The attribute "y" of the element <text> is invalid 
    at com.jaspersoft.jasperreports.highcharts.charts.ChartPdfHandler.exportElement(ChartPdfHandler.java:45)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportGenericElement(JRPdfExporter.java:2750)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:868)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:820)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:697)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:419)
    at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:1174)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Caused by: org.apache.batik.bridge.BridgeException: null:-1 The attribute "y" of the element <text> is invalid
    at org.apache.batik.bridge.SVGTextElementBridge.getLocation(SVGTextElementBridge.java:253)
    at org.apache.batik.bridge.SVGTextElementBridge.createGraphicsNode(SVGTextElementBridge.java:209)
    at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:213)
    at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
    at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:219)
    at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:171)
    at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:82)
    at net.sf.jasperreports.renderers.BatikRenderer.ensureSvg(BatikRenderer.java:224)
    at net.sf.jasperreports.renderers.BatikRenderer.ensureSvg(BatikRenderer.java:239)
    at net.sf.jasperreports.renderers.BatikRenderer.getDimension(BatikRenderer.java:157)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportImage(JRPdfExporter.java:1436)
    at com.jaspersoft.jasperreports.highcharts.charts.ChartPdfHandler.exportElement(ChartPdfHandler.java:43)
... 8 more  
Export running time: 1,233! 
Executing: rundll32 SHELL32.DLL,ShellExec_RunDLL "H:\QED\Design Specs\JasperReports5\New Reports\report6.pdf"
4

0 回答 0