Hi

Can you enable DEBUG logging on
org.apache.camel.component.stream

And see in the logs. The exception may also be thrown due the file
cannot be read (we should possible throw a better exception if thats
the case).
But the debug log will help us see what is going on.



On Thu, Apr 26, 2012 at 7:56 AM, Gnanaguru S
<[email protected]> wrote:
>
>
> [ERROR] Failed to execute goal org.apache.camel:camel-maven-plugin:2.9.2:run
> (default-cli) on project camel-ex
> ample-osgi: null: MojoExecutionException: InvocationTargetException:
> java.lang.IllegalArgumentException: Inval
> id uri, valid form: 'stream:{in,file,url}' -> [Help 1]
>
> Why I was not able to specify stream:file. How should i modify my route.
>
> <from
> uri="stream:file?fileName=//input/test.txt&amp;scanStream=true&amp;scanStreamDelay=1000"/>
>
> Regards
> Guru
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/File-streaming-using-the-Stream-component-in-Camel-2-7-changes-tp4375640p5666771.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to