Author |
Message
|
jeevan |
Posted: Sun Dec 10, 2006 8:20 pm Post subject: Accessing ExceptionList in Trace Node |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
Can we access any other child except ${ExceptionList} in Trace Node? If yes, how? I tried {ExceptionList.RecoverableException.Text} for example and it did not work.
Does it mean only the root ( ExceptionList) is accessing from within TraceNode?
Thank you for your help |
|
Back to top |
|
 |
vk |
Posted: Sun Dec 10, 2006 9:15 pm Post subject: |
|
|
Partisan
Joined: 20 Sep 2005 Posts: 302 Location: Houston
|
Why do you want to access this in Trace Node? When you give ${ExceptionList}, the child trees will also be shown in the trace file.
Child trees can be accessed explicitly in the compute nodes.
Regards,
VK. |
|
Back to top |
|
 |
jbanoop |
Posted: Sun Dec 10, 2006 10:05 pm Post subject: |
|
|
Chevalier
Joined: 17 Sep 2005 Posts: 401 Location: SC
|
u shld use compute node and set an environment variable with the error message u want to be printed ..
then in trace node you give ${variablename}.
Anoop |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 11, 2006 4:39 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What does it mean "did not work"?
You can do ${Root.Child.Child}, so you should be able to do ${ExceptionList.Child.Child} - but maybe you didn't get your children right. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jeevan |
Posted: Mon Dec 11, 2006 6:54 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
This is the strcture of the exception tree structure as given in document.
Quote: |
ExceptionList {
RecoverableException = { 1
File = 'f:/build/argo/src/DataFlowEngine/ImbDataFlowNode.cpp'
Line = 538
Function = 'ImbDataFlowNode::createExceptionList'
Type = 'ComIbmComputeNode'
Name = '0e416632-de00-0000-0080-bdb4d59524d5'
Label = 'mf1.Compute1'
Text = 'Node throwing exception'
|
If this so, why can not do the follwoing in TraceNode?
${ExceptionList.RecoverableException.Text},
However, when I gave that expression in TraceNode it was displayed as it is in the log produced by tracenode. I am aware that I can not manipulate the exceptionList tree in Tracenode but can not even we use it?
thanks |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Dec 11, 2006 6:56 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
jeevan wrote: |
However, when I gave that expression in TraceNode it was displayed as it is in the log produced by tracenode. |
What does that mean?
What do you get when you put in that Expression?
What do you expect to get? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
jeevan |
Posted: Mon Dec 11, 2006 7:13 am Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
I mean when I gave that pattern in tracenode I got the same patter displayed in output instead of the value of that pattern.
I got ExceptionList.RecoverableException.Text in the out put. I was expecting some value like [Text = 'Node throwing exception'] as given in the document. Even, if there was not an exception and the value of that attribute wan null, it should be zero/null instead of displaying the pattern itself. Is my expectation wrong?
thanks |
|
Back to top |
|
 |
elvis_gn |
Posted: Mon Dec 11, 2006 7:17 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi jeevan,
Did you give the '$' before the path and put the path inside flower brackets...you would get the text you entered when these were missing...
Regards. |
|
Back to top |
|
 |
jeevan |
Posted: Mon Dec 11, 2006 5:57 pm Post subject: |
|
|
Grand Master
Joined: 12 Nov 2005 Posts: 1432
|
This is the pattern in Tracenode
${Root.MQMD.MsgId}
${ExceptionList} ${ExceptionList.RecoverableException.Text} |
|
Back to top |
|
 |
|