How to prevent FileNotFound exception being thrown by Batch Local File eWay (Doc ID 1328812.1)

Last updated on NOVEMBER 02, 2016

Applies to:

Sun Schema Runtime Environment (SRE) - Version: 5.0.5 and later   [Release: 5.0 and later ]
Information in this document applies to any platform.

Goal

If the LocalFile ETD get() method is called from with a Java Collaboration and there is no file to retrieve then a LocalFileException is thrown.

A method call such as the following:

getin().getClient().get();


may result in the following in the log file:


15:07:02.183 EWY A 1800 (java_extensions.cxx:1442): !!!!!!!!!! ERROR !!!!!!!!!!
Unable to find a file matching the Target Location configuration settings.
15:07:02.184 EWY A 1800 (java_extensions.cxx:1442): !!!!!!!!!! ERROR !!!!!!!!!!
LocalFileClientImpl.requestInputStream: Exception occurred.
15:07:02.185 EWY A 1800 (java_extensions.cxx:1442): !!!!!!!!!! ERROR !!!!!!!!!!
LocalFileClientImpl.get: Failed to get file to the payload.
15:07:02.185 REGV I 1800 (java_extensions.cxx:1442):
LocalFileClientImpl.get: Failed to get file to the payload.Nested exception follows: ---
com.stc.eways.common.eway.streaming.StreamingException: LocalFileClientImpl.requestInputStream: Exception occurred.Nested exception follows: ---
com.stc.eways.batchext.BatchException: Unable to find a file matching the Target Location configuration settings.Nested exception follows: ---
java.io.FileNotFoundException: Directory Name: /files/ File name: family_[0-9]{14}\.dat --- End of nested exception.
--- End of nested exception.
--- End of nested exception.

15:07:02.190 EWY A 1800 (java_extensions.cxx:1442): !!!!!!!!!! ERROR !!!!!!!!!!
Unable to find a file matching the Target Location configuration settings.



Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms