Help get this topic noticed by sharing it on Twitter, Facebook, or email.

File transport transformer exception handling

*Message imported, originaly posted: Wed, 08 Feb 2012 14:21:54 .
Hi guys, following on from this post, I am trying to develop an exception scenario where I check for empty files and throw a TransformerException if I find one. The file shouldn't get written to the target directory. The exception gets thrown correctly, but the file is getting written:

ERROR 2010-09-27 16:13:34,908 FileManager.4] ValidateFileToEvent: org.mule.api.transformer.TransformerException: File integrity check failed. rossh-test-empty.stl was empty.
INFO 2010-09-27 16:13:34,909 inboundFileConnector.dispatcher.3 org.mule.transport.file.FileMessageDispatcher: Connected: endpoint.outbound.file:///home/mule/subtitles/store
INFO 2010-09-27 16:13:34,910 inboundFileConnector.dispatcher.3 org.mule.transport.file.FileConnector: Writing file to: /home/mule/subtitles/store/27-09-10/rossh-test-empty.stl

Any idea's?

Ross
1 person has
this question
+1
Reply