Troubleshooting
Problem
JText Adapter is unable to archive event file if the event directory and the archive directory are not on the same file system.
Symptom
The event file is not removed and the archive file is not created.
Cause
This issue is reproducible on all UNIX and Linux platforms.
The JText Adapter uses the Java™ File.renameTo() API to copy/move files for archival. This API however is platform-dependent.
In UNIX, the API makes a call to the operating system's library function rename(). As per documentation, the rename() subroutine of UNIX is defined to rename a directory or a file within a file system. Since JText Adapter is a Java application, it is limited by the power of the Java language implementation.
As a result, based on this infrastructure, the Adapter fails to archive the event file if the event directory and the archive directory are on different file system, since the platform implementation does not support it.
Environment
UNIX and Linux
Resolving The Problem
This is a limitation with the JText Adapter. It is recommended that the event directory and the archive directory be on the same file system or drive to accommodate different operating systems' approaches to file moving operations.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21270354