Re: camel-mail attachment is empty

2011-04-25 Thread Willem Jiang
Hi, I'm happy to see you find a workaround :) It looks like a bug of the DataSource? Can you try to use a new version of ServiceMix? 4.2.0 was released about years ago. Willem On 4/26/11 3:20 AM, Sorin Silaghi wrote: Hi there, Sorry to send you this directly but I keep getting erro

Re: camel-mail attachment is empty

2011-04-25 Thread Sorin Silaghi
Hi, I've done some testing and I can't see anything wrong with the stream. I have found a workaround: if I write the stream to a file first and then use FileDataSource it all works fine. I also slimmed down everything to the basics to make sure nothing else interferes and to be hone

Re: camel-mail attachment is empty

2011-04-24 Thread Willem Jiang
Can you check if your can dump the right input stream before adding it into attachment? Is there any special setting on your mail server which should also cause this kind of issue ? Willem On 4/22/11 11:00 PM, Sorin Silaghi wrote: Hi, after further testing it looks like precise

Re: camel-mail attachment is empty

2011-04-22 Thread Sorin Silaghi
Hi, after further testing it looks like precisely 4 KB are removed from the beginning of each e-mail. Does it get any stranger than this? Sorin. On Fri, Apr 22, 2011 at 4:09 PM, Willem Jiang wrote: > On 4/22/11 6:43 PM, Sorin Silaghi wrote: > >> Hi, >> >> >>I'm using FUSE

Re: camel-mail attachment is empty

2011-04-22 Thread Sorin Silaghi
Actually it seems that all the files I send get truncated. It's just that some of them get truncated all the way to nothing, but if I send one file multiple times the result is the same. On Fri, Apr 22, 2011 at 4:09 PM, Willem Jiang wrote: > On 4/22/11 6:43 PM, Sorin Silaghi wrote: > >> Hi, >> >>

Re: camel-mail attachment is empty

2011-04-22 Thread Sorin Silaghi
Hi, Thanks, I tried that code and I can't see anything out of the ordinary. I have no idea what's going on, and the worst part is that it doesn't always send the files empty, just most of the time. If I try feeding it more files at a time some of them will have content but it's stil

Re: camel-mail attachment is empty

2011-04-22 Thread Willem Jiang
On 4/22/11 6:43 PM, Sorin Silaghi wrote: Hi, I'm using FUSE ESB 4.3.1-fuse-01-09 and the camel version is 2.6.0. I just downloaded the 2.6.0 tag from the repo because I was trying to debug using trunk and I think there were some differences. I'll have a look at the unit tests also. Y

Re: camel-mail attachment is empty

2011-04-22 Thread Sorin Silaghi
Hi, I'm using FUSE ESB 4.3.1-fuse-01-09 and the camel version is 2.6.0. I just downloaded the 2.6.0 tag from the repo because I was trying to debug using trunk and I think there were some differences. I'll have a look at the unit tests also. Sorin. On Fri, Apr 22, 2011 at 11:49 AM, Clau

Re: camel-mail attachment is empty

2011-04-22 Thread Claus Ibsen
On Fri, Apr 22, 2011 at 9:33 AM, Sorin Silaghi wrote: > Hi all, > > > >           I'm trying to send an e-mail using camel-mail and I have a > problem with the attachments: they always arive empty. > Have you seen some of the unit tests in camel-mail which tests with attachments? Also what versi

camel-mail attachment is empty

2011-04-22 Thread Sorin Silaghi
Hi all, I'm trying to send an e-mail using camel-mail and I have a problem with the attachments: they always arive empty. To generate the attachment I wrote a processor (code below). I generate the stream in the route using "convertBodyTo". I also tried to do some debuggin