Posted: Fri Feb 27, 2009 3:40 am Post subject: Issue with JavaComputeNodeSampleFlowProject
Centurion
Joined: 03 Apr 2006 Posts: 101 Location: USA
I have deployed the JavaComputeNodeSampleFlow Project from the broker Samples Gallery. The subject here is the RoutingFileNodeFlow. I've added a trace node to the end of each terminal of the JavaCompute node. I've run a quick test deliberately injecting a faulty message to invoke the following logErrorGenerateException method written in that java code.
Code:
if(routingValue.length() == 0)
{
System.out.println("routing value is empty");
logErrorGenerateException(this,
methodName,
RoutingFileNodeMessages.MESSAGE_SOURCE,
RoutingFileNodeMessages.NO_VALUE,
"Routing value is empty",
new String[] {});
}
I do get the following in the Event Viewer
( WBRK61_DEFAULT_BROKER.FirstAccess ) Java node error: '[com.ibm.broker.javacompute.samples.RoutingFileNode$RoutingFileNodeMessages:NO_VALUE]The routing value doesnt exist or was empty.: Routing value is empty.
All is well until I checked the trace file;
Here is what it contains:
Text = '<com.ibm.broker.plugin.MbUserException class:com.ibm.broker.javacompute.samples.RoutingFileNode method:evaluate source:com.ibm.broker.javacompute.samples.RoutingFileNode$RoutingFileNodeMessages key:NO_VALUE message: Unable to resolve message: Source: com.ibm.broker.javacompute.samples.RoutingFileNode$RoutingFileNodeMessagesKey: NO_VALUE >' (CHARACTER)
How can it not find the value for the NO_VALUE key? And seems kind of absurd because that value "The routing value doesn't exist or was empty." was retrieved and thrown as an error and shown in the EventViewer.
Is this the expected behavior? or is something going awfully wrong here?
My gut feel says it shudn't have thrown that error "Unable to resolve message".
I will try to decompile the jplugin2.jar and run this in debug mode to see what's happening behind the scenes. But meanwhile, any enlightened soul on this forum has a clue or handle onto this behavior !!
Please share your thoughts. _________________ LIFE is a series of complex calculations, somewhere multiplied by ZERO.
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