Camel
  1. Camel
  2. CAMEL-4312

Print reason for XSL stylesheet compile failure

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.8.2, 2.9.0
    • Component/s: camel-core
    • Labels:
      None
    • Environment:

      ServiceMix 4.3.1-fuse-01-22

    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Novice

      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

      1. CAMEL-4312-patch.txt
        8 kB
        Ioannis Canellos

        Activity

        Claus Ibsen made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.8.2 [ 12317866 ]
        Resolution Fixed [ 1 ]
        Ioannis Canellos made changes -
        Patch Info [Patch Available]
        Ioannis Canellos made changes -
        Attachment CAMEL-4312-patch.txt [ 12495203 ]
        Ioannis Canellos made changes -
        Assignee Ioannis Canellos [ iocanel ]
        Claus Ibsen made changes -
        Fix Version/s 2.9.0 [ 12316374 ]
        Estimated Complexity Unknown Novice
        Michael Smith made changes -
        Field Original Value New Value
        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 [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 :)
        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 :)
        Michael Smith created issue -

          People

          • Assignee:
            Ioannis Canellos
            Reporter:
            Michael Smith
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development