ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Issue with JavaComputeNodeSampleFlowProject

Post new topic  Reply to topic
 Issue with JavaComputeNodeSampleFlowProject « View previous topic :: View next topic » 
Author Message
paranoid221
PostPosted: Fri Feb 27, 2009 3:40 am    Post subject: Issue with JavaComputeNodeSampleFlowProject Reply with quote

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:

Code:
( ['MQROOT' : 0x943c870]
  (0x01000000:Name):RecoverableException = (
    (0x03000000:NameValue):File          = 'F:\build\S610_P\src\DataFlowEngine\ImbDataFlowNode.cpp' (CHARACTER)
    (0x03000000:NameValue):Line          = 957 (INTEGER)
    (0x03000000:NameValue):Function      = 'ImbDataFlowNode::createExceptionList' (CHARACTER)
    (0x03000000:NameValue):Type          = 'ComIbmJavaComputeNode' (CHARACTER)
    (0x03000000:NameValue):Name          = 'RoutingFileNodeFlow#FCMComposite_1_4' (CHARACTER)
    (0x03000000:NameValue):Label         = 'RoutingFileNodeFlow.JavaCompute' (CHARACTER)
    (0x03000000:NameValue):Catalog       = 'BIPv610' (CHARACTER)
    (0x03000000:NameValue):Severity      = 3 (INTEGER)
    (0x03000000:NameValue):Number        = 2230 (INTEGER)
    (0x03000000:NameValue):Text          = 'Node throwing exception' (CHARACTER)
    (0x01000000:Name     ):UserException = (
      (0x03000000:NameValue):File          = 'F:\build\S610_P\src\DataFlowEngine\PluginInterface\com_ibm_broker_plugin_CMbService.cpp' (CHARACTER)
      (0x03000000:NameValue):Line          = 1643 (INTEGER)
      (0x03000000:NameValue):Function      = 'ImbJavaExceptionUtils::userMbExceptionToNativeException' (CHARACTER)
      (0x03000000:NameValue):Type          = '' (CHARACTER)
      (0x03000000:NameValue):Name          = '' (CHARACTER)
      (0x03000000:NameValue):Label         = '' (CHARACTER)
      (0x03000000:NameValue):Catalog       = 'BIPv610' (CHARACTER)
      (0x03000000:NameValue):Severity      = 3 (INTEGER)
      (0x03000000:NameValue):Number        = 4367 (INTEGER)
      (0x03000000:NameValue):Text          = 'Unhandled exception in plugin method' (CHARACTER)
      (0x01000000:Name     ):Insert        = (
        (0x03000000:NameValue):Type = 5 (INTEGER)
        (0x03000000:NameValue):Text = 'evaluate' (CHARACTER)
      )
      (0x01000000:Name     ):Insert        = (
        (0x03000000:NameValue):Type = 5 (INTEGER)
        (0x03000000:NameValue):Text = 'JavaCompute' (CHARACTER)
      )
      (0x01000000:Name     ):Insert        = (
        (0x03000000:NameValue):Type = 5 (INTEGER)
        (0x03000000:NameValue):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)
      )
      (0x01000000:Name     ):UserException = (
        (0x03000000:NameValue):File     = 'F:\build\S610_P\src\DataFlowEngine\PluginInterface\com_ibm_broker_plugin_CMbService.cpp' (CHARACTER)
        (0x03000000:NameValue):Line     = 1662 (INTEGER)
        (0x03000000:NameValue):Function = 'ImbJavaExceptionUtils::userMbExceptionToNativeException' (CHARACTER)
        (0x03000000:NameValue):Type     = '' (CHARACTER)
        (0x03000000:NameValue):Name     = '' (CHARACTER)
        (0x03000000:NameValue):Label    = '' (CHARACTER)
        (0x03000000:NameValue):Catalog  = 'BIPv610' (CHARACTER)
        (0x03000000:NameValue):Severity = 3 (INTEGER)
        (0x03000000:NameValue):Number   = 4394 (INTEGER)
        (0x03000000:NameValue):Text     = 'Unhandled exception in plugin method' (CHARACTER)
        (0x01000000:Name     ):Insert   = (
          (0x03000000:NameValue):Type = 5 (INTEGER)
          (0x03000000:NameValue):Text = 'com.ibm.broker.plugin.MbUserException' (CHARACTER)
        )
        (0x01000000:Name     ):Insert   = (
          (0x03000000:NameValue):Type = 5 (INTEGER)
          (0x03000000:NameValue):Text = 'com.ibm.broker.javacompute.samples.RoutingFileNode' (CHARACTER)
        )
        (0x01000000:Name     ):Insert   = (
          (0x03000000:NameValue):Type = 5 (INTEGER)
          (0x03000000:NameValue):Text = 'evaluate' (CHARACTER)
        )
        (0x01000000:Name     ):Insert   = (
          (0x03000000:NameValue):Type = 5 (INTEGER)
          (0x03000000:NameValue):Text = 'RoutingFileNode.java' (CHARACTER)
        )
        (0x01000000:Name     ):Insert   = (
          (0x03000000:NameValue):Type = 2 (INTEGER)
          (0x03000000:NameValue):Text = '80' (CHARACTER)
        )
        (0x01000000:Name     ):Insert   = (
          (0x03000000:NameValue):Type = 5 (INTEGER)
          (0x03000000:NameValue):Text = 'Routing value is empty' (CHARACTER)
        )
        (0x01000000:Name     ):Insert   = (
          (0x03000000:NameValue):Type = 5 (INTEGER)
          (0x03000000:NameValue):Text = 'com.ibm.broker.javacompute.samples.RoutingFileNode$RoutingFileNodeMessages' (CHARACTER)
        )
        (0x01000000:Name     ):Insert   = (
          (0x03000000:NameValue):Type = 5 (INTEGER)
          (0x03000000:NameValue):Text = 'NO_VALUE' (CHARACTER)
        )
      )
    )
  )
)


What is alarming is the following:

Code:
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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Issue with JavaComputeNodeSampleFlowProject
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.