FOP PDF Printing Fails with 500 Internal Server Error in APEX (Doc ID 1064107.1)

Last updated on NOVEMBER 14, 2016

Applies to:

Oracle Application Express (formerly HTML DB) - Version 3.0.1 and later
Information in this document applies to any platform.
***Checked for relevance on 26-Jul-2012***
***Checked for relevance on 16-Jan-2014***

Symptoms


Configured FOP to print the report in PDF format. Run the report and click the Print link fails with the following errors:

ERROR
-------------
Apex application page may have this error:
 

ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.



The content of the PDF file has the following:

500 Internal Server Error
Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.



The following error occurs while opening the PDF file:

Adobe reader could not open <pdf filename> because it is either not a supported file type or because the file has been damaged
To create an Adobe PDF document, go to the source application. Then print the document to Adobe PDF.



Instance settings used in the Admin page:
Report Printing
--Printer Server - Standard chosen
--Print Server Protocol - HTTP
--Print Server Host Address: <Host Name>
--Printer Server port: <OC4J port>
--Printer Server Script: /fop/apex_fop.jsp

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms