Did you change the marshaller?
The default try to read xml and put as payload, if you need to retrive a txt 
use the
BinaryFileMarshaller that put the txt as an attachment.

take a look here: http://incubator.apache.org/servicemix/servicemix-file.html

Viali.Lee wrote:
> I modified the file-binding example from the distribution, and tried to
> transfer binary file(non-xml).
> The filePoller component get the file from file system, then pass to the
> fileProcessor compoent which will deliver the message to a
> Queue(demo.org.servicemix.source). 
> The fileReceiver component is always listening the
> Queue(demo.org.servicemix.source), when message receiving, it passes the
> message to fileSender compoent which will write the file to file system.
> But it failed....How to solve this problem?
> When I drop a file(a.txt) to inbox, error shows:
> 
>      [java] WARN  - SourceTransformer              - No Source available
>      [java] [Fatal Error] :-1:-1: Premature end of file.
>      [java] [Fatal Error] :-1:-1: Premature end of file.
>      [java] [Fatal Error] :-1:-1: Premature end of file.
>      [java] [Fatal Error] :-1:-1: Premature end of file.
>      [java] [Fatal Error] :-1:-1: Premature end of file.
>      [java] [Fatal Error] :-1:-1: Premature end of file.
>      [java] [Fatal Error] :-1:-1: Premature end of file.
>      [java] [Fatal Error] :-1:-1: Premature end of file.
>      [java] [Fatal Error] :-1:-1: Premature end of file.
> http://www.nabble.com/file/p11779424/servicemix.xml servicemix.xml 
> http://www.nabble.com/file/p11779424/activemq.xml activemq.xml 

-- 
Nicola Buso
Direzione Architetture e Consulenza
Direzione Centrale Ricerca e Innovazione


Engineering S.p.A.
Padova, Italy
Cso Stati Uniti, 23/I
Tel. ++39 0498692513
e-mail: [EMAIL PROTECTED]

Reply via email to