0
votes

In Mule, I'm trying to change a flat file to XML using Datamapper. I have imported the schema as well. But the output payload for this DataMapper is in some stream of bytes. eg: org.mule.api.processor.LoggerMessageProcessor: [B@14eee304. Then, I created a file outbound endpoint and then the file generated by the process is in a valid xml format. Can anyone suggest how is this happening?

1
Pls show your full Mule config .. - Anirban Sen Chowdhary
<flow name="xmltransformerFlow"> <file:inbound-endpoint path="D:\Inbound" connector-ref="File" pollingFrequency="100000" responseTimeout="10000" doc:name="File"/> <data-mapper:transform config-ref="CSV_To_XML" doc:name="CSV To XML"/> <file:outbound-endpoint path="D:\Outbound" outputPattern=".txt" responseTimeout="10000" doc:name="File"/> </flow> - Yeshwanth Kumar

1 Answers

1
votes

it is the default behaviour of DataMapper to output a byte array whenever it tries to Map an input object to XML. The file outbound endpoint is then able to read this byte array and write it to a file.

What is it that you're after? What you're mentioning is the intended behaviour.