SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 34816: An exception error occurs when you attempt to view a report as a PDF document

DetailsHotfixAboutRate It

When you try to view a report as a PDF document, the following error message might be displayed:

HTTP Status 500 - 
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: getOutputStream() has already been called for this response

This message displays when PDF generation fails without an accurate error message because the Unicode font that is to be used for the output is not installed on the middle-tier machine.

A workaround is to change to a font that is available on the middle-tier server. To change the font name, edit the app.config Java properties file. The app.config file is in your SASHOME-directory-location/SASAPCore/apps/SASWarrantyAnalysis/app.config directory. The app.config file contains two properties in which you specify fonts:

pdfgen.default.midTier.fontName=the-font-that-mid-tier-will-use-on- behalf-of-PDFs-requested-by-thin-clients pdfgen.default.fontName=the-font-that-the-rich-client-will-use-on-the-client-tier-machine-to generate-PDFs

If you get the error described in this note, try changing the property to specify a public domain font or a font for which you have a license to embed in PDF documents. For example, to specify an Arial font, update the property as follows:

pdfgen.default.midTier.fontName=Arial Unicode MS

Click the Hot Fix tab in this note to access the hot fix for this issue.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Warranty AnalysisMicrosoft Windows Server 2003 Datacenter Edition4.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Enterprise Edition4.14.29.1 TS1M3 SP49.2 TS2M0
Microsoft Windows Server 2003 Standard Edition4.14.29.1 TS1M3 SP49.2 TS2M0
64-bit Enabled AIX4.14.29.1 TS1M3 SP49.2 TS2M0
64-bit Enabled Solaris4.14.29.1 TS1M3 SP49.2 TS2M0
HP-UX IPF4.14.29.1 TS1M3 SP49.2 TS2M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.