export issues - HTTP 500 ERROR - Web Viewer Version 14.0
search cancel

export issues - HTTP 500 ERROR - Web Viewer Version 14.0

book

Article ID: 259719

calendar_today

Updated On:

Products

Output Management Web Viewer

Issue/Introduction

When trying to export from web viewer. The export button doesn't appear to work. Tried clicking export settings or the Rule drop down box, but export doesn't work. 

Click on edit export settings and adjust the field and click export from that page Web Viewer returns "This page isn't working. ServerName is currently unable to handle this request. HTTP ERROR 500" and I don't see anything exported.

 

Environment

Release : 14.0

Web Viewer

Cause

Several occurrences of the following seen in the log:

java.lang.RuntimeException: java.io.IOException: Could not create temporary directory '/var/tomcat8/apache-tomcat-9.0.14/temp/poifiles'

This message indicates you have EXPORT_FORMAT = "OOXML"; in ConfigFile.cfg and the started task does not have write permission to the temporary directory.

Resolution

In the environment variables (CAHVCENV), set java.io.tmpdir to a directory that exists and the id of the server has read/write access. The id of the started task needs write permission to the directory because the OOXML format is compressed and requires temporary files for the compression process.

You could also switch to EXPORT_FORMAT = "XML"; which is the legacy non-compressed format.