ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Sending XML file in a Message- Urgent

Post new topic  Reply to topic
 Sending XML file in a Message- Urgent « View previous topic :: View next topic » 
Author Message
abhijits
PostPosted: Mon Aug 16, 2004 4:42 am    Post subject: Sending XML file in a Message- Urgent Reply with quote

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
View user's profile Send private message
bower5932
PostPosted: Mon Aug 16, 2004 5:26 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
abhijits
PostPosted: Mon Aug 16, 2004 6:08 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Mon Aug 16, 2004 6:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
bower5932
PostPosted: Mon Aug 16, 2004 6:55 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
abhijits
PostPosted: Mon Aug 16, 2004 7:47 am    Post subject: Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Mon Aug 16, 2004 8:39 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
bower5932
PostPosted: Mon Aug 16, 2004 10:01 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Sending XML file in a Message- Urgent
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.