Jaspersoft Studio 6.10.0 export custom visualization to PDF fails

I'm working on a proof of concept for work and trying to create a custom visualization component.  I'm using Jaspersoft Studio 6.10.0  I got it to render a nice HTML preview, but attempting to preview as a PDF gives me the following error:

net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.JRException: java.io.IOException: The byte array is not a recognized imageformat.
    at net.sf.jasperreports.customvisualization.export.CVElementPdfHandler.exportElement(CVElementPdfHandler.java:66)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportGenericElement(JRPdfExporter.java:3424)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportElements(JRPdfExporter.java:1112)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportPage(JRPdfExporter.java:1063)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReportToStream(JRPdfExporter.java:927)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportReport(JRPdfExporter.java:547)
    at com.jaspersoft.studio.editor.preview.actions.export.AExportAction.exportWithProgress(AExportAction.java:223)
    at com.jaspersoft.studio.editor.preview.actions.export.AExportAction.doPreview(AExportAction.java:347)
    at com.jaspersoft.studio.editor.preview.actions.export.AExportAction$3.run(AExportAction.java:191)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: net.sf.jasperreports.engine.JRException: java.io.IOException: The byte array is not a recognized imageformat.
    at net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.processImageRetainShape(JRPdfExporter.java:1826)
    at net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.process(JRPdfExporter.java:1616)
    at net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.access$300(JRPdfExporter.java:1542)
    at net.sf.jasperreports.engine.export.JRPdfExporter.exportImage(JRPdfExporter.java:1482)
    at net.sf.jasperreports.customvisualization.export.CVElementPdfHandler.exportElement(CVElementPdfHandler.java:58)
    ... 9 more
Caused by: java.io.IOException: The byte array is not a recognized imageformat.
    at com.lowagie.text.Image.getInstance(Unknown Source)
    at net.sf.jasperreports.engine.export.JRPdfExporter$InternalImageProcessor.processImageRetainShape(JRPdfExporter.java:1821)
    ... 13 more
 

I confirmed that phantomjs is installed properly (I even generated a PDF from the preview HTML using it from the commandline), so I don't think that's the problem.  I also tried both version 2.1.1 and 1.9.7.  Additionally, I tried creating a simple report with a built in Figures type custom visualization and I get the same error. 

Thanks in advance for any advice!

pokeyjr79's picture
Joined: Nov 11 2019 - 2:00pm
Last seen: 3 years 6 months ago

0 Answers:

No answers yet
Feedback
randomness