You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Michael Smith (JIRA)" <ji...@apache.org> on 2011/08/08 00:12:27 UTC

[jira] [Updated] (CAMEL-4312) Print reason for XSL stylesheet compile failure

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

Michael Smith updated CAMEL-4312:
---------------------------------

    Description: 
Failure to compile a resource in an xslt:// URL leads to this error message:

org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route39 at: >>> To[xslt://foo.xslt] <<< in route: Route[[From[direct:foo]] -> [To[xslt://foo.xslt... because of Failed to resolve endpoint: xslt://foo.xslt due to:
 Could not compile stylesheet class path resource [foo.xslt]
...

Caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:877)[:]
        at org.apache.camel.builder.xml.XsltBuilder.setTransformerSource(XsltBuilder.java:252)[68:org.apache.camel.camel-core:2.6.0.fuse-01-22]
        at org.apache.camel.builder.xml.XsltBuilder.setTransformerInputStream(XsltBuilder.java:282)[68:org.apache.camel.camel-core:2.6.0.fuse-01-22]
        at org.apache.camel.component.xslt.XsltComponent.loadResource(XsltComponent.java:156)[75:org.apache.camel.camel-spring:2.6.0.fuse-01-22]
        ... 33 more

Which is completely correct, but doesn't provide much of a hint as to how to fix my stylesheet :)

  was:
Failure to compile a resource in an xslt:// URL leads to this error message:

org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route39 at: >>> To[xslt://foo.xslt] <<< in route: Route[[From[direct:foo]] -> [To[xslt://foo.xslt... because of Failed to resolve endpoint: xslt://foo.xslt due to:
 Could not compile stylesheet class path resource [pollForAcksInput.xslt]
...

Caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
        at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:877)[:]
        at org.apache.camel.builder.xml.XsltBuilder.setTransformerSource(XsltBuilder.java:252)[68:org.apache.camel.camel-core:2.6.0.fuse-01-22]
        at org.apache.camel.builder.xml.XsltBuilder.setTransformerInputStream(XsltBuilder.java:282)[68:org.apache.camel.camel-core:2.6.0.fuse-01-22]
        at org.apache.camel.component.xslt.XsltComponent.loadResource(XsltComponent.java:156)[75:org.apache.camel.camel-spring:2.6.0.fuse-01-22]
        ... 33 more

Which is completely correct, but doesn't provide much of a hint as to how to fix my stylesheet :)


The current exception logging was added in CAMEL-457 and CAMEL-3313

> Print reason for XSL stylesheet compile failure 
> ------------------------------------------------
>
>                 Key: CAMEL-4312
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4312
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.6.0
>         Environment: ServiceMix 4.3.1-fuse-01-22
>            Reporter: Michael Smith
>            Priority: Minor
>
> Failure to compile a resource in an xslt:// URL leads to this error message:
> org.apache.camel.RuntimeCamelException: org.apache.camel.FailedToCreateRouteException: Failed to create route route39 at: >>> To[xslt://foo.xslt] <<< in route: Route[[From[direct:foo]] -> [To[xslt://foo.xslt... because of Failed to resolve endpoint: xslt://foo.xslt due to:
>  Could not compile stylesheet class path resource [foo.xslt]
> ...
> Caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet
>         at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:877)[:]
>         at org.apache.camel.builder.xml.XsltBuilder.setTransformerSource(XsltBuilder.java:252)[68:org.apache.camel.camel-core:2.6.0.fuse-01-22]
>         at org.apache.camel.builder.xml.XsltBuilder.setTransformerInputStream(XsltBuilder.java:282)[68:org.apache.camel.camel-core:2.6.0.fuse-01-22]
>         at org.apache.camel.component.xslt.XsltComponent.loadResource(XsltComponent.java:156)[75:org.apache.camel.camel-spring:2.6.0.fuse-01-22]
>         ... 33 more
> Which is completely correct, but doesn't provide much of a hint as to how to fix my stylesheet :)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira