|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
ExceptionList UTF-16 ? |
« View previous topic :: View next topic » |
Author |
Message
|
MiLi |
Posted: Thu Mar 01, 2007 7:10 am Post subject: ExceptionList UTF-16 ? |
|
|
Acolyte
Joined: 07 Oct 2005 Posts: 51
|
Hi
I happened to notice an error in my errorhandler
When I send in a "wrong" message to a flow that got Validation(mrm) on Input the message will go to the failure terminal directly.
I got a compute node on the failure path to capture the ExceptionList and produce an xml log message with the ExceptionList.
Suddenly I got an exception in my failure path and no log = big issue !!
When I debuged it I noticed it failed to parse a character in the ExceptionList. Is the ExceptionList UTF-16, the character is "1a05"
<Insert>
<Type>5</Type>
<Text>4d442020020000000000000008000000ffffffff0000000022020000b501000020202020202020200000000000000000414d51205742524b365f44454641554c... (data of len Ԛ truncated)</Text>
</Insert>
I think its the Text tag and the "?" Character !
how should you handle this, any best practises ? _________________ IBM Certified System Administrator - WebSphere MQ V6.0
IBM Instructor - WebSphere MQ, WebSphere Message Broker |
|
Back to top |
|
 |
MiLi |
Posted: Thu Mar 01, 2007 7:24 am Post subject: |
|
|
Acolyte
Joined: 07 Oct 2005 Posts: 51
|
Ok, right know I got it to work with CCSID 1208. What do you think ?
Code: |
DECLARE msgBLOB2 BLOB;
SET Environment.Log.Body.Text = 'ERROR';
create lastchild of Environment.Variables.ExcepionList Domain 'XML' FROM InputExceptionList;
DECLARE myref REFERENCE TO Environment.Variables.ExcepionList;
SET msgBLOB2 = ASBITSTREAM(myref,InputRoot.MQMD.Encoding,1208,'','','',FolderBitStream);
SET Environment..Log.Body.Text = CAST(msgBLOB2 AS CHARACTER CCSID 1208); |
By the way, how can I put the exceptionlist in a CDATA tag instead with the original format (<,>,&) ? _________________ IBM Certified System Administrator - WebSphere MQ V6.0
IBM Instructor - WebSphere MQ, WebSphere Message Broker |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|