|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
Setting the RCD node properties at runtime |
« View previous topic :: View next topic » |
Author |
Message
|
kimbert |
Posted: Fri Nov 13, 2009 6:30 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
The code suggested by ovasquez is wrong. It is attempting to parse an XML bit stream using the CWF physical format. Nobody would want or need to do that. In any case, it is very rarely useful to use the result of ASBITSTREAM as the input to CREATE...PARSE. Normally, you need either ASBITSTREAM *or* CREATE...PARSE, but not both.
The code in the latest post is also wrong.
- ASBITSTREAM returns a BLOB. You don't need to CAST the result to BLOB.
- The ASBITSTREAM is trying to produce a BLOB from InputRoot.BLOB.BLOB. It is already a BLOB.
- The ASBITSTREAM call is using the SET, TYPE, FORMAT parameters, which are only used by MRM and IDOC domains. The BLOB parser would never look at those parameters.
- CREATE LASTCHILD OF OutputRoot doesn't need the domain clause. The last child of OutputRoot is special, and automatically inherits the appropriate domain based on the name of the element. So this code should be creating an element with name 'MRM'.
- If you want further help, you should do the basics. Take a user trace and post the full text of the errors. Then we might be able to assist. |
|
Back to top |
|
 |
sarathmattam |
Posted: Fri Nov 13, 2009 12:20 pm Post subject: |
|
|
Voyager
Joined: 05 Sep 2008 Posts: 94
|
Dear All,
Here is the trace file .. I can see the required output in the trace. but wen it comes to the out put queue, its empty ..
( ['MQROOT' : 0x8cf94f0]
(0x01000000):Properties = ( ['MQPROPERTYPARSER' : 0x8b48b70]
(0x03000000):MessageSet = 'GATEWAY' (CHARACTER)
(0x03000000):MessageType = 'FullMsg' (CHARACTER)
(0x03000000):MessageFormat = 'Text1' (CHARACTER)
(0x03000000):Encoding = 546 (INTEGER)
(0x03000000):CodedCharSetId = 437 (INTEGER)
(0x03000000):Transactional = TRUE (BOOLEAN)
(0x03000000):Persistence = FALSE (BOOLEAN)
(0x03000000):CreationTime = GMTTIMESTAMP '2009-11-13 20:16:28.390' (GMTTIMESTAMP)
(0x03000000):ExpirationTime = -1 (INTEGER)
(0x03000000):Priority = 0 (INTEGER)
(0x03000000):ReplyIdentifier = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000):ReplyProtocol = 'MQ' (CHARACTER)
(0x03000000):Topic = NULL
(0x03000000):Topic = NULL
(0x03000000):ContentType = '' (CHARACTER)
(0x03000000):IdentitySourceType = '' (CHARACTER)
(0x03000000):IdentitySourceToken = '' (CHARACTER)
(0x03000000):IdentitySourcePassword = '' (CHARACTER)
(0x03000000):IdentitySourceIssuedBy = '' (CHARACTER)
(0x03000000):IdentityMappedType = '' (CHARACTER)
(0x03000000):IdentityMappedToken = '' (CHARACTER)
(0x03000000):IdentityMappedPassword = '' (CHARACTER)
(0x03000000):IdentityMappedIssuedBy = '' (CHARACTER)
)
(0x01000000):MQMD = ( ['MQHMD' : 0x8b1db30]
(0x03000000):SourceQueue = 'COLL_EXPIRE1' (CHARACTER)
(0x03000000):Transactional = TRUE (BOOLEAN)
(0x03000000):Encoding = 546 (INTEGER)
(0x03000000):CodedCharSetId = 437 (INTEGER)
(0x03000000):Format = ' ' (CHARACTER)
(0x03000000):Version = 2 (INTEGER)
(0x03000000):Report = 0 (INTEGER)
(0x03000000):MsgType = 8 (INTEGER)
(0x03000000):Expiry = -1 (INTEGER)
(0x03000000):Feedback = 0 (INTEGER)
(0x03000000):Priority = 0 (INTEGER)
(0x03000000):Persistence = 0 (INTEGER)
(0x03000000):MsgId = X'414d512053562e42524b2e514d4752209044f44a20027525' (BLOB)
(0x03000000):CorrelId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000):BackoutCount = 0 (INTEGER)
(0x03000000):ReplyToQ = ' ' (CHARACTER)
(0x03000000):ReplyToQMgr = 'SV.BRK.QMGR ' (CHARACTER)
(0x03000000):UserIdentifier = 'TCS134 ' (CHARACTER)
(0x03000000):AccountingToken = X'16010515000000782e9d13833d2b4607e53b2beb03000000000000000000000b' (BLOB)
(0x03000000):ApplIdentityData = ' ' (CHARACTER)
(0x03000000):PutApplType = 11 (INTEGER)
(0x03000000):PutApplName = 's\TCS134\Desktop\rfhutil.exe' (CHARACTER)
(0x03000000):PutDate = DATE '2009-11-13' (DATE)
(0x03000000):PutTime = GMTTIME '20:16:28.390' (GMTTIME)
(0x03000000):ApplOriginData = ' ' (CHARACTER)
(0x03000000):GroupId = X'000000000000000000000000000000000000000000000000' (BLOB)
(0x03000000):MsgSeqNumber = 1 (INTEGER)
(0x03000000):Offset = 0 (INTEGER)
(0x03000000):MsgFlags = 0 (INTEGER)
(0x03000000):OriginalLength = -1 (INTEGER)
)
(0x01000021):MRM = ( ['mrm' : 0x8ade6a8]
(0x0100001B):FullMsg = ( ['mrm' : 0x8b22640]
(0x01000013):Name = (
(0x0300000B):First = 'Sarath' (CHARACTER)
(0x0300000B):Id = '193609' (CHARACTER)
(0x0300000B):Company = 'Update1' (CHARACTER)
)
)
)
)
********** |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Nov 13, 2009 12:34 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
sarathmattam |
Posted: Fri Nov 13, 2009 12:49 pm Post subject: |
|
|
Voyager
Joined: 05 Sep 2008 Posts: 94
|
Am sorry Guys .. here is the user trace ..
UserTrace BIP5494I: The logical tree is now being matched to the message model.
UserTrace BIP5564I: Item ''FullMsg'' from the logical tree has matched with the message model as ''[MESSAGE]_FullMsg/[MESSAGE]_FullMsg''.
UserTrace BIP5564I: Item ''Name'' from the logical tree has matched with the message model as ''[MESSAGE]_FullMsg/[MESSAGE]_FullMsg/Name(1 of unbounded)''.
UserTrace BIP5564I: Item ''First'' from the logical tree has matched with the message model as ''[MESSAGE]_FullMsg/[MESSAGE]_FullMsg/Name(1 of unbounded)/First''.
UserTrace BIP5564I: Item ''Id'' from the logical tree has matched with the message model as ''[MESSAGE]_FullMsg/[MESSAGE]_FullMsg/Name(1 of unbounded)/Id''.
UserTrace BIP5564I: Item ''Company'' from the logical tree has matched with the message model as ''[MESSAGE]_FullMsg/[MESSAGE]_FullMsg/Name(1 of unbounded)/Company''.
UserTrace BIP5605W: An open or open-defined element ''FullMsg'' has occurred inside a type or group of data element separation ''VARIABLE LENGTH ELEMENTS DELIMITED''.
This data element separation type cannot contain open or open-defined elements.
The data has been discarded, and the message will be written without it.
Confirm that the element matches that in the model, and that it is correctly described in the flow.
Collect debug-level user trace for more information on how the model is being matched.
UserTrace BIP2638I: The MQ output node 'BlobToMRMMessageFlw.MQOutput' attempted to write a message to queue ''COLL_EXPIRE2'' connected to queue manager ''''. The MQCC was '0' and the MQRC was '0'.
UserTrace BIP2622I: Message successfully output by output node 'BlobToMRMMessageFlw.MQOutput' to queue ''COLL_EXPIRE2'' on queue manager ''''. |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Nov 13, 2009 11:58 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Quote: |
UserTrace BIP5605W: An open or open-defined element ''FullMsg'' has occurred inside a type or group of data element separation ''VARIABLE LENGTH ELEMENTS DELIMITED''.
This data element separation type cannot contain open or open-defined elements.
The data has been discarded, and the message will be written without it.
Confirm that the element matches that in the model, and that it is correctly described in the flow.
Collect debug-level user trace for more information on how the model is being matched.
|
That seems to be your problem. One or more bits of your message model is incorretly configured. _________________ 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 |
|
 |
kimbert |
Posted: Sat Nov 14, 2009 11:14 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5543 Location: Southampton
|
I agree with smdavies99.
BUT I do not understand why you are using the MRM parser to *write* a BLOB. Presumably, you are still using ASBITSTREAM. Why do you think you need to do that? Please explain again what you are trying to do, and why.
Finally, and this is *nothing* to do with your current problem:
- 'Variable Length Elements Delimited' is probably not the ideal setting. It often gets used when 'All Elements Delimited' would have been more correct. |
|
Back to top |
|
 |
|
|
|
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
|
|
|
|