cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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"?>

<ns0:MT_TEST_FlatMessage xmlns:ns0="urn: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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Dirk,

Did you resolve this issue? I'm getting exactly the same.

Thanks.

Carlos

Former Member
0 Kudos

Hi Dirk/carlos,

Did either of you found a solution to this problem?

I'm getting a similar error.

Regards,

Priya.

Shabarish_Nair
Active Contributor
0 Kudos

>

> 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?

try

0 elemente.endSeparator 'nl'

Former Member
0 Kudos

Thank you for the idea, but the problem is the same as before:

Delivering the message to the application using connection Mail_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: org.xml.sax.SAXParseException: Premature end of file..

Edited by: Dirk Koch on Mar 12, 2010 1:09 PM