On Thu, Apr 10, 2014 at 8:20 AM, Claus Ibsen <claus.ib...@gmail.com> wrote: > That is because you have enabled tracing, you should turn that off. > http://camel.apache.org/tracer.html >
I logged a ticket to improve the tracer, so it wont load the file into memory by deafult https://issues.apache.org/jira/browse/CAMEL-7358 > > > On Wed, Apr 9, 2014 at 4:08 PM, bbk <brendi...@hotmail.com> wrote: >> Thank you for your response. >> >> But I have the same problem but somewhere and I don't find that is causing. >> The trace is: >> >> Error during type conversion from type: >> org.apache.camel.component.file.Generi >> cFile to the required type: java.lang.String with value GenericFile[...] due >> java.lang.OutOfMemoryError: Java heap space >> at >> org.apache.camel.impl.converter.BaseTypeConverterRegistry.convertTo(BaseTypeConverterRegistry.java:130) >> at >> org.apache.camel.core.osgi.OsgiTypeConverter.convertTo(OsgiTypeConverter.java:102) >> at >> org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:72) >> at >> org.apache.camel.impl.MessageSupport.getBody(MessageSupport.java:47) >> at >> org.apache.camel.util.MessageHelper.extractBodyAsString(MessageHelper.java:67) >> at >> org.apache.camel.processor.interceptor.DefaultTraceEventMessage.<init>(DefaultTraceEventMessage.java:75) >> at >> org.apache.camel.processor.interceptor.DefaultTraceEventHandler.traceExchange(DefaultTraceEventHandler.java:8 >> 6) >> at >> org.apache.camel.processor.interceptor.TraceInterceptor.traceExchange(TraceInterceptor.java:291) >> at >> org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:151) >> ... >> >> Thank you for your help. >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/Java-heap-space-with-FILE-producer-and-larges-files-tp5749845p5749999.html >> Sent from the Camel - Users mailing list archive at Nabble.com. > > > > -- > Claus Ibsen > ----------------- > Red Hat, Inc. > Email: cib...@redhat.com > Twitter: davsclaus > Blog: http://davsclaus.com > Author of Camel in Action: http://www.manning.com/ibsen > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/ -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/