Mule Standalone 3.8.1 ClassDefNotFoundError when sending an HTTP request stream with a large payload at high concurrency

I am new to MuleESB. I am using Mule Standalone 3.8.1 with configuration to filter HTTP requests using the xpath3 () function . The configuration I used is as follows.

<http:listener-config name="HTTP_Listener_Configuration" host="localhost" port="8081" />
<http:request-config name="HTTP_Request_Configuration" host="example.com" port="8081" basePath="basePath" responseTimeout="120000" />

<custom-transformer name="XML_Transformer" class="org.mule.module.xml.transformer.XmlToOutputHandler"/>

<message-properties-transformer name="Response_Error_Transformer">
  <add-message-property key="http.status" value="500"/>
  <add-message-property key="Content-Type" value="text/xml" />
</message-properties-transformer>

<message-properties-transformer name="Response_Transformer">
  <add-message-property key="Content-Type" value="text/xml" />
</message-properties-transformer>

<set-payload name="Create_Error_Response" value="
  &lt;PurchaseOrder PurchaseOrderNumber=&quot;99503&quot; OrderDate=&quot;1999-10-20&quot;&gt;
    &lt;fault&gt;
      &lt;code&gt;500&lt;/code&gt;
      &lt;message&gt;#[flowVars['errorMessage']]&lt;/message&gt;
    &lt;/fault&gt;
  &lt;/PurchaseOrder&gt;" />

<flow name="Choice_Flow">
  <http:listener config-ref="HTTP_Listener_Configuration" path="productFilter" />
  <choice>
    <when expression="#[xpath3('//Item[1]/ProductName') == 'Laptop']">
      <transformer ref="XML_Transformer"/>
      <http:request config-ref="HTTP_Request_Configuration" path="EchoService" method="POST" />
      <flow-ref name="Response_Transformer" />
    </when>

    <otherwise>
      <flow-ref name="Response_Error_Transformer" />
      <set-variable variableName="errorMessage" value="First item must be a Laptop" />
      <flow-ref name="Create_Error_Response" />
    </otherwise>
  </choice>
</flow>

HTTP- 10 , . , 500 , . XML 2500 . , . , . , mule.log, . . .

Exception: java.lang.NoClassDefFoundError thrown from the UncaughtExceptionHandler in thread "[default].http.listener(6)"

- , ? - ? - ?

+4

Source: https://habr.com/ru/post/1678336/


All Articles