You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2008/04/11 06:11:43 UTC

[jira] Assigned: (CAMEL-457) Camel should raise an exception if parsing of xslt file fails

     [ https://issues.apache.org/activemq/browse/CAMEL-457?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-457:
---------------------------------

    Assignee: Claus Ibsen

> 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.