camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: java FileNotFoundException The system cannot find the path specified
Date Fri, 05 Oct 2012 06:24:40 GMT
Camel uses the java.io.File API for storing files.

So make sure that from a Java perspective that the Z: file path works.

You can create a small java app an try to see if you can get it
working with java.io.File

File path = new File("z:");
path.listFiles();

And see if that works.


On Thu, Oct 4, 2012 at 1:14 PM, camelrocks <excelsohal04@gmail.com> wrote:
> Hello everyone,
>
> I have downloaded *apache-servicemix-4.3.1-fuse-01-15* to my local computer.
> I the deploy folder I have added one xml for hot deployment as shown below
>
> <?xml version="1.0" encoding="UTF-8"?>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <camelContext xmlns="http://camel.apache.org/schema/blueprint">
>     <route>
>       <from
> uri="file://D:/apache-servicemix-4.3.1-fuse-01-15/apache-servicemix-4.3.1-fuse-01-15/source?recursive=true&amp;delay=1000"/>
>       *<to uri="file:Z:"/>*
>     </route>
>   </camelContext>
> </blueprint>
>
> As you can see in the "*to uri*" I have mentioned Z as the drive letter.
> This is the name of the mapped drive.I have read and write access over this.
>
> Now I want to transfer files from my local to this Z drive(network pc). When
> I start karaf service, following error is coming in the logs.
>
> 16:00:30,208 | ERROR | use-01-15/source | GenericFileOnCompletion          |
> 69 - org.apache.camel.camel-core - 2.6.0.fuse-01-15 | Caused by:
> [org.apache.camel.component.file.GenericFileOperationFailedException -
> Cannot store file:
> Z:\core_logs-12012012\sfs\core-logs_20110908\core-logs_20110908 - Copy -
> Copy\fsd\core-logs_20110908.log]
> org.apache.camel.component.file.GenericFileOperationFailedException: Cannot
> store file: Z:\core_logs-12012012\sfs\core-logs_20110908\core-logs_20110908
> - Copy - Copy\fsd\core-logs_20110908.log
>
> Can someone please help me regarding this.
>
> blueprint.xml
> <http://camel.465427.n5.nabble.com/file/n5720557/blueprint.xml>
>
> fuse.log <http://camel.465427.n5.nabble.com/file/n5720557/fuse.log>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/java-FileNotFoundException-The-system-cannot-find-the-path-specified-tp5720557.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message