In our process we use the FTP adapter to write a file to a location. This operation fails when there is no preexisting file on the output directory.
So we placed a zero byte file on the directory and tested and the adapter was able to create the output file but when the files were deleted from the output directory the file transfer failed again.
We got the below error
Non Recoverable System Fault :
Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'Put' failed due to: Invalid Output Directory. Invalid Output Directory. The value specified for the output (Physical/Logical)Directory interaction parameter or jca binding property has an invalid value "XXXXXXXXXXXXXXX" Ensure that the following conditions are satisfied for the output directory : 1) It exists and is a directory (not a file). and 2) It is writable (file write permissions). and 3) If using a logical name, then ensure that the mapping from logical name<->physical directory is correctly specified in the deployment descriptor. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
Kindly help us resolve the issue.
Thanks in advance.
This operation fails when there is no preexisting file on the output directory
I'm not sure I understood this declaration.
Why do you need to have preexisting file on the output directory?
If it fails, with the mentioned error, it means that something was not defined properly.
Another option is permissions.
Check that your local system user (I guess orabi) has a write permission on the target directory (on the FTP host).