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

Claus Ibsen commented on CAMEL-10547:
-------------------------------------

Ah you wont get any exception on startup as the uri is 100% dynamic, and 
computed on demand. However at runtime it ought to fail with a invalid option 
because charset has an invalid value.

> No Exception on invalid charset option
> --------------------------------------
>
>                 Key: CAMEL-10547
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10547
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.18.0
>         Environment: windows 7
>            Reporter: morten skou nielsen
>            Priority: Minor
>
> I get no exception when building this:
> .toD("file://" + outputDirectory + File.separator + 
> "?fileExist=Append&charset=$(header.inputFileEncoding)");
> The code only breaks when i try to write to the file due to 
> NoSuchFileException. 
> I would have expected to get a camel.FailedToCreateRouteException since the 
> charset option is invalid
> see nable
> http://camel.465427.n5.nabble.com/dynamic-endpoint-with-dynamic-encoding-td5790768.html



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

Reply via email to