Hi

I suspect its smooks, try removing that and see if the attachments are
there now.


On Fri, Nov 21, 2014 at 8:59 AM, artaxerxe <[email protected]> wrote:
> Hello everybody,
>
> I'm using apache-camel version 2.13.2 in Apache-Servicemix 5.1.2
> environment. I have a route like this (I'll rerormat it for the sake of
> concisely):
>
> <route id="IFCSUM-TO-MPSEXPDATA">
>       <from uri="ftp://some/ftp/here"/>
>       <convertBodyTo type="java.io.InputStream"/>
>       <process ref="contentToAttachmentService"/>
>       <doTry>
>         <convertBodyTo type="java.io.InputStream"/>
>         <to uri="smooks://smooks-config.xml"/>
>         <process ref="aCustomProcessor"/>
>         <doCatch>
>
>           <exception>org.milyn.SmooksException</exception>
>           <setHeader headerName="my.exception">
>             <simple>${exception}</simple>
>           </setHeader>
>           <setHeader headerName="my.exception.message">
>
> <groovy>request.getHeader("de.edigrid.exception").getCause().getMessage()</groovy>
>           </setHeader>
>           <to uri="direct://IGNORE"/>
>           <stop/>
>         </doCatch>
>       </doTry>
> ....
> </route>
>
> If this routing has no processing error (does not enter in the /doCatch/
> tag), the attachment is ok, otherwise, it isn't present in the catch clause
> and in the redirected route. Can anybody give me a hint on this please? It
> seems to me it's a bug in this camel version. In camel 2.9.0 what I used
> before, this bug wasn't present.
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Camel-cleans-attachments-if-error-is-thrown-during-routing-tp5759410.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to