读取大型xml文件时,WSO2 ESB中的StackOverFlow错误

时间:2015-09-01 06:34:01

标签: wso2 esb

我在向WSO2中配置的休息服务发送XML请求时遇到问题。但我可以在不使用WSO2的情况下将相同的XML文件发送到我的休息服务。 一旦我尝试使用WSO2发送XML,我就会收到以下错误。

错误{org.apache.axis2.transport.base.threads.NativeWorkerPool} - 未捕获的异常{org.apache.axis2.transport.base.threads.NativeWorkerPool} java.lang.StackOverflowError的     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEntityReference(XMLDocumentFragmentScannerImpl.java:1844)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3032)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2919)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3059)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2919)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3059)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3059)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2919)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3059)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2919)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3059)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2919)     at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl $ FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3059)

我在WSO2 ESB中使用的源代码如下

<api xmlns="http://ws.apache.org/ns/synapse" name="TESTAPI" context="/rest">
   <resource methods="POST" url-mapping="/createUpdateJRXML">
      <inSequence>
         <log level="custom">
            <property name="createUpdateJRXML" value="Creating JRXML ..">       </property>
     </log>
     <send>
        <endpoint>
           <http method="post" uri-template="http://localhost:8080/DocumentServer-Web/documentservice/createUpdateJRXML"></http>
        </endpoint>
     </send>
  </inSequence>

0 个答案:

没有答案