camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henryk Konsek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-6919) FileIdempotentRepository doesn't create the whole directory structure
Date Thu, 31 Oct 2013 20:30:19 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-6919?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13810660#comment-13810660
] 

Henryk Konsek commented on CAMEL-6919:
--------------------------------------

Hi Andrzej,

Indeed, {{FileIdempotentRepository}} attempts to create repository file if the latter doesn't
exist, but it isn't smart enough to create also parent directory if necessary. We should try
to address this behavior.

Thank you for the reporting, I'll create appropriate patch.

> 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
>
> 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)

Mime
View raw message