Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-15343

XSLT component not working properly with IBM1.8 JDK

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • fuse-7.8-GA
    • Camel, Fuse Standalone
    • None
    • False
    • False
    • % %
    • build3
    • Undefined

      running the following comel context:

      <?xml version="1.0" encoding="UTF-8"?>
      <beans xmlns="http://www.springframework.org/schema/beans"
      		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      		xsi:schemaLocation="
      		http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
      		http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
      
      	<bean id="featuresMap" class="org.jboss.qe.camel.component.saxon.ConfigurationProperties" factory-method="newInstance"/>
      
      	<camelContext id="saxon-test" trace="true" xmlns="http://camel.apache.org/schema/spring">
      		<route>
      			<from uri="file:${project.basedir}/src/test/resources/"/>
      			<toD uri="xslt:xxe.xsl?saxonReaderProperties=#featuresMap&amp;saxon=true"/>
      			<log message="body contains ${body}"/>
      		</route>
      	</camelContext>
      
      </beans>
      
      

      fail using IBM 1.8 jdk on RHEL7/RHEL8 with the following message:

      2020-10-13 08:52:18 INFO  Tracer:159 - ID-rhel8-x86-64-large-86561-1602593535763-0-1 >>> (route1) from(file:///mnt/hudson_workspace/workspace/fuse-7.8-spring-boot-2-camel-all/d86a41f7/jbossqe-camel-it/camel/components/saxon-test/src/test/resources/) -->  <<< Pattern:InOnly, Headers:{breadcrumbId=ID-rhel8-x86-64-large-86561-1602593535763-0-1, CamelFileAbsolute=true, CamelFileAbsolutePath=/mnt/hudson_workspace/workspace/fuse-7.8-spring-boot-2-camel-all/d86a41f7/jbossqe-camel-it/camel/components/saxon-test/src/test/resources/transform.xslt, CamelFileLastModified=1602593391352, CamelFileLength=759, CamelFileName=transform.xslt, CamelFileNameConsumed=transform.xslt, CamelFileNameOnly=transform.xslt, CamelFileParent=/mnt/hudson_workspace/workspace/fuse-7.8-spring-boot-2-camel-all/d86a41f7/jbossqe-camel-it/camel/components/saxon-test/src/test/resources, CamelFilePath=/mnt/hudson_workspace/workspace/fuse-7.8-spring-boot-2-camel-all/d86a41f7/jbossqe-camel-it/camel/components/saxon-test/src/test/resources/transform.xslt, CamelFileRelativePath=transform.xslt}, BodyType:org.apache.camel.component.file.GenericFile, Body:[Body is file based: GenericFile[/mnt/hudson_workspace/workspace/fuse-7.8-spring-boot-2-camel-all/d86a41f7/jbossqe-camel-it/camel/components/saxon-test/src/test/resources/transform.xslt]]
      2020-10-13 08:52:18 INFO  XsltEndpoint:476 - Can't created XMLReader for source 
      org.xml.sax.SAXNotRecognizedException: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
      	at org.apache.xerces.parsers.AbstractSAXParser.setFeature(Unknown Source) ~[?:?]
      	at org.apache.camel.component.xslt.XsltEndpoint.createReaderForSource(XsltEndpoint.java:465) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.component.xslt.XsltEndpoint.loadResource(XsltEndpoint.java:443) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.component.xslt.XsltEndpoint.doStart(XsltEndpoint.java:543) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:72) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.util.ServiceHelper.startService(ServiceHelper.java:75) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext.deferStartService(DefaultCamelContext.java:1555) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1472) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1442) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:1438) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:749) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:80) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.util.ExchangeHelper.resolveEndpoint(ExchangeHelper.java:91) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.processor.SendDynamicProcessor.resolveEndpoint(SendDynamicProcessor.java:239) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.processor.SendDynamicProcessor.process(SendDynamicProcessor.java:134) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.processor.interceptor.TraceInterceptor.process(TraceInterceptor.java:181) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:138) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.processor.Pipeline.process(Pipeline.java:101) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.component.file.GenericFileConsumer.processExchange(GenericFileConsumer.java:454) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.component.file.GenericFileConsumer.processBatch(GenericFileConsumer.java:223) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.component.file.GenericFileConsumer.poll(GenericFileConsumer.java:187) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:174) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:101) [camel-core-2.23.2.fuse-780027-redhat-00001.jar:2.23.2.fuse-780027-redhat-00001]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:522) [?:1.8.0]
      	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:319) [?:1.8.0]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:191) [?:1.8.0]
      	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:1.8.0]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1160) [?:1.8.0]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:1.8.0]
      	at java.lang.Thread.run(Thread.java:822) [?:2.9 (07-24-2020)]
      2020-10-13 08:52:18 ERROR DefaultErrorHandler:204 - Failed delivery for (MessageId: ID-rhel8-x86-64-large-86561-1602593535763-0-2 on ExchangeId: ID-rhel8-x86-64-large-86561-1602593535763-0-1). Exhausted after delivery attempt: 1 caught: org.apache.camel.ResolveEndpointFailedException: Failed to resolve endpoint: xslt://xxe.xsl?saxon=true&saxonReaderProperties=%23featuresMap due to: Cannot load schema resource xxe.xsl
      
      

              Unassigned Unassigned
              fmongiar@redhat.com Francesco Mongiardo
              Francesco Mongiardo Francesco Mongiardo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: