cancel
Showing results for 
Search instead for 
Did you mean: 

JMS sender content conversion problem: Context is not allowed in prolog.

Former Member
0 Kudos

Hello,

My scenario : JMS sender(MQ) --> SAP PI --> SAP ECC.

Problem: Data is sent via Websphere MQ series(JMS provider)

in text format: "SA010V    D Q....." ( as single string 500).

    I am using JMS Message transformationBean to convert the data. Below is my confirmation:

    Processing Sequence for conversion:

    SAP XI JMS Adapter/ConvertJMSMessageToBinary    convert_JMS2Bin

    SAP XI JMS Adapter/ConvertBinaryToXMBMessage    convert_Bin2XI

    AF_Modules/MessageTransformBean                           Plain2XML

    CallSapAdapter                                                              call_AF_MS

    Module Configuration:

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

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

    xml.conversionType            SimplePlain2XML

    xml.documentName               ...          

    xml.documentNamespace     ...

    xml.fieldFixedLengths          ...

    xml.fieldNames                    ...

    xml.lastFieldsOptional          ...

    xml.processFieldNames    from Configuration

    xml.structureTitle               ...

  

Do I need   Character Set ID(CCSID) for non-ASCIINames?

 

Thanks

Manfred

Accepted Solutions (0)

Answers (3)

Answers (3)

naveen_chichili
Active Contributor
0 Kudos

Dear Manfred,

Did you maintain the correct CCSID?

You can set the character set ID in JMS channel configuration-

http://help.sap.com/saphelp_nw70/helpdata/EN/c1/739c4186c2a409e10000000a155106/content.htm

Refer ques-6 in SAP note: 1086303

Also refer the note- 1346110

Thanks and Regards,

Naveen

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Mostly this error occurs if the xml syntax is not valid.. Please check in the first line of payload if  any weird characters appears  before xml start tag.   <?xml  version -"1.0" . 

iaki_vila
Active Contributor
0 Kudos

Hi Manfred,

Have you checked Shabarish Vijayakumar blog ?

Regards.