JMS Content Converrsion

Hi,
I am working on a scenario like this.
SAPR/3 --->XI3.0 --->JMS Queue.
I am sending the order information from SAPR/3 to legacy system which will pick up the file from JMS Queue.The legacy system expects the order data as flat file.
I am trying to do content conversion in the JMS adapter using Modules
localejbs/AF_modules/MessageTransformBean
localejbs/SAP XI JMS Adapter/ConvertMessageToBinary
localejbs/SAP XI JMS Adapter/SendBinarytoXIJMSService
and relevant module keys.
What I am trying to do is XML2Plain file format conversion.But I am getting the error
Adapter Framework caught exception: failed to configure the transformation object.
What could be the possible reason for the error message?
If any of the forum members have worked on the similar scenario,please share your knowledge.
Thanks in advance,
S.Banukumar

Hi S.Banukumar
This is a little late (original problem was posted over 6 months ago) ... but better late than never.
Error message1:
Adapter Framework caught exception: com.sap.aii.adapter.xi.ms.XIMessage
Error message2:
Delivering the message to the application using connection AFW failed, due to: com.sap.aii.adapter.xi.ms.XIMessage.
Go to the Modules tab in the receiver JMS communication channel. Make sure that the processing sequence of the modules is correct.
I got the same error messages as you, when this sequence was the wrong way around for a receiver JMS connection.
It should be "convert_XI2Bin" then "exit".
Hope this saves someone some pain ...
Bruno Konieczny

