[ 
https://issues.apache.org/jira/browse/CAMEL-6919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Henryk Konsek resolved CAMEL-6919.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.13.0

> FileIdempotentRepository doesn't create the whole directory structure
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-6919
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6919
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.12.1
>         Environment: Windows 7
>            Reporter: Andrzej Gdula
>            Assignee: Henryk Konsek
>            Priority: Minor
>             Fix For: 2.13.0
>
>
> currently FileIdempotentRepository fails with when the fileStore is located 
> in a directory that does not exist. 
> would be nice to have an option to force the component to create the whole 
> directory structure.
> Below is the stacktrace
> {noformat}
> [UnitOfWorkHelper.java:110] Exception occurred during onCompletion. This 
> exception will be ignored.
> org.apache.camel.RuntimeCamelException: java.io.IOException: The system 
> cannot find the path specified
> ...
> Caused by: java.io.IOException: The system cannot find the path specified
>       at java.io.WinNTFileSystem.createFileExclusively(Native Method) 
> ~[na:1.7.0_40]
>       at java.io.File.createNewFile(File.java:1006) ~[na:1.7.0_40]
>       at org.apache.camel.util.FileUtil.createNewFile(FileUtil.java:512) 
> ~[camel-core-2.12.1.jar:2.12.1]
>       at 
> org.apache.camel.processor.idempotent.FileIdempotentRepository.appendToStore(FileIdempotentRepository.java:235)
>  ~[camel-core-2.12.1.jar:2.12.1]
>       ... 27 common frames omitted
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to