1 Reply Latest reply on Apr 13, 2010 8:54 AM by davsclaus

    FileNotFoundException: /tmp/camel-tmp

    maciej.krysiuk

      Hello,

       

      I have a problem which occurs regularly on my FUSE ESB (3.4). This is a Camel exception (using 1.6.2), which apparently has something do to with streaming cache. Following advice that I've found on the internet, I've disabled stream caching (streamCaching="false"), however the exception still occurs. See the exception message and my route definition below.

       

      Thanks for any help,

      Matt

       

      org.apache.servicemix.camel.CamelJbiComponent

       

      Error processing exchange InOnly[

        id: ID:127.0.0.1-127f663003d-12:369

        status: Active

        role: provider

        service: my-service

        endpoint: on-incoming

        in: Unable to display: java.io.IOException: Bad file descriptor ]

       

      org.apache.camel.RuntimeCamelException: java.io.FileNotFoundException: /tmp/camel-tmp-901095/cos6508449192067073075.tmp (No such file or directory)

           at org.apache.camel.converter.stream.FileInputStreamCache.reset(FileInputStreamCache.java:52)

       

      ==============================

            

      <camel:route errorHandlerRef="inputErrorHandler" streamCaching="false">

           <camel:from uri="jbi:endpoint:urn:com.mydomain.middleware:my-service:on-incoming" />

      ...

        • 1. Re: FileNotFoundException: /tmp/camel-tmp
          davsclaus

          You cannot easily disable stream caching in 1.x.

           

          There is some threshold values you can set for how big a stream must be before it offload to disk storage.

           

          You can set this threshold to 0 or a big value. It has been discussed before on the Camel user forum and maybe here at fuse forum as well.