Hi all,
I have a standard error handling mechanism of [Iam using IS 6.0.1]
-[SEQ]TEST, exit on Success
–[SEQ]TRY, exit on Failure
–[SEQ]CATCH, exit on Done
I have a requirement of open a file stream and decompress it
Herez what iam trying to do
-[SEQ]TEST, exit on Success
–[SEQ]TRY, exit on Failure
–open a file stream(java service)
–decompress it(java service)
–close the file stream(java service)
–[SEQ]CATCH, exit on Done
–getLastError
It works perfectly fine when the compression format of the obtained file is as expected. If the compression format is not as expected,
exception is thrown in decompression.
Now i wanted to close the stream(in CATCH block), if the decompression fails.But the problem is when the control comes to CATCH sequence, stream opened in TRY sequence is lost!!!. I tried putting an object in Input/Output parameter and then assigned it to the stream opened, but even then, the stream is lost, the object variable is null. Worst thing is that the file opened will remain locked and nobody can delete it.
Has anybody faced a similar issue? Please let me know
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services