Clicking the 'Generate PDF' button in WebStation Option for a generated report may fail with the following HTTP Status 500 Exception.
Review of the console log for the application server running WSO shows that the exception is occurring due to a 'java.io.FileNotFoundException' in the Temp directory being used by the WebStation Option application.
ex. Apache Console Log
The PDF Generation feature uses this ‘Temp’ directory created inside of the pre-defined WSO directory when producing the reports.
A folder is created in this ‘Temp’ directory with the userid of the person initiating the report and the temporary XML files are created inside of this directory
In the console dump example above the userid is DVTMETA and the WSO pre-defined directory is C:\Data\WSO7.2\Temp.
If appropriate access is not present, then the folder/XML files cannot be created and will result in generation failure of the PDF.
Solution:
Ensure that the user logged into WebStation Option has read/write access to this 'Temp' directory in order for the PDF Generation facility to successfully generate the PDF.