1 Reply Latest reply on Apr 30, 2014 4:29 AM by Freeman(Yue) Fang

    XMLConstants.FEATURE_SECURE_PROCESSING feature setting in jboss-fuse-6.1

    Satyam Maloo Newbie

      Hi,

       

      I have a project jar which when deployed in jboss-fuse-6.0 works fine for all request.

      But when I deploy the same jar in jboss-fuse-6.1 and try to hit the same requests, I am getting the following error in logs:

       

      CaughtExceptionType: javax.xml.transform.TransformerException, CaughtExceptionMessage: Extension function: '{http://xml.apache.org/xalan}nodeset' can not be invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature is set to true., StackTrace: ; Line#: 39; Column#: 174

      javax.xml.transform.TransformerException: Extension function: '{http://xml.apache.org/xalan}nodeset' can not be invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature is set to true.

              at org.apache.xpath.XPath.bool(XPath.java:441)

              at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:126)

              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)

              at org.apache.xalan.transformer.TransformerImpl.transformToRTF(TransformerImpl.java:1988)

              at org.apache.xalan.transformer.TransformerImpl.transformToRTF(TransformerImpl.java:1910)

              at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:312)

              at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:248)

              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)

              at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)

              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)

              at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:128)

              at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)

              at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)

              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)

              at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)

              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)

              at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)

              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)

              at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)

              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)

              at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)

              at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)

              at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270)

              at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356)

              at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)

              at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1273)

              at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251)

              at org.apache.camel.builder.xml.XsltBuilder.process(XsltBuilder.java:131)

              at org.apache.camel.impl.ProcessorEndpoint.onExchange(ProcessorEndpoint.java:103)

              at org.apache.camel.component.xslt.XsltEndpoint.onExchange(XsltEndpoint.java:94)

              at org.apache.camel.impl.ProcessorEndpoint$1.process(ProcessorEndpoint.java:71)

              at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)

              at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)

              at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)

              at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)

              at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)

              at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)

              at org.apache.camel.processor.Pipeline.access$100(Pipeline.java:43)

              at org.apache.camel.processor.Pipeline$1.done(Pipeline.java:136)

              at org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:251)

              at org.apache.camel.processor.RedeliveryErrorHandler$1.done(RedeliveryErrorHandler.java:410)

              at org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:81)

              at org.apache.camel.processor.SendProcessor$1.done(SendProcessor.java:120)

              at org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:251)

              at org.apache.camel.processor.Pipeline$1.done(Pipeline.java:145)

              at org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:251)

              at org.apache.camel.processor.RedeliveryErrorHandler$1.done(RedeliveryErrorHandler.java:410)

              at org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:81)

              at org.apache.camel.processor.ChoiceProcessor$1.done(ChoiceProcessor.java:72)

              at org.apache.camel.processor.CamelInternalProcessor$InternalCallback.done(CamelInternalProcessor.java:251)

              at org.apache.camel.processor.RedeliveryErrorHandler$1.done(RedeliveryErrorHandler.java:410)

              at org.apache.camel.management.InstrumentationProcessor$1.done(InstrumentationProcessor.java:81)

              at org.apache.camel.processor.SendProcessor$1.done(SendProcessor.java:120)

              at org.apache.camel.component.cxf.CxfClientCallback.handleResponse(CxfClientCallback.java:63)

              at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:856)

              at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1614)

              at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream$1.run(HTTPConduit.java:1129)

              at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$3.run(AutomaticWorkQueueImpl.java:428)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

              at org.apache.cxf.workqueue.AutomaticWorkQueueImpl$AWQThreadFactory$1.run(AutomaticWorkQueueImpl.java:353)

              at java.lang.Thread.run(Thread.java:745)

      Caused by: javax.xml.transform.TransformerException: Extension function: '{http://xml.apache.org/xalan}nodeset' can not be invoked when the XMLConstants.FEATURE_SECURE_PROCESSING feature is set to true.

              at org.apache.xpath.functions.FuncExtFunction.execute(FuncExtFunction.java:186)

              at org.apache.xpath.axes.FilterExprIteratorSimple.executeFilterExpr(FilterExprIteratorSimple.java:116)

              at org.apache.xpath.axes.FilterExprWalker.setRoot(FilterExprWalker.java:131)

              at org.apache.xpath.axes.WalkingIterator.setRoot(WalkingIterator.java:157)

              at org.apache.xpath.axes.NodeSequence.setRoot(NodeSequence.java:265)

              at org.apache.xpath.axes.LocPathIterator.execute(LocPathIterator.java:212)

              at org.apache.xpath.Expression.execute(Expression.java:155)

              at org.apache.xpath.operations.Equals.bool(Equals.java:65)

              at org.apache.xpath.XPath.bool(XPath.java:412)

              ... 61 more