Troubleshooting
Problem
Previewing MS Office documents in ICN fails with the error above.
Symptom
The following error is returned on the screen:
The following error excerpt is seen in SystemOut.log:
CIWEB Error: com.ibm.ecm.beans.viewer.DocServicesSessionBean$ICNStreamingDocServices._loadDocument java.io.IOException: The file access permissions do not allow the specified action.
at java.io.File.createTempFile0(File.java:1729)
at java.io.File.createTempFile(File.java:1813)
at com.ibm.ecm.util.FileUtil.createTempDirectory(FileUtil.java:166)
.
.
Cause
ICN creates a subdirectory under Linux/UNIX: /tmp or Windows:\temp for temporary file storage. The user who starts the IBM WebSphere Application Server (WAS) service does not have full permissions on the tmp/temp directory.
Resolving The Problem
The default Java Virtual Machine (JVM) temporary directory can be overridden by adding the Java system property java.io.tmpdir at the JVM level in IBM WAS Admin Console.
1. Navigate to Application servers > server1 > Process definition > Java Virtual Machine.
2. In the Generic JVM arguments text box, check if there is a setting for the Java temporary directory (-Djava.io.tmpdir=/path/to/tmp)
If not, add the argument by pointing to an appropriate path.
E.g.
3. Make sure to grant full permissions; read, write and execute (777) to the user who starts the IBM WAS Service on that temporary directory. This user must have full permissions on the temporary directory.
Was this topic helpful?
Document Information
Modified date:
17 June 2018
UID
swg21992118