Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63C6A4AD5 for ; Fri, 10 Jun 2011 13:02:22 +0000 (UTC) Received: (qmail 4157 invoked by uid 500); 10 Jun 2011 13:02:22 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 4123 invoked by uid 500); 10 Jun 2011 13:02:22 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 4115 invoked by uid 99); 10 Jun 2011 13:02:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 13:02:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jun 2011 13:02:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E3A2010D4CD for ; Fri, 10 Jun 2011 13:01:58 +0000 (UTC) Date: Fri, 10 Jun 2011 13:01:58 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: dev@camel.apache.org Message-ID: <1676774422.10502.1307710918913.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <550076508.6154.1307609639515.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CAMEL-4077) XML DSL - Validate has a on startup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAMEL-4077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen resolved CAMEL-4077. -------------------------------- Resolution: Fixed > XML DSL - Validate has a on startup > -------------------------------------------------- > > Key: CAMEL-4077 > URL: https://issues.apache.org/jira/browse/CAMEL-4077 > Project: Camel > Issue Type: Improvement > Components: camel-core > Affects Versions: 2.7.2 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Priority: Minor > Fix For: 2.8.0 > > > We should add validation that a has a as input source. If there is no such, you may get a stacktrace about no such element. > {code:xml} > > > > > > {code} > {code} > Caused by: java.util.NoSuchElementException > at java.util.AbstractList$Itr.next(AbstractList.java:350) > at org.apache.camel.impl.DefaultCamelContext.doStartOrResumeRoutes(DefaultCamelContext.java:1524) > at org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1436) > at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1326) > at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:164) > at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:67) > at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:54) > at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1304) > at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:208) > at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:101) > ... 29 more > {code} > 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: http://www.atlassian.com/software/jira