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 » Message reaching to MQ but with blank payload

Post new topic  Reply to topic
 Message reaching to MQ but with blank payload « View previous topic :: View next topic » 
Author Message
Mangesh1187
PostPosted: Thu Oct 01, 2015 4:01 am    Post subject: Message reaching to MQ but with blank payload Reply with quote

Centurion

Joined: 23 Mar 2013
Posts: 116

Hi All,

I am facing a weired problem with LISA.
We are using LISA Automation tool, where we configured .bindings file & corresponding topic to publish a message to MQ(7.5).
We configured the below things in LISA .
Connection Factory : QM1.TCF
Topic JNDI Name : TEST.TOPIC
Message Type :Text

SCENARIO 1:
When LISA published a message using the above settings on the topic, we checked it in corresponding subscription queue.(using amqbcg)
The message reached to the subscription queue, but the body is blank.
During analysis of this perticular message I can see the few of the MQ RHF2 hedars set as below :

'RFH ....P.......''....MQSTR ....'
<mcd>
<Msd>jms_text</Msd>
<msgbody xsi:nil='true'></msgbody>
</mcd>

I think the <msgbody xsi:nil='true'></msgbody> has caused the problem , but not sure how & about the soulution.

==
SCENARIO 2:
LISA published a message using the above settings on the topic, & placed <jms></jms> values before the messages content.
i.e. the message loks like "<jms></jms>Helowo world"

In this case I can see the message has been readhed to the queue as expected.
When I checked the header of this message its look like below :

'RFH ....P.......''....MQSTR ....'
<mcd>
<Msd>jms_text</Msd>
</mcd>


Looks like its nothing to do from MQ side. But not sure whtas going wrong as I dont have profeciancy with JMS programming.

Can someone please share their thoughts on the same?
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Oct 01, 2015 4:24 am    Post subject: Reply with quote

Grand High Poobah

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

What you are seeing is the RFH2 header, which is still a default for JMS.
If you need to consume the message from a non JMS application and want to ditch the RFH header, look into the subscription options for propctl

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Mangesh1187
PostPosted: Sun Oct 04, 2015 10:52 pm    Post subject: Reply with quote

Centurion

Joined: 23 Mar 2013
Posts: 116

Thanks for the reply.

I tried to execute the same scenario from LISA , just instead of publishing on topic to put it on p2p queue. With the following attributes

Connection Factory : QM1.QCF
Queue JNDI Name : TEST.QUEUE
Message Type :Text

I can still see the same obeservations that I mentioned earlier. So it seems its not related to the pub sub. Something missing in JMS.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Oct 05, 2015 4:48 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

What does amqsbcg(amqsbcgc) show for the entire contents of the message?

Is there really no data after the RFH header?
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
Mangesh1187
PostPosted: Mon Oct 05, 2015 9:03 pm    Post subject: Reply with quote

Centurion

Joined: 23 Mar 2013
Posts: 116

