Skip to Content
0
Former Member
Feb 19, 2009 at 08:56 AM

Error while trying to export a report into PDF using JRC (Linux env)

40 Views

Hi all,

I have my web app installed on a Linux environment. When trying to export a CR report into PDF using JRC

PrintOutputController controller = reportClientDoc.getPrintOutputController();
		ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream) controller.export(ReportExportFormat.PDF);

I got this error message:

19/02/2009 10:21:37 b INFO PdfExporter: PdfDocumentModeller.modelPage (page 1)

19/02/2009 10:21:37 b INFO PdfExporter: Modelling page

19/02/2009 10:21:37 b INFO PdfExporter: Creating document manager, text modeller and image modeller.

19/02/2009 10:21:37 b ERROR PdfExporter: Exception caught in PDFFormatter.formatPage (from PdfDocumentModeller.modelPage); aborting export

java.lang.IllegalArgumentException: Data type is not supported.

at java.awt.image.Raster.createInterleavedRaster(Raster.java:212)

at java.awt.image.Raster.createInterleavedRaster(Raster.java:178)

at java.awt.image.ComponentColorModel.createCompatibleWritableRaster(ComponentColorModel.java:2826)

at java.awt.image.BufferedImage.<init>(BufferedImage.java:439)

at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.u.<init>(Unknown Source)

at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)

at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)

at com.crystaldecisions.reports.exporters.format.page.pdf.b.d(Unknown Source)

at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)

at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)

at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)

at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)

at com.businessobjects.reports.sdk.b.b.int(Unknown Source)

at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)

at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)

at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)

at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)

at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)

On my Windows environment the JRC export into PDF work perfectly. I know that there are some known issues regarding the usage of JRC on Linux environments. Could this be one of those?

Any solution (or workaround) would be highly appreciated!

Thank you!

PS Maybe this is relevant: I use a MySQL database!

Edited by: Sandila Catalin on Feb 19, 2009 10:01 AM