IBM Support

JText Adapter fails to create an archive file if event directory and archive directory are not on the same file system

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.

[{"Product":{"code":"SSMKUK","label":"WebSphere Adapters Family"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Adapter for JText","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"5.6","Edition":"-NA-","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
15 June 2018

UID

swg21270354