Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-6020

Camel Transformer using inconsistent sources

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.10.3
    • 2.9.6, 2.10.4, 2.11.0
    • camel-core
    • None
    • Unknown

    Description

      I have a simple xml transformer:

      <camel:camelContext id="camelContext" trace="true">
      
      <camel:route id="testRoute">
      <camel:from uri="direct:testEndpoint" />
      <camel:process ref="testProcessor" />
      <camel:marshal>
      <camel:jaxb fragment="true" partClass="test.Talk" contextPath="test"
      partNamespace="{http://test/}talk"/>
      </camel:marshal>
      
      <camel:to uri="log:TEST-AFTER-MARSHALL" />
      
      <camel:to uri="xslt:xslt/transform.xsl?transformerFactory=saxonTransformerFactory" />
      
      <camel:to uri="log:TEST-AFTER-XSL" />
      
      </camel:route>
      
      </camel:camelContext>
      

      The xslt is very simple then:

      <xsl:template match="/">
      <afterXlst>
      <xsl:value-of select="test:talk/text" />
      </afterXlst>
      </xsl:template>
      

      With this example run multiple times (3 in the cases below), I'm seeing inconsistent inconsistent transformers being used with 2.10.3 and also 2.11 SNAPSHOT:

      wildflower:test-bundle $ tail -f output.log | grep "XsltBuilder TRACE Using"
      2013-01-17 11:37:59,201 [ main] XsltBuilder TRACE Using BytesSource[
      2013-01-17 11:37:59,201 [ main] XsltBuilder TRACE Using BytesSource[
      2013-01-17 11:37:59,201 [ main] XsltBuilder TRACE Using BytesSource[
      2013-01-17 11:38:18,664 [ main] XsltBuilder TRACE Using javax.xml.transform.stream.StreamSource@4af6fd54 as source
      2013-01-17 11:38:18,664 [ main] XsltBuilder TRACE Using javax.xml.transform.stream.StreamSource@4af6fd54 as source
      2013-01-17 11:38:18,664 [ main] XsltBuilder TRACE Using javax.xml.transform.stream.StreamSource@4af6fd54 as source
      2013-01-17 11:38:38,241 [ main] XsltBuilder TRACE Using javax.xml.transform.stax.StAXSource@23f95cce as source
      2013-01-17 11:38:38,241 [ main] XsltBuilder TRACE Using javax.xml.transform.stax.StAXSource@23f95cce as source
      2013-01-17 11:38:38,241 [ main] XsltBuilder TRACE Using javax.xml.transform.stax.StAXSource@23f95cce as source
      

      Attachments

        Activity

          People

            njiang Willem Jiang
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: