Author |
Message
|
abhijits |
Posted: Mon Aug 16, 2004 4:42 am Post subject: Sending XML file in a Message- Urgent |
|
|
Newbie
Joined: 16 Aug 2004 Posts: 3
|
Hi,
I am new to using JMS to send messages. I have to send a XML file to a predefined queue. I am reading the contents of the XMl file and sending the contents as a text message to the Queue. The message is successfully sent to the queue. However MQ AMI at the destination queue gives following error message while receving the message:
--------------------------------------------------------
AMRC_HEADER_INVALID
The RFH header structure of the message was not valid.
--------------------------------------------------------
I am mentioning the contents of the XML file below. There is no header in the XML file. Is that the cause of error.Any help in this regard would be greatly appreciated.
<?xml version="1.0" encoding="UTF-8"?><?Siebel-Property-Set EscapeNames="false"?><SiebelMessage
MessageId="1-2ON"
IntObjectFormat="Siebel Hierarchical"
MessageType="Integration Object"
IntObjectName="TSMC-ECN Request"
><ListOfTsmc-EcnRequest
><Tsmc-EcnRequest
><DocumentCenterOwner
>fsdfsdO</DocumentCenterOwner
><DocumentNumber
>Doc0812</DocumentNumber
><DocumentTitle
>Doc Title Here</DocumentTitle
><fCNAuthor
>CCHUANGT</fCNAuthor
><ECNClass
>Class 1</ECNClass
><Eumber
>E07020040812</Eumber
><Purpose
>testing</Purpose
><Status
>Open</Status
><Type
>SsvcdsTR</Type
><Impact
>CM013fsdfdsfQQ</Impact
><Number
>1-6916601</Number |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Aug 16, 2004 5:26 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
My guess would be that you have the JMS header on the front of your message and the AMI doesn't understand it. You might try changing the TARGCLIENT property of your destination to MQ instead of JMS. This will keep the header from being added. |
|
Back to top |
|
 |
abhijits |
Posted: Mon Aug 16, 2004 6:08 am Post subject: |
|
|
Newbie
Joined: 16 Aug 2004 Posts: 3
|
Hi bower,
Thanks for the Reply. I am not creating any header property in java code. I have created the destination Queue in the JNDI using the JNDI Admin tool. Please clarify if TARGCLIENT property is not specified in the JMSAdmin tool it is assumed tobe JMS???
Regards
Abhijit |
|
Back to top |
|
 |
vennela |
Posted: Mon Aug 16, 2004 6:25 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
Quote: |
Please clarify if TARGCLIENT property is not specified in the JMSAdmin tool it is assumed tobe JMS???
|
Yes |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Aug 16, 2004 6:55 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
After you create the object, you can display (dis q(xx)) to see all of the parameters and their values. |
|
Back to top |
|
 |
abhijits |
Posted: Mon Aug 16, 2004 7:47 am Post subject: |
|
|
Newbie
Joined: 16 Aug 2004 Posts: 3
|
I deleted existing queue object from JMSAdmin and recreated a new QueueObject but now the SendMessaage program fails with 2085 exception. Hence i deleted the QCF - factory and created a new factory. Now i am getting the "No ClassDefFound Error:" at "com.ibm.mq.MQSessionServer.getMQSession"
Can anybodyhelp me in this regard |
|
Back to top |
|
 |
vennela |
Posted: Mon Aug 16, 2004 8:39 am Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
When are you getting this error?
While running your program?
You have to check your CLASSPATH and add the encessary mq jar files to the classpath. |
|
Back to top |
|
 |
bower5932 |
Posted: Mon Aug 16, 2004 10:01 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
The 2085 is object not defined. When you create a queue through JMSAdmin, it does not create the actual WMQ queue. You still have to do this yourself. Also, the name that you use in both JMSAdmin and WMQ has to match. |
|
Back to top |
|
 |
|