camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <>
Subject [jira] [Created] (CAMEL-4077) XML DSL - Validate <route> has a <from> on startup
Date Thu, 09 Jun 2011 08:53:59 GMT
XML DSL - Validate <route> has a <from> on startup

                 Key: CAMEL-4077
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
    Affects Versions: 2.7.2
            Reporter: Claus Ibsen
            Priority: Minor
             Fix For: 2.8.0

We should add validation that a <route> has a <from> as input source. If there
is no such, you may get a stacktrace about no such element.

      <to uri="log:line"/>
      <process ref="myProcessor"/>
      <to uri="mock:line"/>

Caused by: java.util.NoSuchElementException
	at java.util.AbstractList$
	at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(
	at org.apache.camel.impl.DefaultCamelContext.doStartCamel(
	at org.apache.camel.impl.DefaultCamelContext.doStart(
	at org.apache.camel.spring.SpringCamelContext.doStart(
	at org.apache.camel.impl.ServiceSupport.start(
	at org.apache.camel.impl.ServiceSupport.start(
	at org.apache.camel.impl.DefaultCamelContext.start(
	at org.apache.camel.spring.SpringCamelContext.maybeStart(
	at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(
	... 29 more

The validation should be in camel-core so we ensure this is checked regardless how the route
definition has been created.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message