cancel
Showing results for 
Search instead for 
Did you mean: 

IllegalArgumentException error while exporting report in PDF format

Former Member
0 Kudos

Hi all,

we are using Crystal Report 2008, Java 1.5.22 and JRC 11.8.4.1094 to export reports in pdf format within java.

It is working fine for all reports except for a specific report where it gives IllegalArgumentException while exporting the PDF.

Below the error occurred:

12:39:16,875 ERROR [c] Disk Exporter: no output file was created by an exporter

12:39:16,875 ERROR <b> PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob (from destination?); aborting export

java.lang.IllegalArgumentException

at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)

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

at com.crystaldecisions.reports.a.e.if(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.ReportSource.export(Unknown Source)

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

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

at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)

at com.crystaldecisions.report.web.event.br.a(Unknown Source)

at com.crystaldecisions.report.web.event.w.a(Unknown Source)

at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)

at com.crystaldecisions.report.web.event.av.a(Unknown Source)

at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)

at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)

at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)

at com.crystaldecisions.report.web.viewer.ReportExportControl.a(Unknown Source)

at com.crystaldecisions.report.web.ServerControl.getHtmlContent(Unknown Source)

...........

12:39:16,875 INFO [c] Disk Exporter: finalizing export to destination

12:39:16,875 ERROR [JRCCommunicationAdapter] Failed to export report

com.crystaldecisions.reports.exporters.format.page.pdf.a.a: Unknown exception is thrown

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

at com.crystaldecisions.reports.a.e.if(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.ReportSource.export(Unknown Source)

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

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

at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.export(Unknown Source)

at com.crystaldecisions.report.web.event.br.a(Unknown Source)

at com.crystaldecisions.report.web.event.w.a(Unknown Source)

at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)

at com.crystaldecisions.report.web.event.av.a(Unknown Source)

at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)

at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)

at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)

at com.crystaldecisions.report.web.viewer.ReportExportControl.a(Unknown Source)

at com.crystaldecisions.report.web.ServerControl.getHtmlContent(Unknown Source)

...............

Caused by: java.lang.IllegalArgumentException

at com.crystaldecisions.reports.exporters.destination.disk.c.a(Unknown Source)

... 56 more

Have an idea?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

former_member185028
Active Participant
0 Kudos

Hello Andrea.

I searched through the SAP Notes for the error that you are encountering. There is an SAP Note that exists titled the following:

1332907 - Report being exported to PDF format using the Crystal Reports for Eclipse 1.x runtime, errors with the exception: PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob

Since you may not have access to the SAP Notes, I will extract the details that are mentioned in the note here:

=============================================

Symptom

Attempting to export a report to Adobe PDF format using the Crystal Reports for Eclipse 1.x runtime results in an exception.

The exception indicates "PdfExporter: caught Exception in PDFFormatter.finalizeFormatJob"

Environment

Windows 2003

Apache Tomcat 5.0

Crystal Reports for Eclipse version 1.x

Reproducing the Issue

Using the Crystal Reports for Eclipse runtime version 1.x attempt to export a report to PDF format that has the "Repeat Group Header on Each Page" option enabled.

Note: This does not occur if this option is enabled in a subreport.

Cause

When the "Repeat Group Header on Each Page" is enabled for a group in a main report the Crystal Reports for Eclipse 1.x runtime is unable to correclty format the PDF document which results in an exception.

Resolution

Updating the application to use Crystal Reports for Eclipse version 2.x runtime will resolve the issue.

The most recent updates to the Crystal Reports for Eclipse runtime can be freely downloaded from the SAP SDN Website.

http://www.sdn.sap.com/irj/boc/crystalreports-java

=============================================

Since you are on JRC 11.8.4.1094 which is Crystal Reports for Eclipse 1.x, this may be the cause of your problem.

I hope that this helps.

Regards.

- Robert

Former Member
0 Kudos

Hi Robert,

thank you very much, you have been very useful.

How do I access SAP notes?

Thanks

ted_ueda
Employee
Employee
Former Member
0 Kudos

Hi Ted,

thank you very much.

Answers (0)