cancel
Showing results for 
Search instead for 
Did you mean: 

JMS Content Converrsion

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

stefan_grube
Active Contributor
0 Kudos

> 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

it has to be:

localejbs/AF_Modules/MessageTransformBean

Modules - with capital M

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

Probably you are right.But our Java stack is down(People are in weekend mood) and I am unable to get the IR_Config.I will correct it once our IR-Config is available.

Thanks,

S.Banukumar

Former Member
0 Kudos

Hi Stefan,

I have corrected AF_modules to AF_Modules.Still I am unable to get the order info as Flat file.

I checked the adapter monitor for the JMS adapter and the status for my communication channel reads as

Receiver Channel. Details: (No detail information set.)

Any new ideas or checks?Please let me know.

Thanks,

S.Banukumar

Former Member
0 Kudos

Hi,

When I am trying to do content conversion in the receiver JMS adapter and deliver the message,I am getting the following error messages.

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.

What could be the possible reason for the error messages?

Thanks in advance,

S.Banukumar

Former Member
0 Kudos

Stefan / Banukumar and Rashmi,

I have a need to convert xml to plain format in my JMS receiver. The protocol is WebSphereMQ (Non-JMS).

In help.sap.com, I don't see any information on "Set Additional JMS Parameters or Replace Default Settings" or the module key that you all have been discussing - XML2Plain

Can you share with me where you found all this information.

Thank you,

Parimala

stefan_grube
Active Contributor
0 Kudos

Look here:

http://service.sap.com/nw-howtoguides

-> Exchange Infrastructure

-> How To Use the Content Conversion Module in JMS Adapter

Former Member
0 Kudos

Found it thank you.....very helpful and solved the problem. I cannot find the button to give the points. I will as soon as I find a way.

Another way to get to this - https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/how to use the content conversion module with xi 3.0 j2ee jms adapter.pdf

Thanks again.

Pam

stefan_grube
Active Contributor
0 Kudos

Your version is an older one.

Regards

Stefan

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Banukumar,

In your Module Configuration Parameters did you add the parameter Transform.class and its value as

com.sap.aii.messaging.adapter.Conversion .

Check your other parameters like xml.conversionType is set to xml2plain.

Make sure that you do not enter any spaces after parameter names or values in your

configuration, especially after copying values to the configuration from text files.

Cheers,

Rashmi

stefan_grube
Active Contributor
0 Kudos

Is there any information about this in the adapter monitor? Which SP do you have? Can you describe your conversion parameters?

Regards

Stefan

Former Member
0 Kudos

Hi,

In the Adapter monitor,the JMS adapter status information is not available now.But the JMS adapter used by other interfaces are working well.

We have SP9.

The conversion parameters are as follows:

Module key - XML2Plain

ParameterName ParameterValue

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

TransformContent text/xml;charset=utf-8

type

xml.conversionType SimpleXML2Plain

xml.addHeaderLine 0

xml.fieldFixedLengths 80

xml.fixedLengthTooShortHandling Cut

Thanks,

S.Banukumar

stefan_grube
Active Contributor
0 Kudos

In this case your xml structure should look like:

<a>

<b>

<c>row1</c>

<c>row2</c>

<c>row3</c>

</b>

</a>

a,b,c can have any name. Is this the case?

When you configure a file adapter module instead, you receive a detailed error description in the adapter monitor, try this.

Regards

Stefan

Former Member
0 Kudos

Thanks Stefan.My XML looks like

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

<ns66:OrderData_MT xmlns:ns66="http://......">

<orderdata>

<record>0000001374 ZOR test1 <record>

</orderdata>

<orderdata>

<record>0000001375 ZOR test2 <record>

</orderdata>

<orderdata>

<record>0000001374 ZOR test3 <record>

</orderdata>

</ns66:OrderData_MT>

Do I need to change my xml structure? Or the above structure will work.

Thanks,

S.Banukumar

stefan_grube
Active Contributor
0 Kudos

The structure seems OK to me, but I have another idea:

Can you check, if there are any trailing spaces in your configuration? Click in the configuration in edit mode in the fields, the cursor should be at the last position. If there is a space, so delete it.

Stefan

Former Member
0 Kudos

Hi Stefan,

In the Config,I have checked the Module key, Parameterfields and Parameter values.There is no trailing spaces.I will try the file adapter modules.

Thanks,

S.Banukumar

stefan_grube
Active Contributor
0 Kudos

Did you cut and paste the structure?

This is not valid xml, but maybe the typo was only in writing the SDN entry.

Former Member
0 Kudos

Hi Stefan,

I have not cut and paste the XML.I have reproduced part of the message.The XML document is like this:

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

<ns66:OrderData_MT xmlns:ns66="http://......">

<orderdata>

<record>0000001374 ZOR test1 </record>

</orderdata>

<orderdata>

<record>0000001375 ZOR test2 </record>

</orderdata>

<orderdata>

<record>0000001374 ZOR test3 </record>

</orderdata>

</ns66:OrderData_MT>

I hope it is a correct document now.

Thanks,

S.Banukumar