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

Saurabh Rai commented on CAMEL-11866:
-------------------------------------

If you enable trace logging in camel context you will see the exception 
_ClassNotFoundException_. 

First the bean is looked up in the contet and if the bean is not resolved 
_BlueprintContainerImpl_ will try to instante the bean by it's name. The 
_OsgiClassResolver_ will try to load the the class which it will not find and 
hence this exeption. 

The loading of a class sometimes is done as optional. So the log level is kept 
as _TRACE_.

> Simple Expression Language bean doesn't throw exception when bean not found
> ---------------------------------------------------------------------------
>
>                 Key: CAMEL-11866
>                 URL: https://issues.apache.org/jira/browse/CAMEL-11866
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.19.3
>            Reporter: abccbaandy
>            Priority: Minor
>
> {code:java}
> from("file://input?fileName=${bean:notexist?method=notImportant}");
> {code}
> this bean doesn't exist, but code run well without any exception.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to