Skip to Content
0
Former Member
Mar 12, 2010 at 11:42 AM

Premature end of file Problem in Mail-Adapter by using StrictXml2PlainBean

13 Views

Hello Experts,

I tried a simple File to Mail scenario with the following test message and received the expected attachment:

<?xml version="1.0" encoding="UTF-8"?>

lynx.de:pi:test:bw_extractor">

<elemente>

<Kundennummer>4711</Kundennummer>

<RechnungsNr>0001</RechnungsNr>

<Umsatz>234,67</Umsatz>

<Anzahl>34</Anzahl>

<Versand>12,00</Versand>

<PosNr>0001</PosNr>

</elemente>

<elemente>

<Kundennummer>4711</Kundennummer>

<RechnungsNr>0002</RechnungsNr>

<Umsatz>1900,25</Umsatz>

<Anzahl>100</Anzahl>

<Versand>50</Versand>

<PosNr>0002</PosNr>

</elemente>

</ns0:MT_TEST_FlatMessage>

Everything is fine. Now I want to transform the message in a CSV-Attachment and joined the Module

1 AF_Modules/StrictXml2PlainBean Local Enterprise Bean 0

as first entry in the sequence with the following configuration:

Key Parameter Value

0 addHeaderLine fromXML

0 elemente.endSeparator \r\n

0 elemente.fieldSeparator ;

0 singleRecordType elemente

But now I the adapter gets the error: Premature end of file

What did I wrong?