You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Yih Tsern (JIRA)" <ji...@apache.org> on 2016/01/05 12:16:39 UTC

[jira] [Created] (CAMEL-9481) Unable to move completed file when there are out Messages

Yih Tsern created CAMEL-9481:
--------------------------------

             Summary: Unable to move completed file when there are out Messages
                 Key: CAMEL-9481
                 URL: https://issues.apache.org/jira/browse/CAMEL-9481
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.9.0
         Environment: Should be since Camel version 2.9.0, personally only tested 2.9.0 & 2.15.0.
            Reporter: Yih Tsern
            Priority: Minor


When route is something like this:
{code:java}
from("file:target/test")
        .process(ex -> ex.getOut())
        .process(ex -> ex.getOut());
{code}
file consumption completes with:
{noformat}
16528 [Camel (camel-1) thread #1 - file://target/test] ERROR org.apache.camel.component.file.GenericFileOnCompletion - Caused by: [org.apache.camel.component.file.GenericFileOperationFailedException - Error renaming file from C:\workspace\projects\test-camel\target\test\New Text Document.txt to \.camel\]
org.apache.camel.component.file.GenericFileOperationFailedException: Error renaming file from C:\workspace\projects\test-camel\target\test\New Text Document.txt to \.camel\
	at org.apache.camel.component.file.FileOperations.renameFile(FileOperations.java:68)
	at org.apache.camel.component.file.strategy.GenericFileProcessStrategySupport.renameFile(GenericFileProcessStrategySupport.java:96)
	at org.apache.camel.component.file.strategy.GenericFileRenameProcessStrategy.commit(GenericFileRenameProcessStrategy.java:86)
	at org.apache.camel.component.file.GenericFileOnCompletion.processStrategyCommit(GenericFileOnCompletion.java:132)
	...<snip>
Caused by: java.io.FileNotFoundException: \.camel (Access is denied)
	at java.io.FileOutputStream.open0(Native Method)
	at java.io.FileOutputStream.open(FileOutputStream.java:270)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
	at org.apache.camel.util.FileUtil.copyFile(FileUtil.java:364)
	at org.apache.camel.util.FileUtil.renameFile(FileUtil.java:348)
	at org.apache.camel.component.file.FileOperations.renameFile(FileOperations.java:66)
	...<snip>
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)