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 » Java Compute Node, Exception Handling and Resource Bundles

Post new topic  Reply to topic
 Java Compute Node, Exception Handling and Resource Bundles « View previous topic :: View next topic » 
Author Message
jboller001
PostPosted: Wed Jul 19, 2006 8:04 am    Post subject: Java Compute Node, Exception Handling and Resource Bundles Reply with quote

Apprentice

Joined: 31 May 2006
Posts: 40

I'm trying to create a user defined message catalog for storing exception messages. I'm trying to get around having to create a DLL and Unix XPG4 catalog by using a Java Resource Bundle. I think I'm close but I'm having the following problem.

1. I created the following MYCatalog.properties file with the contents:

1002: MYCatalog1002I: \
Exception Event generated during message transformation. Additional information : ''{0}'' ''{1}''.

2. I added the properties file to the \IBM\MQSI\6.0\messages directory and to the jplugin2.jar file.

3. I excecute the following code from a Java Compute Node:

throw new MbUserException(this.getClass().getName), "evaluate", "MYCatalog", "1002", "Error", new Object[] {"Test","Test Data"});

4. Trace Output:

ExceptionList tree: (
(0x01000000):RecoverableException = (
(0x03000000):File = 'F:\build\S600_P\src\DataFlowEngine\PluginInterface\ImbJniNode.cpp'
(0x03000000):Line = 922
(0x03000000):Function = 'ImbJniNode::evaluate'
(0x03000000):Type = 'ComIbmJniNode'
(0x03000000):Name = 'ExceptionCatalogTest#FCMComposite_1_5'
(0x03000000):Label = 'ExceptionCatalogTest.JavaCompute'
(0x03000000):Catalog = 'BIPv600'
(0x03000000):Severity = 3
(0x03000000):Number = 2230
(0x03000000):Text = 'Caught exception and rethrowing'
(0x01000000):UserException = (
(0x03000000):File = 'F:\build\S600_P\src\DataFlowEngine\PluginInterface\com_ibm_broker_plugin_CMbService.cpp'
(0x03000000):Line = 1429
(0x03000000):Function = 'ImbJavaExceptionUtils::userMbExceptionToNativeException'
(0x03000000):Type = ''
(0x03000000):Name = ''
(0x03000000):Label = ''
(0x03000000):Catalog = 'BIPv600'
(0x03000000):Severity = 3
(0x03000000):Number = 4367
(0x03000000):Text = 'Unhandled exception in plugin method'
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'evaluate'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'JavaCompute'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = '<com.ibm.broker.plugin.MbUserException class:ExceptionCatalogTest_JavaCompute method:evaluate source:MYCatalog key:1002 message: [MYCatalog:1002]MYCatalog1002I: Exception Event generated during message transformation. Additional information : 'Test' 'Test Data'.: >'
)
(0x01000000):UserException = (
(0x03000000):File = 'F:\build\S600_P\src\DataFlowEngine\PluginInterface\com_ibm_broker_plugin_CMbService.cpp'
(0x03000000):Line = 1448
(0x03000000):Function = 'ImbJavaExceptionUtils::userMbExceptionToNativeException'
(0x03000000):Type = ''
(0x03000000):Name = ''
(0x03000000):Label = ''
(0x03000000):Catalog = 'BIPv600'
(0x03000000):Severity = 3
(0x03000000):Number = 4394
(0x03000000):Text = 'Unhandled exception in plugin method'
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'com.ibm.broker.plugin.MbUserException'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'ExceptionCatalogTest_JavaCompute'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'evaluate'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'ExceptionCatalogTest_JavaCompute.java'
)
(0x01000000):Insert = (
(0x03000000):Type = 2
(0x03000000):Text = '33'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = ''
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'MYCatalog'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = '1002'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'Test'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'Test Data'
)
)
)
)
)


5. Based on the following Text from the Exception List I can see that the broker is able to load my properties file and format the message correctly: (0x03000000):Text = '<com.ibm.broker.plugin.MbUserException class:ExceptionCatalogTest_JavaCompute method:evaluate source:MYCatalog key:1002 message: [MYCatalog:1002]MYCatalog1002I: Exception Event generated during message transformation. Additional information : 'Test' 'Test Data'.: >'

So my question is why is this being shown as an unhandled exception in plugin method? The catalog is still showing as BIPVv600 instead of MYCatalog so I'm assuming I'm missing something here.
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 » Java Compute Node, Exception Handling and Resource Bundles
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.