Similar Messages

  • JMS content conversion issue

    Hi ,
    I am facing issue in JMS content conversion
    my file looks like as below...
    field1¤field2¤
    field1¤field2¤
    field1¤field2¤
    field1¤field2¤
    in module i have used this
    AF_Modules/MessageTransformBean   PLAIN2XML
    Transform.Class                com.sap.aii.messaging.adapter.Conversion
    Transform.ContentType     text/xml;charset=utf-8
    xml.conversionType           SimplePlain2XML
    xml.documentName            MT_data  
    xml.documentNamespace  http://xyz.com    
    xml.fieldNames                   field1,field2
    xml.fieldSeparator              ¤
    xml.processFieldNames     fromConfiguration
    xml.structureTitle                records
    but i am getting following error
    Error occurred while processing message: . Detailed error (if any):  com.sap.aii.adapter.jms.api.channel.filter.MessageFilterException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: (4408) Parameter xml.fieldFixedLengths or xml.fieldSeparator is missing (4409) Consistency check: no. of arguments in xml.fieldFixedLength does not match xml.fieldNames (0 <> 2) : TransformException: Transformer Conversion3.0.5226 Error initializing Class: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: (4408) Parameter 'xml.fieldFixedLengths' or 'xml.fieldSeparator' is missing (4409) Consistency check: no. of arguments in 'xml.fieldFixedLength' does not match 'xml.fieldNames' (0 <> 2)
    ironically when i use file adapter, its reading the file properly and converting XML as expected?
    Did anyone face this issue.....
    is this issue because of an extra ¤ .. is so... why its not giving issue with File??

    You need an additional hierarchy level:
    root
    -> row
      -> data
    In your example:
    <?xml version="1.0" ?>
    <ns1:HQ_reply_MT xmlns:ns1="urn:abc.com:HQToSAP">
    <b><row></b>
    <Data1> PIPXSDI3070 00000 00342YSDI3070PROCESS_MQSERIES HQXPLOR10 XPLOR.ORDER.RESULTS 0000 000000000000000086312 Invalid Process flag : 2. 065</Data1>
    <b></row></b>
    </ns1:HQ_reply_MT>
    Regards
    Stefan

  • JMS Content Conversion with spaces

    Hi
    I am using the JMS Content Conversion to transalte MQ messages ( they come from the Mainframe ),to XML Format.
    These messages are in fixed lenghts structure , the fields contain blanks (spaces)
    The adapter cannot deal with it,only fixed lenghts without spaces , the monitor gives the following error
    XI inbound processing failed for message at 2006-08-24|07:45:25.518+0200. JMS and XI identifiers for message are ID:414d51204445564d41494e31202020207aabe04420c2ea13 and bd95c760-3333-11db-b915-001125a56002 respectively. JMS adapter will rollback database and JMS session transactions
    Have some1 dealed with this issue? managed to solve it?
    Thx,Shai

    Hi Shai.
    Before you call him ,try to use the simple convertion in the sender JMS comm. channel,then after you got the first XML structure to the XI ,use a simple\advanced java function from the message mapping and get rid of the spaces if they bother you.
    Can you post the fixed width message you get from JMS I'd like to have a look.
    By the way ,how did you resolve the File content convertion with 4 levels?
    Regarding Yaki's phone...well I'm sure your Boss have it.
    8-)
    Again ,good luck.
    Nimrod
    Message was edited by: Nimrod Gisis

  • JMS content conversion adapter module

    Hi All,
    In JMS Content conversion module Xml2Plain how do u put two new lines 'nl'.
    I am using localejbs/AF_Modules/MessageTransformBean in adapter module.
    If I put xml.record.fieldSeparator in parameter name and in parameter value if I put one 'nl' it gives me one new line. Now I require two new lines in my output text so I put 'nl' 'nl' in parameter value but it takes only one new line.
    e.g
    Vivek
    mumbai
    India
    John
    Delhi
    India
    Now I want the output as:
    Vivek
    mumbai
    India
    John
    Delhi
    India
    Thanks in advance.
    ravijeet

    try,
    xml.record.fieldSeparator '0x0D''0x0D'
    or
    xml.record.fieldSeparator '0x0A''0x0A'

  • Sender JMS content conversion

    Hi
       In the sender JMS content conversion, I do not want Recordset name hence I specified,
    Parameter Name: xml.ignoreRecordsetName
    Parameter Value: true
    But am still getting the Recordset name in the payload...
    Is this working for someone or a bug?
    Thanks in advance!
    Amulya

    >
    Amulya Lewis wrote:
    > Hi
    >
    >    In the sender JMS content conversion, I do not want Recordset name hence I specified,
    > Parameter Name: xml.ignoreRecordsetName
    > Parameter Value: true
    > But am still getting the Recordset name in the payload...
    > Is this working for someone or a bug?
    >
    > Thanks in advance!
    > Amulya
    when using the MessageTransformBean do note that xml.ignoreRecordsetName does not work

  • Testing JMS content conversion

    Hi Experts,
    I have a scenario MQ-->PI--ECC.
    MQ sends a flat file and there is JMS content conversion used in sender JMS channel. On MQ side channels are not yet setup. Now I need to test if JMS content conversion is working properly. I cannot test by triggering flat file from RWB.
    Is there a way I can trigger a file from any third party tools and test the content conversion. Do you have any suggestions to make this test possible.
    Thanks,
    Avinash.

    Hi Avinash
    One option is to create a temporary File/FTP sender channel and use it in the sender agreement replacing the JSM channel. In the File/FTP channel, use the MessageTransformBean to achieve content conversion. This way, you can test out the content conversion parameters, and once the JMS server is ready, you can just swap it.
    Rgds
    Eng Swee

  • Sender JMS Content Conversion - How to process multiple records

    Hi All,
    I use a Sender JMS Channel with Content Conversion.
    My message structure is like this
    <root>
        <rec>    </rec>
        <rec>    </rec>
    </root>
    I have fixed length flat file with multiple records.
    i have given the parameters FixedFieldLength, FieldNames and StructureTitle.
    Which parameter i need to use specify the RecordDelimiter
    Because my input file will have more than record
    my input file -
    xxxx
    yyyy
    if i dont specify any delimiter value, in the module parameter,then for each newline of the file, a new mesage is created.
    <root>
      <rec>xxxx</rec>
    <root>
    <root>
      <rec>yyyy</rec>
    <root>
    But i want the output to be like this
    <root>
    <rec>xxxx<rec>
    <rec>yyyy</rec>
    </root>

    hi,
    You can do your FCC for sender JMS by going through page 5 of this document.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50061bd9-e56e-2910-3495-c5faa652b710

  • JMS Content Conversion - Need to control RecordSet per Message

    Hi All,
    I have done a simple JMS to JMS scenario with content conversion.
    I need to control  RecordSet per Message ( similarlly we do for the FILE . that is , Recordset Structure = Records, 500 and Recordset per message = 1)
    How to achive this in JMS adapter.
    Regards,
    B.Jude

    There doesnt seem to be an option for that in the messagetransforbean
    http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter

  • JMS Content Conversion

    Hi all,
    is possible to do content conversion in JMS Adapter of a file whit the following structure?
    -Root
    --Header
    ---A
    ---B
    ---C
    --Content
    ---Record_A
    D
    E
    F
    ---Record_B
    G
    H
    Record_C
    I
    J
    And if it's possible....how to do it?
    Thanks all
    Mane

    Hi,
    Refer to these links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Check the how to guide provided by prabhu and also this link on the XMl To TeXtCoversion Module,
    http://help.sap.com/saphelp_nw04/helpdata/en/44/748d595dab6fb5e10000000a155369/content.htm
    Regards,
    Kumar.
    **reward points if helpful!!!

  • Doubt in jms content conversion

    Hi ,
    I m doing content conversion in sender jms channel.
    My input is of the format
    AAAAAAA#bbbbbbb#ccccccc#
    I want to map it to XML Structure
    <Root>
    <Record>
      <item>AAAAA </item>
    </Record>
    <Record>
      <item>bbbbb</item>
    </Record>
    <Record>
      <item>CCCC</item>
    </Record>
    </Root>
    Is it possible?

    Resolved

  • Sender JMS content conversion only header

    I hav a scenario as shown in example 3.2. of Wiki given below and  configured accordingly.
    I only get NameA record but i do not get NameB or NameC.
    can some one help me out if I am wrong some where
    http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter

    Hi Robin,
    Check whether you have added the conversion modules in the JMS adapter.
    Check whether you have have defined the paramters listed below:
    NameA.documentName
    NameA.documentNamespace
    NameA.recordsetName
    NameA.recordsetStructure (Ensure recordSetStructure is defined correctly)
    If any keyfield is used, then use nameA.keyFieldName, nameA.keyFieldValue
    If the lengths of the fields are fixed then use NameA.fieldFixedLengths
    Thanks,

  • JMS Content Conversion wtih MessageTransformBean

    Hi
    I'm doing a content conversion in a MQSeries Receiver Channel using the MessageTransformBean. The adpater logs say that the bean has been processed and that the message has been transformed successfully. However, when I look on the queue and in the adapter message content I still see the original xml message. Any one have an idea what the problem could be? We are on XI 7.0 SP11
    Thanks
    Tim

    Tim,
    you can use MessageTransformBean module in file adapter.
    Just add the module in the module tab.
    Regards,
    Henrique.

  • JMS Content Conversion - no CR/LF

    has anyone been able to successfully use content conversion when there are not carriage returns/line feeds between the headers & lines?  We are receive MQ messages that are continuous streams of data containing the header data and all the lines.  The segements are all fixed-width, but we can only get content conversion to work if we insert carriage returns & line feeds between hearder & the 1st line, then between all lines.  We'd like it to parse based on length alone.  currently, content conversion just reads the header, and throws the remaining data away.
    thanks!
    amy

    Hi Amy,
    Unfortunately, the default adapter configuration does not provide this feature.  You will have to write java code.
    There are 2 options available:
    1.  develop user-module for the adapter and parse its content before sending it to the integration server.
    2.  send the content of the data to XI without any parsing and use java mapping to parse the data.
    In this case, option 2 is probably easier.
    Regards,
    Bill

  • JMS Content Conversion help

    Hi all,
    i have a problem.
    I don't know how to convert a flat file that contain more than three nested level in a xml file. I tried with the content conversion but it doesn't work.
    In my scenario I use a file adapter.
    The structure is like the following:
    Root
    --fieldA
    --fieldB
    fieldB_1
    filedB_2
    fieldB_3
    fieldB_3_1
    fieldB_3_2
    Please help me.
    Thanks all!!
    Mane

    Someone told me that there is SAP documentations that declare maximum 2 nested level.
    Is it true?

  • Document for JMS Content Conversion

    Hi,
    I am fairly new to XI.  Am working with MQSeries as both sender and receiver.  The messages from/to MQSeries are not in XML format.  I will need to convert them into/from XML.
    I know there are help/how-to documents on this topic but cannot find them.
    Does anyone know their locations?
    Thanks,
    John

    Hi John,
    You can find the how-to document on:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    The same document is also available in service.sap.com: Media Library->Guides
    Regards,
    Bill

Maybe you are looking for