Below is the message from the amqsbcg (when LISA tried put message "Hellow world" on queue. No payload message can be seen.


[mquser@xxxxxxx ~]$ /opt/mqm/samp/bin/amqsbcg LISA.TESTQ QM1

AMQSBCG0 - starts here
**********************

MQOPEN - 'LISA.TESTQ'


MQGET of message number 1, CompCode:0 Reason:0
****Message descriptor****

StrucId : 'MD ' Version : 2
Report : 0 MsgType : 8
Expiry : 9590 Feedback : 0
Encoding : 273 CodedCharSetId : 1208
Format : 'MQHRF2 '
Priority : 4 Persistence : 1
MsgId : X'414D512044484B4C3130303533382020FE7E2255028C8220'
CorrelId : X'000000000000000000000000000000000000000000000000'
BackoutCount : 0
ReplyToQ : ' '
ReplyToQMgr : 'QM1 '
** Identity Context
UserIdentifier : 'mq00001 '
AccountingToken :
X'0000000000000000000000000000000000000000000000000000000000000000'
ApplIdentityData : ' '
** Origin Context
PutApplType : '28'
PutApplName : 'WebSphere MQ Client for Java'
PutDate : '20151001' PutTime : '05482878'
ApplOriginData : ' '

GroupId : X'000000000000000000000000000000000000000000000000'
MsgSeqNumber : '1'
Offset : '0'
MsgFlags : '0'
OriginalLength : '-1'

**** Message ****

length - 428 of 428 bytes

00000000: 5246 4820 0000 0002 0000 01AC 0000 0111 'RFH ............'
00000010: 0000 04B8 4D51 5354 5220 2020 0000 0000 '....MQSTR ....'
00000020: 0000 04B8 0000 0040 3C6D 6364 3E3C 4D73 '.......@<mcd><Ms'
00000030: 643E 6A6D 735F 7465 7874 3C2F 4D73 643E 'd>jms_text</Msd>'
00000040: 3C6D 7367 626F 6479 2078 7369 3A6E 696C '<msgbody xsi:nil'
00000050: 3D22 7472 7565 223E 3C2F 6D73 6762 6F64 '="true"></msgbod'
00000060: 793E 3C2F 6D63 643E 0000 0090 3C6A 6D73 'y></mcd>....<jms'
00000070: 3E3C 4473 743E 7175 6575 653A 2F2F 2F4C '><Dst>queue:///L'
00000080: 4953 412E 5445 5354 513F 6465 7374 4465 'ISA.TESTQ?destDe'
00000090: 7363 7269 7074 696F 6E3D 5465 7374 2B50 'scription=Test+P'
000000A0: 3250 2B71 7565 7565 2B66 6F72 2B4C 4953 '2P+queue+for+LIS'
000000B0: 413C 2F44 7374 3E3C 546D 733E 3134 3433 'A</Dst><Tms>1443'
000000C0: 3637 3835 3038 3738 343C 2F54 6D73 3E3C '678508784</Tms><'
000000D0: 4578 703E 3134 3433 3638 3033 3038 3738 'Exp>144368030878'
000000E0: 343C 2F45 7870 3E3C 446C 763E 323C 2F44 '4</Exp><Dlv>2</D'
000000F0: 6C76 3E3C 2F6A 6D73 3E20 2020 0000 00AC 'lv></jms> ....'
00000100: 3C75 7372 3E3C 6C69 7361 4672 616D 6552 '<usr><lisaFrameR'
00000110: 656D 6F74 6549 503E 3133 362E 3535 2E31 'emoteIP>136.55.1'
00000120: 3535 2E35 333C 2F6C 6973 6146 7261 6D65 '55.53</lisaFrame'
00000130: 5265 6D6F 7465 4950 3E3C 6C69 7361 4672 'RemoteIP><lisaFr'
00000140: 616D 6549 443E 3061 3539 3935 3830 2D36 'ameID>0a599580-6'
00000150: 3830 302D 3131 6535 2D62 3966 362D 3434 '800-11e5-b9f6-44'
00000160: 3337 6536 3939 3635 6138 3C2F 6C69 7361 '37e69965a8</lisa'
00000170: 4672 616D 6549 443E 3C6C 6973 6146 7261 'FrameID><lisaFra'
00000180: 6D65 526F 6F74 2064 743D 2762 6F6F 6C65 'meRoot dt='boole'
00000190: 616E 273E 313C 2F6C 6973 6146 7261 6D65 'an'>1</lisaFrame'
000001A0: 526F 6F74 3E3C 2F75 7372 3E20 'Root></usr> '



No more messages
MQCLOSE
MQDISC[mquser@xxxxxxxx ~]$
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Oct 05, 2015 10:06 pm    Post subject: Reply with quote

Grand High Poobah

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

It looks like the whole LISA payload was put as properties of the message instead of the message payload.... The message looks like a TextMessage with no content and a bunch of String properties containing the LISA payload...
Check for String properties starting with "lisa"

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Mon Oct 05, 2015 10:34 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

fjb_saper wrote:
It looks like the whole LISA payload was put as properties of the message instead of the message payload.... The message looks like a TextMessage with no content and a bunch of String properties containing the LISA payload...
Check for String properties starting with "lisa"

Have fun


In other words,

Working as coded

As 'fjb' say, fis the place where the messages is added and you should be fine.
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Message reaching to MQ but with blank payload
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.