title: Split and route large XML with namespace using WSO2 ESB and smooks
body: <p>I need to process an XML file which has a namespace declaration on its root element and containing +133K sub elements, its size is around 500MB; to achieve this i'm using WSO2 ESB 5 and smooks mediator.</p>
  
  <p>Basically what i'm looking for is to split the input file into little chunks with a predefined structure and send each of them to a queue for later processing.</p>
  
  <p>I tried first to do an XSLT transformation first to remove the namespace from the input file but i got an OutOfMemory error like this:</p>
  
  <pre><code>TID: [-1234] [] [2017-03-02 03:04:43,900] ERROR {org.apache.axis2.transport.base.threads.NativeWorkerPool} -  Uncaught exception {org.apache.axis2.transport.base.threads.NativeWorkerPool}
  java.lang.OutOfMemoryError: GC overhead limit exceeded
      at org.apache.axiom.om.impl.llom.factory.OMLinkedListImplFactory.createOMText(OMLinkedListImplFactory.java:192)
      at org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:294)
      at org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:250)
      at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:252)
      at org.apache.axiom.om.impl.llom.OMSerializableImpl.build(OMSerializableImpl.java:78)
      at org.apache.axiom.om.impl.llom.OMElementImpl.build(OMElementImpl.java:722)
      at org.apache.axiom.om.impl.llom.OMElementImpl.detach(OMElementImpl.java:700)
      at org.apache.axiom.om.impl.llom.OMNodeImpl.setParent(OMNodeImpl.java:105)
      at org.apache.axiom.om.impl.llom.OMNodeImpl.insertSiblingAfter(OMNodeImpl.java:203)
      at org.apache.synapse.mediators.transform.XSLTMediator.performXSLT(XSLTMediator.java:366)
      at org.apache.synapse.mediators.transform.XSLTMediator.mediate(XSLTMediator.java:202)
      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
      at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:210)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
      at org.apache.axis2.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:328)
      at org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:824)
      at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:472)
      at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:188)
      at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:134)
      at org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>I did not understand why this is happening because my virtual machine is configured to work with  <strong>-Xms4096m -Xmx6144m</strong> </p>
  
  <p>Based on the previous error i decided to implement kind of streaming solution using smooks, then i defined a vfs proxy service to poll a folder and give the file to smook mediator but i keep getting an error that seems to be related to the namespace definition on the root element of the input file and i mention this because whenever i edit the input file and get rid of the namespace definition what i have defined and deployed on WSO2 ESB works perfectly.  The point here is i'm receiving the large file from a backend black box system and i should deal with the namespace stuff.</p>
  
  <p>The following are the definitions i have on my ESB:</p>
  
  <p><strong>Proxy Service</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;proxy xmlns="http://ws.apache.org/ns/synapse"
         name="Tryzens_ProductProxy"
         startOnLoad="true"
         statistics="disable"
         trace="disable"
         transports="vfs"&gt;
     &lt;target&gt;
        &lt;inSequence&gt;
           &lt;log level="custom"&gt;
              &lt;property name="Tryzens_ProductProxy__tracing" value="before smooks"/&gt;
           &lt;/log&gt;
           &lt;property name="DISABLE_SMOOKS_RESULT_PAYLOAD" value="true"/&gt;
           &lt;smooks config-key="ProductSplitJMS_Smook"&gt;
              &lt;input type="xml"/&gt;
              &lt;output type="xml"/&gt;
           &lt;/smooks&gt;
           &lt;log level="custom"&gt;
              &lt;property name="Tryzens_ProductProxy__tracing" value="after smooks"/&gt;
           &lt;/log&gt;
        &lt;/inSequence&gt;
     &lt;/target&gt;
     &lt;parameter name="transport.vfs.Streaming"&gt;true&lt;/parameter&gt;
     &lt;parameter name="transport.PollInterval"&gt;15&lt;/parameter&gt;
     &lt;parameter name="transport.vfs.ActionAfterProcess"&gt;MOVE&lt;/parameter&gt;
     &lt;parameter name="transport.vfs.FileURI"&gt;vfs:file:///home/jairof/wso2/00_test/working/tryzens/smook_product/&lt;/parameter&gt;
     &lt;parameter name="transport.vfs.MoveAfterProcess"&gt;vfs:file:///home/jairof/wso2/00_test/working/tryzens/output/&lt;/parameter&gt;
     &lt;parameter name="transport.vfs.MoveAfterFailure"&gt;vfs:file:///home/jairof/wso2/00_test/working/tryzens/fails/&lt;/parameter&gt;
     &lt;parameter name="transport.vfs.FileNamePattern"&gt;.*.xml&lt;/parameter&gt;
     &lt;parameter name="transport.vfs.ContentType"&gt;application/xml&lt;/parameter&gt;
     &lt;parameter name="transport.vfs.ActionAfterFailure"&gt;MOVE&lt;/parameter&gt;
     &lt;description/&gt;
  &lt;/proxy&gt;
  </code></pre>
  
  <p><strong>Smooks configuration</strong></p>
  
  <pre><code>&lt;smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd" xmlns:xsl="http://www.milyn.org/xsd/smooks/xsl-1.1.xsd" xmlns:core="http://www.milyn.org/xsd/smooks/smooks-core-1.3.xsd" xmlns:jms="http://www.milyn.org/xsd/smooks/jms-routing-1.2.xsd"&gt;
        &lt;params&gt;
           &lt;param name="stream.filter.type"&gt;SAX&lt;/param&gt;
           &lt;param name="default.serialization.on"&gt;false&lt;/param&gt;
        &lt;/params&gt;
        &lt;resource-config selector="product"&gt;
           &lt;resource&gt;org.milyn.delivery.DomModelCreator&lt;/resource&gt;
        &lt;/resource-config&gt;
        &lt;jms:router routeOnElement="product" beanId="productItem_xml" destination="dynamicQueues/TestFL"&gt;
           &lt;jms:connection factory="QueueConnectionFactory"/&gt;
           &lt;jms:jndi contextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" providerUrl="tcp://localhost:61616"/&gt;
           &lt;jms:highWaterMark mark="-1"/&gt;
        &lt;/jms:router&gt;
        &lt;ftl:freemarker applyOnElement="product"&gt;
           &lt;ftl:template&gt;/repository/resources/smooks/product.ftl&lt;/ftl:template&gt;
           &lt;ftl:use&gt;
              &lt;ftl:bindTo id="productItem_xml"/&gt;
           &lt;/ftl:use&gt;
        &lt;/ftl:freemarker&gt;
  &lt;/smooks-resource-list&gt;
  </code></pre>
  
  <p><strong>Smooks template</strong></p>
  
  <p>This template is only for testing purposes, the real one corresponds to the complete structure of the product element, but to reproduce the error situation it is enough:</p>
  
  <pre><code>&lt;#ftl ns_prefixes={"ns1": "http://www.demandware.com/xml/impex/catalog/2006-10-31"}&gt;
  &lt;product id='${.vars["product"]["@product-id"]}'&gt;
      &lt;ean&gt;${product.ean}&lt;/ean&gt;        
  &lt;/product&gt;
  </code></pre>
  
  <p><strong>Sample input file</strong></p>
  
  <p>Note that the actual file has more than 133K products, in this sample I cut most part of the file and left only two products</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;catalog xmlns="http://www.demandware.com/xml/impex/catalog/2006-10-31" catalog-id="tml-catalog-en"&gt;
      &lt;header&gt;
          &lt;image-settings&gt;
              &lt;internal-location base-path="/images"/&gt;
              &lt;view-types&gt;
                  &lt;view-type&gt;original&lt;/view-type&gt;
                  &lt;view-type&gt;portrait&lt;/view-type&gt;
                  &lt;view-type&gt;badge_GBP&lt;/view-type&gt;
                  &lt;view-type&gt;badge_EUR&lt;/view-type&gt;
                  &lt;view-type&gt;badge_USD&lt;/view-type&gt;
                  &lt;view-type&gt;badge_AUD&lt;/view-type&gt;
                  &lt;view-type&gt;badge_CZH&lt;/view-type&gt;
                  &lt;view-type&gt;ctlimage&lt;/view-type&gt;
                  &lt;view-type&gt;badge_FRA&lt;/view-type&gt;
                  &lt;view-type&gt;badge_GER&lt;/view-type&gt;
                  &lt;view-type&gt;landscape&lt;/view-type&gt;
              &lt;/view-types&gt;
              &lt;alt-pattern&gt;${productname}, ${variationvalue}, ${viewtype}&lt;/alt-pattern&gt;
              &lt;title-pattern&gt;${productname}, ${variationvalue}&lt;/title-pattern&gt;
          &lt;/image-settings&gt;
      &lt;/header&gt;
  
      &lt;category category-id="MensShoes"&gt;
          &lt;display-name xml:lang="de-DE"&gt;Schuhe&lt;/display-name&gt;
          &lt;display-name xml:lang="x-default"&gt;Shoes&lt;/display-name&gt;
          &lt;display-name xml:lang="fr-FR"&gt;Chaussures&lt;/display-name&gt;
          &lt;online-flag&gt;true&lt;/online-flag&gt;
          &lt;parent&gt;MENSWEAR&lt;/parent&gt;
          &lt;position&gt;12.0&lt;/position&gt;
          &lt;image&gt;images/slot/landing/men_menlanding_H1_GBP.jpg&lt;/image&gt;
          &lt;template/&gt;
          &lt;page-attributes/&gt;
          &lt;custom-attributes&gt;
              &lt;custom-attribute attribute-id="categoryRecommendationsEnable"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="enableCompare"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="enableGridItemButtonStrip"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="enableGridItemMobileButtonStrip"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="enableUserJourney"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="enableWishlist"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="fitsme_enabled"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="rrGenere"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="rsCategoryEnabled"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="shopAllButton"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="showInMenu"&gt;true&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="showInMobileMenu"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="show_alternate_image_on_plp"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="slotBannerImage"&gt;images/slot/landing/men_menlanding_H1_GBP.jpg&lt;/custom-attribute&gt;
          &lt;/custom-attributes&gt;
      &lt;/category&gt;
  
      &lt;category category-id="P50 SUIT"&gt;
          &lt;display-name xml:lang="de-DE"&gt;Hosen&lt;/display-name&gt;
          &lt;display-name xml:lang="x-default"&gt;Trousers&lt;/display-name&gt;
          &lt;display-name xml:lang="fr-FR"&gt;Pantalons&lt;/display-name&gt;
          &lt;online-flag&gt;true&lt;/online-flag&gt;
          &lt;parent&gt;WomensTailoring&lt;/parent&gt;
          &lt;position&gt;0.0&lt;/position&gt;
          &lt;template/&gt;
          &lt;page-attributes/&gt;
      &lt;/category&gt;
  
      &lt;product product-id="0"&gt;
          &lt;ean/&gt;
          &lt;upc/&gt;
          &lt;unit/&gt;
          &lt;min-order-quantity&gt;1&lt;/min-order-quantity&gt;
          &lt;step-quantity&gt;1&lt;/step-quantity&gt;
          &lt;store-force-price-flag&gt;false&lt;/store-force-price-flag&gt;
          &lt;store-non-inventory-flag&gt;false&lt;/store-non-inventory-flag&gt;
          &lt;store-non-revenue-flag&gt;false&lt;/store-non-revenue-flag&gt;
          &lt;store-non-discountable-flag&gt;false&lt;/store-non-discountable-flag&gt;
          &lt;online-flag&gt;false&lt;/online-flag&gt;
          &lt;available-flag&gt;true&lt;/available-flag&gt;
          &lt;searchable-flag&gt;true&lt;/searchable-flag&gt;
          &lt;images&gt;
              &lt;image-group view-type="badge_EUR"&gt;
                  &lt;image path="badge/blank.png"/&gt;
              &lt;/image-group&gt;
              &lt;image-group view-type="badge_GBP"&gt;
                  &lt;image path="badge/blank.png"/&gt;
              &lt;/image-group&gt;
              &lt;image-group view-type="badge_GER"&gt;
                  &lt;image path="badge/blank.png"/&gt;
              &lt;/image-group&gt;
              &lt;image-group view-type="badge_USD"&gt;
                  &lt;image path="badge/blank.png"/&gt;
              &lt;/image-group&gt;
          &lt;/images&gt;
          &lt;page-attributes/&gt;
          &lt;pinterest-enabled-flag&gt;false&lt;/pinterest-enabled-flag&gt;
          &lt;facebook-enabled-flag&gt;false&lt;/facebook-enabled-flag&gt;
          &lt;store-attributes&gt;
              &lt;force-price-flag&gt;false&lt;/force-price-flag&gt;
              &lt;non-inventory-flag&gt;false&lt;/non-inventory-flag&gt;
              &lt;non-revenue-flag&gt;false&lt;/non-revenue-flag&gt;
              &lt;non-discountable-flag&gt;false&lt;/non-discountable-flag&gt;
          &lt;/store-attributes&gt;
      &lt;/product&gt;
  
      &lt;product product-id="12024"&gt;
          &lt;ean/&gt;
          &lt;upc/&gt;
          &lt;unit/&gt;
          &lt;min-order-quantity&gt;1&lt;/min-order-quantity&gt;
          &lt;step-quantity&gt;1&lt;/step-quantity&gt;
          &lt;store-force-price-flag&gt;false&lt;/store-force-price-flag&gt;
          &lt;store-non-inventory-flag&gt;false&lt;/store-non-inventory-flag&gt;
          &lt;store-non-revenue-flag&gt;false&lt;/store-non-revenue-flag&gt;
          &lt;store-non-discountable-flag&gt;false&lt;/store-non-discountable-flag&gt;
          &lt;online-flag&gt;false&lt;/online-flag&gt;
          &lt;available-flag&gt;true&lt;/available-flag&gt;
          &lt;searchable-flag&gt;true&lt;/searchable-flag&gt;
          &lt;images&gt;
              &lt;image-group view-type="original"&gt;
                  &lt;image path="original/12024_original_original.jpg"/&gt;
              &lt;/image-group&gt;
          &lt;/images&gt;
          &lt;brand&gt;J FRANCOMB&lt;/brand&gt;
          &lt;page-attributes/&gt;
          &lt;custom-attributes&gt;
              &lt;custom-attribute attribute-id="allocGroup"&gt;X&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="colour"&gt;
                  &lt;value&gt;3PNK-PINK&lt;/value&gt;
              &lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="cuffType"&gt;
                  &lt;value&gt;SINGLE CUFF&lt;/value&gt;
              &lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="enable_pdp_asset_footer_layout"&gt;false&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="fabric"&gt;
                  &lt;value&gt;LEWIN 100 PD&lt;/value&gt;
              &lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="fit"&gt;SEMI FIT&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="gender"&gt;
                  &lt;value&gt;M&lt;/value&gt;
              &lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="look"&gt;PTRN447&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="pattern"&gt;
                  &lt;value&gt;PATTERN&lt;/value&gt;
              &lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="productIDCIMS"&gt;12024&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="retailTypeCIMS"&gt;M FORMAL&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="seasonCIMS"&gt;307B&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="styleName"&gt;MILSC PATTERN DOOM AND BLOOM&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="styleNameCIMS"&gt;MILSC PATTERN DOOM AND BLOOM&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="styleNumberCIMS"&gt;MS17&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="typeDesc"&gt;MS SHIRTS&lt;/custom-attribute&gt;
              &lt;custom-attribute attribute-id="weight"&gt;0.3&lt;/custom-attribute&gt;
          &lt;/custom-attributes&gt;
          &lt;options&gt;
              &lt;shared-option option-id="sleeveLengthAlteration"/&gt;
              &lt;shared-option option-id="giftBox"/&gt;
          &lt;/options&gt;
          &lt;variations&gt;
              &lt;attributes&gt;
                  &lt;shared-variation-attribute attribute-id="collarSize" variation-attribute-id="collarSize"/&gt;
                  &lt;shared-variation-attribute attribute-id="sleeveLength" variation-attribute-id="sleeveLength"/&gt;
              &lt;/attributes&gt;
          &lt;/variations&gt;
          &lt;classification-category&gt;S17 MILAN&lt;/classification-category&gt;
          &lt;pinterest-enabled-flag&gt;false&lt;/pinterest-enabled-flag&gt;
          &lt;facebook-enabled-flag&gt;false&lt;/facebook-enabled-flag&gt;
          &lt;store-attributes&gt;
              &lt;force-price-flag&gt;false&lt;/force-price-flag&gt;
              &lt;non-inventory-flag&gt;false&lt;/non-inventory-flag&gt;
              &lt;non-revenue-flag&gt;false&lt;/non-revenue-flag&gt;
              &lt;non-discountable-flag&gt;false&lt;/non-discountable-flag&gt;
          &lt;/store-attributes&gt;
      &lt;/product&gt;
  
      &lt;category-assignment category-id="T43 HERITAGE" product-id="505158991125"&gt;
          &lt;primary-flag&gt;true&lt;/primary-flag&gt;
      &lt;/category-assignment&gt;
      &lt;category-assignment category-id="U30 BOXERS" product-id="505158774834"/&gt;
      &lt;recommendation source-id="58462" source-type="product" target-id="505158886294" type="4"/&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p><strong>Error in wso2carbon.log file</strong></p>
  
  <pre><code>TID: [-1234] [] [2017-03-02 12:15:27,793]  INFO {org.apache.synapse.mediators.builtin.LogMediator} -  Tryzens_ProductProxy__tracing = before smooks {org.apache.synapse.mediators.builtin.LogMediator}
  TID: [-1234] [] [2017-03-02 12:15:28,376] ERROR {freemarker.runtime} -   {freemarker.runtime}
  
  Error on line 3, column 12 in repository/resources/smooks/product.ftl
  Expecting a string, date or number here, Expression product.ean is instead a freemarker.ext.dom.NodeListModel
  The problematic instruction:
  ----------
  ==&gt; ${product.ean} [on line 3, column 10 in repository/resources/smooks/product.ftl]
  ----------
  
  Java backtrace for programmers:
  ----------
  freemarker.core.NonStringException: Error on line 3, column 12 in repository/resources/smooks/product.ftl
  Expecting a string, date or number here, Expression product.ean is instead a freemarker.ext.dom.NodeListModel
      at freemarker.core.Expression.getStringValue(Expression.java:126)
      at freemarker.core.Expression.getStringValue(Expression.java:93)
      at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
      at freemarker.core.Environment.visit(Environment.java:209)
      at freemarker.core.MixedContent.accept(MixedContent.java:92)
      at freemarker.core.Environment.visit(Environment.java:209)
      at freemarker.core.Environment.process(Environment.java:189)
      at freemarker.template.Template.process(Template.java:237)
      at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.applyTemplate(FreeMarkerTemplateProcessor.java:358)
      at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.applyTemplate(FreeMarkerTemplateProcessor.java:346)
      at org.milyn.templating.freemarker.FreeMarkerTemplateProcessor.visitAfter(FreeMarkerTemplateProcessor.java:333)
      at org.milyn.delivery.sax.SAXHandler.visitAfter(SAXHandler.java:389)
      at org.milyn.delivery.sax.SAXHandler.endElement(SAXHandler.java:204)
      at org.milyn.delivery.SmooksContentHandler.endElement(SmooksContentHandler.java:96)
      at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      at org.milyn.delivery.sax.SAXParser.parse(SAXParser.java:76)
      at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:86)
      at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:64)
      at org.milyn.Smooks._filter(Smooks.java:526)
      at org.milyn.Smooks.filterSource(Smooks.java:482)
      at org.wso2.carbon.mediator.transform.SmooksMediator.mediate(SmooksMediator.java:146)
      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:97)
      at org.apache.synapse.mediators.AbstractListMediator.mediate(AbstractListMediator.java:59)
      at org.apache.synapse.mediators.base.SequenceMediator.mediate(SequenceMediator.java:158)
      at org.apache.synapse.core.axis2.ProxyServiceMessageReceiver.receive(ProxyServiceMessageReceiver.java:210)
      at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:180)
      at org.apache.axis2.transport.base.AbstractTransportListener.handleIncomingMessage(AbstractTransportListener.java:328)
      at org.apache.synapse.transport.vfs.VFSTransportListener.processFile(VFSTransportListener.java:824)
      at org.apache.synapse.transport.vfs.VFSTransportListener.scanFileOrDirectory(VFSTransportListener.java:472)
      at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:188)
      at org.apache.synapse.transport.vfs.VFSTransportListener.poll(VFSTransportListener.java:134)
      at org.apache.axis2.transport.base.AbstractPollingTransportListener$1$1.run(AbstractPollingTransportListener.java:67)
      at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      at java.lang.Thread.run(Thread.java:745)
  </code></pre>
  
  <p>Please help, i would appreciate any comments to solve this issue
  Thanks in advance</p>