Problem Note 34816: An exception error occurs when you attempt to view a report as a PDF document
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
SAS System | SAS Warranty Analysis | Microsoft Windows Server 2003 Datacenter Edition | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Enterprise Edition | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
Microsoft Windows Server 2003 Standard Edition | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled AIX | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
64-bit Enabled Solaris | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.2 TS2M0 |
HP-UX IPF | 4.1 | 4.2 | 9.1 TS1M3 SP4 | 9.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.
Error message "JasperException: getOutputStream() has already been called for this response" occurs when viewing a report as a PDF document. PDF generation fails without an accurate error message if the font that is to be used for the output is not installed on the client machine.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2009-03-03 13:30:20 |
Date Created: | 2009-02-15 10:55:08 |