cancel
Showing results for 
Search instead for 
Did you mean: 

JMS sender adapter content conversion error

Former Member
0 Kudos

Hi,

Kindly find the error report from MONI.. and have followed this document for sender JMS content configuration

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-adapters/how...

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

- <!-- Request Message Mapping

-->

- <SAP:Error SOAP:mustUnderstand="" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

<SAP:Category>Application</SAP:Category>

<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>

<SAP:P1>com/sap/xi/tf/_MM_NFEIN_</SAP:P1>

<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>

<SAP:P3>Content is not allowed in prolog.</SAP:P3>

<SAP:P4 />

<SAP:AdditionalText />

<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_NFEIN_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Content is not allowed in prolog.</SAP:Stack>

<SAP:Retry>M</SAP:Retry>

</SAP:Error>

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Check the inbound payload in MONI. It seems the FCC has not converted the data in proper xml format and that's why you are getting the error.

Former Member
0 Kudos

hi folks i have resolved that issue it was mapping change...

Now i'm facing another problem .. I m gettin only header record but i don see me items...

my structure is like this field fixed length

HEADER ( 1 )

OrderDetail(Min - 1 and Max - Unbounded)

Trailer(Min - 1 and Max - Unbounded)

configuration of my JMS adapter :

Transform.Class :com.sap.aii.messaging.adapter.Conversion

Transform.ContentType :text/xml;charset=utf-8

xml.conversionType :StructPlain2XML

xml.processFieldNames :fromConfiguration

xml.documentName : MyDocument

xml.documentNamespace : http://xi.com/test

xml.recordsetStructure : Header,1,OrderDetail,,Trailer,

xml.recordsetName : Dataset

xml.Header.keyFieldName :abc

xml.Header.keyFieldValue :x1

XML xml.keyFieldType :CaseSensitiveString

xml.Header.fieldFixedLengths :1,2,3..

xml.Header.fieldNames :abc,cde,fgh...

Similarly for order and trailer

Kindly help in this regard.. i was not able to find in search

rajasekhar_reddy14
Active Contributor
0 Kudos

Have you looked in this wiki??

http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter

Regards,

Raj

Former Member
0 Kudos

Correct the below property as shown below, rest looks ok..

xml.documentName  : <use the name of your message type here>

Former Member
0 Kudos

Yep I have seen this .. and done accordingly ...

@Sarvesh I have used my message type and namespace...Its succesful in moni with only header details..

I do not get the Orderdetails nor Trailer

Edited by: Robin on Sep 7, 2010 3:21 PM

Former Member
0 Kudos

If header is working then OrderDetail and trailer must work. There will be some small configuration error in FCC. Try to look carefully or send the rest of the FCC configuration of Order & Trailer.

former_member200962
Active Contributor
0 Kudos
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code> 
<SAP:P1>com/sap/xi/tf/_MM_NFEIN_</SAP:P1> 
<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_NFEIN_; 
com.sap.aii.utilxi.misc.api.BaseRuntimeException:Content is not allowed in prolog.</SAP:Stack>

It looks more like a mapping issue.....are you sure that your mapping is able to convert the source payload properly in the target format...can you test successfully in IR/ ESR --> Message Mapping --> Test Tab?

Since you are using FCC for Sender, what you have to ensure that the Inbound message (SXMB_MONI...first step) is displaying the XML message in required format. If this is not correct, then your mapping will fail

Regards,

Abhishek.

stefan_grube
Active Contributor
0 Kudos

According to the error message, the FCC was not performed.

So check your settings again, especially the correct order of adapter modules.