Re: lazyLoad with CSV blows up on last line?

2014-05-06 Thread Willem Jiang
I filled JIRA[1] for it and the patch is on the way. [1]https://issues.apache.org/jira/browse/CAMEL-7415 -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On May 6,

Re: lazyLoad with CSV blows up on last line?

2014-05-05 Thread Tim Dudgeon
I don't think that's the problem. I added long sleep before shutting down the camel context and still get the error (my test file is very small so gets processed almost instantly). So think it must be something else closing the stream prematurely. Tim On 05/05/2014 02:50, Willem Jiang wrote:

Re: lazyLoad with CSV blows up on last line?

2014-05-05 Thread Willem Jiang
OK, I managed to reproduce the error. I will keep digging the code to see if I can find a solution here. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com (Chinese) Twitter: willemjiang Weibo: 姜宁willem On May 6,

lazyLoad with CSV blows up on last line?

2014-05-04 Thread Tim Dudgeon
I'm trying to use the CSV data format to handle a large file. Thinking I should use CsvDataFormat.setLazyLoad(true) I sort of got it working but it blows up on the last line of the file with a java.io.IOException: Stream closed exception. Is this a bug, or am I dong it wrong? This is with Camel

Re: lazyLoad with CSV blows up on last line?

2014-05-04 Thread Willem Jiang
The Stream is closed by other thread. I think you need to let the main thread sleep for few minutes to let the camel route finish the processing of the message. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http://jnn.iteye.com