[
https://issues.apache.org/jira/browse/CAMEL-4222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp updated CAMEL-4222:
-------------------------------
Fix Version/s: 2.7.3
> Ref component should throw exception if bean not found in registry
> ------------------------------------------------------------------
>
> Key: CAMEL-4222
> URL: https://issues.apache.org/jira/browse/CAMEL-4222
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.7.3, 2.8.0
>
>
> When you use the ref component and you refer to a non existing endpoint, then
> it silently returns null, causing Camel to fail with a different error saying
> the ref component cannot be found
> Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to resolve
> endpoint: ref://xxx due to: No component found with scheme: ref
> It should use mandatoryLookup, and those methods should throw
> NoSuchBeanException instead of IllegalArgumentException as they currently
> does. Then the failure message is much more precise.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira