Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Not A Bug
-
3.7.1
-
None
-
None
-
Moderate
-
Description
When using the "doneFileName=${file:name}.done" option for the file component, camel throws the following error:
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: file:///Data/contactdb/upload/xx2cin&charset=utf8&delete=true&doneFileName=$%7Bfile:name%7D.done due to: Invalid directory: /Data/contactdb/upload/xx2cin&charset=utf8&delete=true&doneFileName=${file:name}.done. Dynamic expressions with ${ } placeholders is not allowed. Use the fileName option to set the dynamic expression.Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: file:///Data/contactdb/upload/xx2cin&charset=utf8&delete=true&doneFileName=$%7Bfile:name%7D.done due to: Invalid directory: /Data/contactdb/upload/xx2cin&charset=utf8&delete=true&doneFileName=${file:name}.done. Dynamic expressions with ${ } placeholders is not allowed. Use the fileName option to set the dynamic expression. at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:913) at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:794) at org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:58) at org.apache.camel.reifier.AbstractReifier.resolveEndpoint(AbstractReifier.java:177) at org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:93) at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:73) ... 13 moreCaused by: java.lang.IllegalArgumentException: Invalid directory: /Data/contactdb/upload/xx2cin&charset=utf8&delete=true&doneFileName=${file:name}.done. Dynamic expressions with ${ } placeholders is not allowed. Use the fileName option to set the dynamic expression. at org.apache.camel.component.file.FileComponent.buildFileEndpoint(FileComponent.java:55) at org.apache.camel.component.file.GenericFileComponent.createEndpoint(GenericFileComponent.java:58) at org.apache.camel.component.file.GenericFileComponent.createEndpoint(GenericFileComponent.java:38) at org.apache.camel.support.DefaultComponent.createEndpoint(DefaultComponent.java:170) at org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:879) ... 18 more