mule-studio

Unresolveable error occured in org.mule.tools.maven

老子叫甜甜 提交于 2020-02-06 10:02:07
问题 I am getting the following Error in Maven Project build error: Unresolveable build extension: Plugin org.mule.tools.maven:mule-app-maven-plugin:1.1 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar: 1.5.0 at specified path C:\Program Files\Java\jre7/../lib/tools.jar <?xml version="1.0" encoding="UTF-8" standalone="no"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:/

Facing error in Batch Processing mule esb

ぃ、小莉子 提交于 2020-01-24 12:53:31
问题 I am facing problem in batch processing mule esb. If I set any payload in process record face and try to get that payload in oncomplete face then not getting that payload. same problem with variable and property. If I set any property in process record phase and try to get in on complete phase then always get null value. how to get those value in oncomplete phase? below is flow.. <batch:job name="TestBatch" max-failed-records="-1"> <batch:input> <component class="com.test.RecordTest" doc:name

Mule: Maven excluding certain mule jars while creating mule runnable jar

时间秒杀一切 提交于 2020-01-16 20:06:32
问题 Need to create a runnable jar of a mule service using maven-assembly plugin. Its creating a zip file but excluding certain mule jars. When trying to run it from console getting classnotfound exception for mule-core jar. How can i include these jars as well as create a jar rather than zip. Message on console while packaging using maven clean package command from anypoint studio maven plugin is [INFO] Using exclusions definition for Mule ESB Server version 3.6.0 [INFO] Using as WTP server :

Mule: Maven excluding certain mule jars while creating mule runnable jar

孤街醉人 提交于 2020-01-16 20:05:14
问题 Need to create a runnable jar of a mule service using maven-assembly plugin. Its creating a zip file but excluding certain mule jars. When trying to run it from console getting classnotfound exception for mule-core jar. How can i include these jars as well as create a jar rather than zip. Message on console while packaging using maven clean package command from anypoint studio maven plugin is [INFO] Using exclusions definition for Mule ESB Server version 3.6.0 [INFO] Using as WTP server :

Why is the mule json to xml transformer only picking up the first element?

吃可爱长大的小学妹 提交于 2020-01-15 06:10:31
问题 I am attempting to use the json-to-xml-transformer to transform a json message to xml but have not been able to find documentation on its use. I don't need any transformation of the data, simply turning the json properties into xml tags. When I attempt to use the transformer, all I get out is the first element from the json. Input JSON: { "site":"mysite", "erpCustno":"123", "shipToState":"PA", "shipToZip":"16684", "lineInfo": [ { "lineNumber": "10", "product": "MAT203" } ] } XML Output: <?xml

mule expression transformer exception

爷,独闯天下 提交于 2020-01-07 08:31:09
问题 I have a payload like {"jcr:createdBy":"admin","jcr:content":{"sling:resourceType":"contentpage","addressdetails":{"state":"vic"}}} I want to change the value of state. I have tried the below, <expression-transformer expression="#[message.payload.jcr:content.addressdetails.state = 'NSW';message.payload]" doc:name="Expression" /> but this throws an exception, invalid expression. I believe its because of : in jcr:createdBy. How should I handle this? 回答1: Try <json:json-to-object-transformer

How to Compress/Decompress payload in Mule and get back original payload

大城市里の小女人 提交于 2020-01-06 18:57:32
问题 I was doing some sort of POC with Mule Gzip compressor and de-compressor.. My Mule flow is following <flow name="GZipCompress" doc:name="GZipFlow1"> <file:inbound-endpoint path="E:\backup\test" responseTimeout="10000" doc:name="File"> <file:filename-regex-filter pattern="anirban.doc" caseSensitive="false"/> </file:inbound-endpoint> <string-to-byte-array-transformer doc:name="String to Byte Array"/> <gzip-compress-transformer/> <file:outbound-endpoint path="E:\backup\test\ss" responseTimeout=

what should be the return value for transformMessage method in mule

廉价感情. 提交于 2020-01-06 14:35:16
问题 In my mule flow I am reading the message form WMQ using WMQ node and then calling a Java class using Java node for required processing of the message. For the same I have to override the public Object transformMessage(MuleMessage message, String outputEncoding) method. This method is forcing me to return value but I don't require to send any object back. Can someone please help me to understand what I need to return and why we have to return the value. Cheers! 回答1: First thing first, if you

Mule splitter using regex returned no results

吃可爱长大的小学妹 提交于 2020-01-06 08:21:18
问题 I'm trying to split a csv file on lines. For this, I've tried alternatively with the following splitters on my flow: <splitter expression="#[regex('^')]" doc:name="Splitter"/> <splitter expression="#[regex('\n')]" doc:name="Splitter"/> <splitter expression="#[regex('.*')]" doc:name="Splitter"/> However, though the file has many lines, I'm getting the following message on the logs: Splitter returned no results. If this is not expected, please check your split expression 回答1: Finally, I found a

NoSuchMethodError in Tomcat embedded MULE when executing http:set-cookie

依然范特西╮ 提交于 2020-01-05 20:03:22
问题 When running Mule ESB 3.2.1 as embedded server inside Tomcat 7.0.27 (executed with webapp-runner), during execution of a flow with the Http endpoint, while sending response back to caller, an Exception is raised: java.lang.NoSuchMethodError: org.apache.tomcat.util.http.ServerCookie.appendCookieValue(Ljava/lang/StringBuffer;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;IZ)V Exception Below: org.mule.api.MuleRuntimeException: Connector that caused