Author |
Message
|
kash3338 |
Posted: Thu Feb 16, 2012 7:31 am Post subject: Blank message when Using Parse statement |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
Hi,
I try to generate the output root from the Parse statement and send to queue, but I get a blank message in the queue instead of the actual message.
When I debug and see, I can see the complete message with headers. The code for parse the blob data to outputroot is below,
Code: |
CREATE LASTCHILD of Environment.BusEventData PARSE(busdataBlob OPTIONS options CCSID nCCSID ENCODING nEncoding); |
What could be the reson for this blank message? |
|
Back to top |
|
 |
Vitor |
Posted: Thu Feb 16, 2012 7:43 am Post subject: Re: Blank message when Using Parse statement |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kash3338 wrote: |
What could be the reson for this blank message? |
It could be anything. Why not take a user trace and find out? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Feb 16, 2012 8:03 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
You can't write Environment into an MQ message. MQOutput only reads from Root.
You can't create a message tree from a bitstream using CREATE PARSE without indicating which message domain is needed. |
|
Back to top |
|
 |
kash3338 |
Posted: Thu Feb 16, 2012 9:00 pm Post subject: |
|
|
Shaman
Joined: 08 Feb 2009 Posts: 709 Location: Chennai, India
|
mqjeff wrote: |
You can't write Environment into an MQ message. MQOutput only reads from Root.
You can't create a message tree from a bitstream using CREATE PARSE without indicating which message domain is needed. |
My next line of code is,
Code: |
SET OutputRoot = Environment.BusEventData.Root; |
When I debug i can see the output root populated with proper values, but when i took a user trace, I found Environment.BusEventData.Root to be NULL.
Quote: |
2012-02-17 10:22:02.914598 2724 UserTrace BIP2539I: Node 'XXX_CEF_ReplayService_001.GetRoutingAndBusinessData': Evaluating expression ''busdataBlob'' at ('.XXX_CEF_ReplayService_GetRoutingAndBusinessData.Main', '63.54'). This resolved to ''busdataBlob''. The result was ''X'4d442020020000000000000008000000ffffffff0000000022020000b50100004d514852463220200000000000000000414d51204d79514d2020202020202020b916264f201d2cc2000000000000000000000000000000000000000000000000000000002020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020204d79514d20202020202020202020202020202020202020202020202020202020202020202020202020202020202020206a6179617072616b6173682016010515000000b4b7cd221ed19818235f636beb03000000000000000000000b20202020202020202020202020202020202020202020202020202020202020200b000000443a5c7266687574696c5c696830335c7266687574696c2e657865203230313230323136313531303032303620202020000000000000000000000000000000000000000000000000010000000000000000000000ffffffff52464820020000004400000022020000b50100004d5153545220202000000000b80400001c0000003c6d63643e3c4d73643e584d4c4e53433c2f4d73643e3c2f6d63643e3c526f6f743e3c436f64653e313233343c2f436f64653e3c2f526f6f743e'''.
2012-02-17 10:22:02.914616 2724 UserTrace BIP2539I: Node 'XXX_CEF_ReplayService_001.GetRoutingAndBusinessData': Evaluating expression ''options'' at ('.XXX_CEF_ReplayService_GetRoutingAndBusinessData.Main', '63.74'). This resolved to ''options''. The result was ''0''.
2012-02-17 10:22:02.914628 2724 UserTrace BIP2539I: Node 'XXX_CEF_ReplayService_001.GetRoutingAndBusinessData': Evaluating expression ''nEncoding'' at ('.XXX_CEF_ReplayService_GetRoutingAndBusinessData.Main', '63.104'). This resolved to ''nEncoding''. The result was ''546''.
2012-02-17 10:22:02.914643 2724 UserTrace BIP2539I: Node 'XXX_CEF_ReplayService_001.GetRoutingAndBusinessData': Evaluating expression ''nCCSID'' at ('.XXX_CEF_ReplayService_GetRoutingAndBusinessData.Main', '63.88'). This resolved to ''nCCSID''. The result was ''437''.
2012-02-17 10:22:02.914673 2724 UserTrace BIP2537I: Node 'XXX_CEF_ReplayService_001.GetRoutingAndBusinessData': Executing statement ''SET OutputRoot = Environment.BusEventData.Root;'' at ('.XXX_CEF_ReplayService_GetRoutingAndBusinessData.Main', '65.3').
2012-02-17 10:22:02.914690 2724 UserTrace BIP2539I: Node 'XXX_CEF_ReplayService_001.GetRoutingAndBusinessData': Evaluating expression ''Environment.BusEventData.Root'' at ('.XXX_CEF_ReplayService_GetRoutingAndBusinessData.Main', '65.20'). This resolved to ''Environment.BusEventData.Root''. The result was ''ROW... Root Element Type=16777216 NameSpace='' Name='Root' Value=NULL''.
2012-02-17 10:22:02.914702 2724 UserTrace BIP2568I: Node 'XXX_CEF_ReplayService_001.GetRoutingAndBusinessData': Copying sub-tree from ''Environment.BusEventData.Root'' to ''OutputRoot''. |
|
|
Back to top |
|
 |
Vitor |
Posted: Fri Feb 17, 2012 5:42 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
kash3338 wrote: |
My next line of code is,
Code: |
SET OutputRoot = Environment.BusEventData.Root; |
|
mqjeff wrote: |
You can't create a message tree from a bitstream using CREATE PARSE without indicating which message domain is needed |
Can you point out where in that line of code you're indicating the message domain associated with the OutputRoot message tree? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
kimbert |
Posted: Fri Feb 17, 2012 12:52 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
when i took a user trace, I found Environment.BusEventData.Root to be NULL |
The whole point of user trace is to show you *why* things happen in your message flow. I suggest that you read the earlier messages to find out why this has happened. |
|
Back to top |
|
 |
|