[
https://issues.apache.org/jira/browse/CAMEL-4474?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13109759#comment-13109759
]
David J. M. Karlsen commented on CAMEL-4474:
--------------------------------------------
Hah! You are dead-right - but why??
{noformat}
Caused by: org.apache.camel.RuntimeCamelException:
java.lang.IllegalArgumentException: Only directory is supported. Endpoint must
be configured with a valid starting directory: target/incoming.dir
at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1145)
at
org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:108)
at
org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:240)
at
{noformat}
Changing it to one w/o dot fixed it - and the error message "Only directory is
supported." is misleading.
> file: consumer does not create directory
> ----------------------------------------
>
> Key: CAMEL-4474
> URL: https://issues.apache.org/jira/browse/CAMEL-4474
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.8.1
> Environment: java 1.6
> Reporter: David J. M. Karlsen
> Labels: component, consumer, file
> Attachments: Camel4474.java, app-config-context.xml,
> app-config.properties, test-context.xml
>
>
> According to http://camel.apache.org/file2.html autoCreate is true by default
> and should for a consumer create the directory.
> {noformat}
> autoCreate true Automatically create missing directories in the file's
> pathname. For the file consumer, that means creating the starting directory.
> For the file producer, it means the directory the files should be written to.
> {noformat}
> This does not happen and thus a route startup would fail.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira