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:10:27 UTC
[jira] [Created] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
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 [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 :)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108754#comment-13108754 ]
Claus Ibsen commented on CAMEL-4312:
------------------------------------
Ioannis thanks for the patch.
Could you read about building with checkstyle here:
http://camel.apache.org/building.html
As the source code in Camel should pass the checkstyle. So I had to refine a bit in your patch.
> 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
> Assignee: Ioannis Canellos
> Priority: Minor
> Fix For: 2.9.0
>
> Attachments: CAMEL-4312-patch.txt
>
>
> 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
[jira] [Resolved] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-4312.
--------------------------------
Resolution: Fixed
Fix Version/s: 2.8.2
> 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
> Assignee: Ioannis Canellos
> Priority: Minor
> Fix For: 2.8.2, 2.9.0
>
> Attachments: CAMEL-4312-patch.txt
>
>
> 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
[jira] [Assigned] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Ioannis Canellos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ioannis Canellos reassigned CAMEL-4312:
---------------------------------------
Assignee: Ioannis Canellos
> 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
> Assignee: Ioannis Canellos
> Priority: Minor
> Fix For: 2.9.0
>
>
> 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
[jira] [Commented] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Ioannis Canellos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13108480#comment-13108480 ]
Ioannis Canellos commented on CAMEL-4312:
-----------------------------------------
I tested it and it seems that the ErrorListener is invoked and passed an Exception which contains the line and the error that was found.
I will work on patch for it.
> 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
> Fix For: 2.9.0
>
>
> 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
[jira] [Updated] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Ioannis Canellos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ioannis Canellos updated CAMEL-4312:
------------------------------------
Attachment: CAMEL-4312-patch.txt
I am attaching a patch which adds an ErrorListener implementation which logs the line and the error where the line is found. Also adds a unit test which checks the invocation of these methods.
> 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
> Assignee: Ioannis Canellos
> Priority: Minor
> Fix For: 2.9.0
>
> Attachments: CAMEL-4312-patch.txt
>
>
> 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
[jira] [Commented] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Michael Smith (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080908#comment-13080908 ]
Michael Smith commented on CAMEL-4312:
--------------------------------------
I had a quick look at the Xalan source in the JDK. Looks like you'd just need to call setErrorListener() on the TransformerFactory and pass in a javax.xml.transform.ErrorListener. Otherwise the errors are only printed to stderr.
{code}
/**
* javax.xml.transform.sax.TransformerFactory implementation.
* Set the error event listener for the TransformerFactory, which is used
* for the processing of transformation instructions, and not for the
* transformation itself.
*
* @param listener The error listener to use with the TransformerFactory
* @throws IllegalArgumentException
*/
public void setErrorListener(ErrorListener listener)
{code}
http://download.oracle.com/docs/cd/E17802_01/webservices/webservices/docs/1.6/api/javax/xml/transform/ErrorListener.html
> 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
[jira] [Commented] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081096#comment-13081096 ]
Claus Ibsen commented on CAMEL-4312:
------------------------------------
Michael do you want to try an attempt to fix this with a patch? For example you could try if the ErrorListener is invoked with any useable information when a XSL cannot be compiled.
> 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
> Fix For: 2.9.0
>
>
> 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
[jira] [Updated] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-4312:
-------------------------------
Estimated Complexity: Novice (was: Unknown)
Fix Version/s: 2.9.0
> 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
> Fix For: 2.9.0
>
>
> 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
[jira] [Commented] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080776#comment-13080776 ]
Willem Jiang commented on CAMEL-4312:
-------------------------------------
I just checked the code of org.apache.camel.builder.xml.XsltBuilder.setTransformerSource,
the exception is thrown from xalan, I don't think we can add more information about it in Camel.
> 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
[jira] [Updated] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Michael Smith (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (CAMEL-4312) Print reason for XSL stylesheet
compile failure
Posted by "Ioannis Canellos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ioannis Canellos updated CAMEL-4312:
------------------------------------
Patch Info: [Patch Available]
> 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
> Assignee: Ioannis Canellos
> Priority: Minor
> Fix For: 2.9.0
>
> Attachments: CAMEL-4312-patch.txt
>
>
> 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