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 » WebSphere Interchange Server + Adapters » "Invalid JMS type" in mySAP

Post new topic  Reply to topic
 "Invalid JMS type" in mySAP « View previous topic :: View next topic » 
Author Message
soni
PostPosted: Mon Oct 22, 2007 12:07 am    Post subject: "Invalid JMS type" in mySAP Reply with quote

Novice

Joined: 08 Oct 2007
Posts: 15
Location: Spain

Hello world!

I have a problem with a mySAP adapter... I sent a message, and the flow worked correctly, but when mySAP adapter tried read it showed this error in its log file:

Code:
[Time: 2007/10/19 08:09:14.653] [System: ConnectorAgent] [SS: SAPConnector] [Thread: QL.QMDESA01.SAPSIGHN01.REQUESTQUEUEJmsThreadPool.thread4 (#639742120)] [Type: Error] [MsgID: 9086] [Mesg: The received message contains invalid JMS type, the message will be sent to the fault queue. Message ID: ID:414d5120514d444553413031202020204716f78a2000ef04]


Any idea?

Thanks in advance!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 22, 2007 2:19 am    Post subject: Re: "Invalid JMS type" in mySAP Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

soni wrote:
Hello world!

I have a problem with a mySAP adapter... I sent a message, and the flow worked correctly, but when mySAP adapter tried read it showed this error in its log file:

Code:
[Time: 2007/10/19 08:09:14.653] [System: ConnectorAgent] [SS: SAPConnector] [Thread: QL.QMDESA01.SAPSIGHN01.REQUESTQUEUEJmsThreadPool.thread4 (#639742120)] [Type: Error] [MsgID: 9086] [Mesg: The received message contains invalid JMS type, the message will be sent to the fault queue. Message ID: ID:414d5120514d444553413031202020204716f78a2000ef04]


Any idea?

Thanks in advance!


What is the MQ format of the message you sent? What format/class is the JMS Adapter expecting?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
soni
PostPosted: Mon Oct 22, 2007 2:56 am    Post subject: Reply with quote

Novice

Joined: 08 Oct 2007
Posts: 15
Location: Spain

Our Message Broker code for adding header is:

Code:
CREATE NEXTSIBLING of OutputRoot.MQMD DOMAIN 'MQRFH2' NAME 'MQRFH2';
SET OutputRoot.MQMD.Format = MQFMT_RF_HEADER_2;
SET OutputRoot.MQRFH2.usr = null;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Version = 2;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = 'MQSTR ';
SET OutputRoot.MQRFH2.usr.COD_APPL_ORG = 'SAPSIGNH01';
SET OutputRoot.MQRFH2.usr.COD_APPL_DST = 'META4SIGNH01';
SET OutputRoot.MQRFH2.usr.COD_TIPO_MSG = 'SINCSAP';
SET OutputRoot.MQRFH2.usr.MOD_RTR = 'C';
SET OutputRoot.MQRFH2.usr.FMT_MSG = 'PR';
SET OutputRoot.MQRFH2.usr.TYP_MSG = 'PET';


And I don't know what format/class need the mySAP adapter... I'm testing with many different headers... but nothing works... The message is like this:
Code:
RFH  ¸MQSTR   Â¸T
<mcd>
 <Msd>mrm</Msd>
 <Set>ia9f_BLOB</Set>
 <Type>BLOB_BO</Type>
 <Fmt>CwXML</Fmt>
</mcd>
   l
<jms>
 <Dst>queue:///QL.QMDESA01.JTEXTSIGHN01.DELIVERYQUEUE</Dst>
 <Tms>1191841210078</Tms>
 <Dlv>2</Dlv>
</jms>
   Â°
<usr>
 <WSDLBinding>BLOB_BOAgentDeliveryBinding</WSDLBinding>
 <WSDLOperation>BLOB_BOCreate</WSDLOperation>
 <PrivacyLevel>None</PrivacyLevel>
 <MessageType>BLOB_BO</MessageType>
</usr>
.......... body message ..........


regards
Back to top
View user's profile Send private message
kirankinnu
PostPosted: Mon Oct 22, 2007 12:56 pm    Post subject: Reply with quote

Centurion

Joined: 12 Jun 2004
Posts: 128
Location: Chicago, IL

Under jms shouldnt the response queue be
"OutputRoot".MQRFH2.jms.Rto = response queue name
Also I am not sure about the Format. Check with this format
SET "OutputRoot"."MQMD".Format = 'MQHRF2 ';

Did you try with this.

Thanx
Kiran
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 22, 2007 1:17 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Use the literals for the formats
like MQFMT_STRING.... etc...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
JLRowe
PostPosted: Tue Oct 23, 2007 1:17 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

Looks like its not a well formed JMS message, if its complaining about the JMS message type then this should be map, stream, bytes, text or object.

Look at the documentation:

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj25440_.htm

Write some java code to generate a JMS MQ message, and have a peek at how it looks in MQ.

You could also write some java code to get your generated message, this may give you a more specific exception that is being swallowed by SAP.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Interchange Server + Adapters » "Invalid JMS type" in mySAP
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.