mule

Possible bug with Mule AMQP transport 3.6.2 community

别说谁变了你拦得住时间么 提交于 2020-01-04 05:11:48
问题 I've been tracking down some strange behavior and I've finally managed to isolate it, and I believe that it is a bug. To reproduce the behaviour I have created 4 test flows (in 4 different mule files): <flow name="testhttpFlow"> <http:listener config-ref="HTTP_Listener_AMIAB" path="/testsend" allowedMethods="GET, POST" doc:name="HTTP"/> <amqp:outbound-endpoint exchangeName="AMQP.DEFAULT.EXCHANGE" routingKey="masterMeep" exchangeType="direct" responseTimeout="10000" exchange-pattern="request

Byte Buddy 1.9.x throws `java.lang.IllegalStateException: Cannot resolve type description for java.lang.String` errors. Is it a known issue?

有些话、适合烂在心里 提交于 2020-01-03 05:31:05
问题 I am seeing Cannot resolve type description errors when trying to load classes instrumented using Byte Buddy v1.9.11 within Mule 4 (JDK 1.8). Is there a known issue with Byte Buddy, or a particular combination of isolated classloader Mule 4 is using with Byte Buddy instrumented classes? Any suggestions are appreciated. I am using Elastic Java APM agent to instrument Mule 4 with its over-complicated classloader isolation mechanism that seems to interfere with Byte Buddy v1.9.11 used by the APM

Mule: How can project configs cause such misleading SAX errors?

爷,独闯天下 提交于 2020-01-03 05:29:20
问题 I've fixed the problem below, but since I've hit this more than once and wasted time on it, I'd like to better understand the chain of events that cause the misleading error. Scenario: Mule throws a giant SAX exception parsing your XML, indicating unexpected content But the XML is fine, it works OK in another project If you add dependencies etc, eventually this project will accept the XML as well The *flavor" of the error is: (full stack below) org.xml.sax.SAXParseException: cvc-complex-type

how to add a node in a xml payload in mule

我们两清 提交于 2020-01-03 04:47:08
问题 I want to add a node in my xml payload in mule. Can someone show me how to do it. Input xml -- <Location> <cde> Hello </cde> </Location> I want to append a node after The result xml shud be like this — <Location> <id> 1234 </id> <cde> Hello </cde> </Location> I tried <expression-component><![CDATA[ myNode = message.payload.rootElement.addElement(’ID’); myNode.text = '1234'; message.payload.rootElement.elements().add(1, myNode.detach()); ]]></expression-component> also <enricher source="#

Mule-ESB: Mule filter based on HTTP Status

流过昼夜 提交于 2020-01-03 04:26:05
问题 How do I use a filter other than a choice filter to call a subflow based on the http status? <flow> <http:outbound-endpoint exhange-pattern="request-response> if http.status!=201 <flow-ref="subflow-to-invoke"> </flow> 回答1: Check this post Mule-esb: Process Jersey Response based on Status code using Choice Router? Here is snippet from the above link, that answers your question. <flow> <http:outbound-endpoint address="${host}" exchange-pattern="request-response"/> <choice> <when expression="#

Running Mule Standalone vs Tomcat in Production

只愿长相守 提交于 2020-01-02 23:16:14
问题 There are many ways of deploying Mule ESB into a production environment. According to the documentation, it appears that running Mule as a standalone service is the recommended way of doing so. Are there any reasons for NOT running Mule standalone in production? I'm sure its stable, but how does it compare to Tomcat as far as performance, reliability, and resource utilization go? Should I still consider running it within Tomcat for any reason? 回答1: Using Tomcat, or any other web container,

Consuming .NET ASMX Web Service from mule esb throws CXF Exception: 401 Unauthorized

陌路散爱 提交于 2020-01-02 08:18:51
问题 I have a .NET ASMX web service in a different server and I have installed the mule standalone CE 3.4 in another server. I have a very simple flow which needs to call this .NET web service and pass two string parameters. <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns:cxf="http://www.mulesoft.org/schema/mule/cxf" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring=

How to throw Soap Fault manually in mule

旧时模样 提交于 2020-01-02 07:27:49
问题 I'm face with a situation where we cannot use schema to validate incoming request (basically schema is there but it accepts any String in request, wsdl designers have their own reasons to do that to accept request from different sources and flexibility). But when the request is received, I validate that the child element of request wrapper is what we expect (using XPath for that). Now if the child element is not what expected, I'd like to throw Soap Fault with Client code and may be include

How to get cursor from Oracle using Groovy?

可紊 提交于 2020-01-02 00:59:08
问题 I'm using a Groovy script in Mule ESB to get output parameters from Oracle stored procedure (including cursor) and getting an exception. Minimal example: import groovy.sql.Sql import oracle.jdbc.pool.OracleDataSource import oracle.jdbc.driver.OracleTypes def ds = new OracleDataSource() // setting data source parameters here def sql = new Sql(ds) def data = [] sql.call("""declare result_table sys_refcursor; begin open result_table for select 1 as a from dual; insert into CURSOR_TEST (ID)

How to Check null condition in Data weaver : Mule

喜你入骨 提交于 2020-01-01 12:09:30
问题 Here is my xml, in that first I need to check 'RecordsEntries' should not be 'null', then RecordEntry shouldn't be null followed by mapping code <?xml version="1.0" encoding="UTF-8"?> <Records> <storenumber /> <calculated>false</calculated> <subTotal>12</subTotal> <RecordsEntries> <RecordEntry> <deliverycharge>30.0</deliverycharge> <entryNumber>8</entryNumber> <Value>true</Value> </RecordEntry> <RecordEntry> <deliverycharge>20.0</deliverycharge> <entryNumber>7</entryNumber> <Value>false<