Jump to content
  • NullPointerException in JROdtExporter with JFreeChart


    nmau
    Assigned User teodord
    CategoryBug report
    PriorityNormal
    ReproducibilityAlways
    ResolutionFixed
    SeverityMajor
    StatusResolved

    Our JRXML-Template can be exported to PDF but with

    ODT we receive an NPE: (Jasperreport 3.7.1/JFreechart 1.0.12)

     

    at net.sf.jasperreports.engine.util.JRStringUtil.xmlEncode(JRStringUtil.java:89)

    at net.sf.jasperreports.engine.export.oasis.JROdtExporter.exportImage(JROdtExporter.java:299)

    at net.sf.jasperreports.engine.export.oasis.JROpenDocumentExporter.exportGrid(JROpenDocumentExporter.java:493)

    at net.sf.jasperreports.engine.export.oasis.JROpenDocumentExporter.exportPage(JROpenDocumentExporter.java:404)

    at net.sf.jasperreports.engine.export.oasis.JROpenDocumentExporter.exportReportToOasisZip(JROpenDocumentExporter.java:326)

    at net.sf.jasperreports.engine.export.oasis.JROpenDocumentExporter.exportReport(JROpenDocumentExporter.java:226)

    at JFreeChartApp.main(JFreeChartApp.java:156)

     


    Attachments: sample.zip

    User Feedback

    Recommended Comments

    The problem occurs because of isLazy="true". That flag only makes sense for images that use String expressions. Reset it to workaround the problem.

     

    We are going to fix the exporter to handle this case properly.

     

    Regards,

    Lucian

    Link to comment
    Share on other sites

    Changed Resolution from Open to Fixed

    Changed Status from Acknowledged to Resolved


    Hi,The image rendering in exports has changed a lot since this was reported and I think it is now fixed, as I was able to export to ODT using the code provided.Thank you,Teodor
    Link to comment
    Share on other sites


×
×
  • Create New...