Return-Path: Delivered-To: apmail-activemq-camel-dev-archive@locus.apache.org Received: (qmail 2288 invoked from network); 12 Apr 2008 08:24:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Apr 2008 08:24:37 -0000 Received: (qmail 36454 invoked by uid 500); 12 Apr 2008 08:24:37 -0000 Delivered-To: apmail-activemq-camel-dev-archive@activemq.apache.org Received: (qmail 36436 invoked by uid 500); 12 Apr 2008 08:24:37 -0000 Mailing-List: contact camel-dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: camel-dev@activemq.apache.org Delivered-To: mailing list camel-dev@activemq.apache.org Received: (qmail 36427 invoked by uid 99); 12 Apr 2008 08:24:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Apr 2008 01:24:37 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Apr 2008 08:24:03 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7E3C0234C0BC for ; Sat, 12 Apr 2008 01:21:43 -0700 (PDT) Message-ID: <1244438535.1207988503502.JavaMail.jira@brutus> Date: Sat, 12 Apr 2008 01:21:43 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Commented: (CAMEL-457) Camel should raise an exception if parsing of xslt file fails In-Reply-To: <1539335826.1207814683746.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42222#action_42222 ] Claus Ibsen commented on CAMEL-457: ----------------------------------- Applied the patch to trunk with thanks to Torsten > Camel should raise an exception if parsing of xslt file fails > ------------------------------------------------------------- > > Key: CAMEL-457 > URL: https://issues.apache.org/activemq/browse/CAMEL-457 > Project: Apache Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 1.3.0 > Environment: Camel 1.3.2.0, xslt component > Reporter: Torsten Mielke > Assignee: Claus Ibsen > Priority: Minor > Fix For: 1.4.0 > > Attachments: CAMEL-457.patch, CamelXSLTTestcase.zip > > > Consider a Camel route that involves an xslt component. When Camel sets up the route, the XsltBuilder ignores any errors coming from the xerces xml parser and continues constructing the route even though the xslt transformer is not initialized. > Later when the route is executed Camel correctly checks if the transformer is initialized and raises an error if not: > java.lang.IllegalArgumentException: No transformer configured! > However in case of a parse error in the xslt file, the whole route becomes unusable and the setup routine that constructs the route should fail with an appropriate error message. A sanity check needs to be added in method > org.apache.camel.builder.xml.XsltBuilder.setTransformerSource(javax.xml.transform.Source). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.