[
https://issues.apache.org/activemq/browse/CAMEL-771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-771.
-------------------------------
Resolution: Fixed
> invalid route configuration - better feedback to end user (ease of use)
> -----------------------------------------------------------------------
>
> Key: CAMEL-771
> URL: https://issues.apache.org/activemq/browse/CAMEL-771
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-core
> Affects Versions: 1.4.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Trivial
> Fix For: 1.5.0
>
>
> If you start a route that is referenced to a bean that isn't registered in
> the registry you get a CamelRuntimeException.
> *org.apache.camel.RuntimeCamelException: target not provided]*
> As you can have long and complex routes it isn't the best feedback.
> With a little help we can now give feedback on the node caused the problem
> such as:
> *org.apache.camel.RuntimeCamelException: target not provided for node:
> Processor[ref: skyggedb]*
> BTW: I am wondering if we should have a special exception for
> misconfiguration or throw a IllegalArgumentException isntead of this "very
> generic exception?" Any thoughts?
> The route in the sample is:
> {code}
> from("direct:inhouseQueue")
> .unmarshal().xstream()
> .processRef("skyggedb")
> .to("mock:result");
> {code}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.