Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-561

xslt component doesn't work with saxon

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.8.0-fuse-01-11
    • 2.8.0-fuse-01-06
    • None
    • None

      Camel has this kind of complain

      [ DefaultErrorHandler] - Failed delivery for exchangeId:
      ID-biker-chm-local-56946-1322664559270-0-7. Exhausted after delivery
      attempt: 1 caught: net.sf.saxon.trans.XPathException: A source of type
      javax.xml.transform.stax.StAXSource is not supported in this environment
      net.sf.saxon.trans.XPathException: A source of type
      javax.xml.transform.stax.StAXSource is not supported in this environment
      at net.sf.saxon.event.Sender.send(Sender.java:253)
      at net.sf.saxon.event.Sender.send(Sender.java:50)
      at net.sf.saxon.Controller.transform(Controller.java:1611)
      at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:106)
      at
      org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:102)
      at
      org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:72)
      

      With the below route

      public void configure() throws Exception {
      
      // Consume file and sending it to a Queue
      from(fileEndpoint)
      .id("fromFileToQueue")
      .threads(5)
      .convertBodyTo(String.class)
      .log(">>> File received : ${file:name}")
      
      .to("xslt:Alpha1.0_SfonewposToPoslog2.2.1.oxit.xslt?transformerFactoryClass=net.sf.saxon.TransformerFactoryImpl")
      .to(activeMqQueueOutEndpoint);
      
      }
      
      

            willem.jiang Willem Jiang (Inactive)
            willem.jiang Willem Jiang (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: