anypoint-studio

Mule application in anypoint studio throws Caused by: java.lang.ClassNotFoundException: com.google.common.cache.CacheLoader error

那年仲夏 提交于 2021-02-08 09:51:59
问题 When i try to run Mule application I get[1], Im not using gauva library as dependency in my pom.pacakging is defined as <packaging>mule-application</packaging> Why I get this error? How can I overcome? Im using anypoint studio version =7.4.1 which uses mule runtime 4.2.2 [1] Initializing app 'admin-api-v1' + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ERROR 2020-02-04 09:47:08,034 [WrapperListener_start_runner] [event: ] org.mule.runtime.module.deployment

DOM to XML transformer logic

风流意气都作罢 提交于 2021-02-08 02:10:29
问题 Can someone please explain to me why a DOM to XML transformer converts the output of a Web Service Consumer to an XML String representation? The output of the Web Service Consumer is a org.mule.module.ws.consumer.NamespaceRestorerXMLStreamReader . According to the official docs: The DomToXml transformer converts DOM objects to XML, the XmlToDom transformer converts XML strings to DOM objects, and the DomToOutputHandler transformer converts from a DOM to an OutputHandler serialization. They

DOM to XML transformer logic

╄→尐↘猪︶ㄣ 提交于 2021-02-08 02:08:18
问题 Can someone please explain to me why a DOM to XML transformer converts the output of a Web Service Consumer to an XML String representation? The output of the Web Service Consumer is a org.mule.module.ws.consumer.NamespaceRestorerXMLStreamReader . According to the official docs: The DomToXml transformer converts DOM objects to XML, the XmlToDom transformer converts XML strings to DOM objects, and the DomToOutputHandler transformer converts from a DOM to an OutputHandler serialization. They

Unable to reference to DWL script files in Mule 4 dataweave from Project Libraries(jar)

假装没事ソ 提交于 2021-01-29 06:43:11
问题 I have recently hosted a mule application in Maven Central Repo. The app contains two java files and a dwl file. The dwl file uses those java files to do some operation. This is the primary app (app1) which I want to reference in another app (app2 )as a pom dependency. The name of the primary is encryption-1.0.5-mule-application.jar . The name of dwl script which it contains is encryption.dwl . The Java files are available in the jar file /company package. Case 1 : If I package this primary

Compare 2 JSON arrays to get matching and un-matching outputs

 ̄綄美尐妖づ 提交于 2021-01-28 13:50:14
问题 I need to compare 2 JSON arrays using Mule 4 dataweave 2.0 to get matching and un-matching outputs. The sample input JSON payload is given below: [ { "CODE": "A11", "NAME": "Alpha", "ID": "C10000" }, { "CODE": "B12", "NAME": "Bravo", "ID": "B20000" }, { "CODE": "C11", "NAME": "Charlie", "ID": "C30000" }, { "CODE": "D12", "NAME": "Delta", "ID": "D40000" }, { "CODE": "E12", "NAME": "Echo", "ID": "E50000" } ] This has to be compared to the below on ID/IDENTITY field. [ { "IDENTITY": "D40000",

How to convert ManagedCursorStreamProvider to JSOn object in mule 4

╄→尐↘猪︶ㄣ 提交于 2020-05-09 05:18:29
问题 How to convert ManagedCursorStreamProvider to Json object in mule. I have written a java method which takes the Json Object as input Request Payload: { a: "one", b : "two"} Invoke static arg0 : payload Java Function called using invoke static public static func(JsonObject json){ } I am getting the following error: Expected arguments are [com.google.gson.JsonObject jsonObject] and invocation was attempted with arguments [org.mule.runtime.core.internal.streaming.bytes

GET call works for POSTMAN/SOAPUI but not at mule 4.1.3

最后都变了- 提交于 2020-03-25 19:39:38
问题 Im getting connection timeout error in Mule(anypoint studion), when invoking a request. I have added dummy url(for testing purpose) in an http request flow. That dummy url is working fine with postman and soaupui. But not from Mule. I get, Message : HTTP GET on resource 'http://xxx:3080/hr/INT053' failed: Connection timed out: no further information. Error type : HTTP:CONNECTIVITY if i invoke http://xxx:3080/hr/INT053 directly from postman/soapui it works. What might be the cause? I have