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 » Broker Doesn't Recognize User Define Catalog DLL

Post new topic  Reply to topic
 Broker Doesn't Recognize User Define Catalog DLL « View previous topic :: View next topic » 
Author Message
jboller001
PostPosted: Tue Jul 25, 2006 9:31 am    Post subject: Broker Doesn't Recognize User Define Catalog DLL Reply with quote

Apprentice

Joined: 31 May 2006
Posts: 40

Yes, another post regarding the creation of a user defined message catalog. I'm beginning to think that nobody has ever successfully done this...

I went through the following steps:

1. Created the following .mc file:
MessageIdTypedef=DWORD

SeverityNames=(Success=0x0:STATUS_SEVERITY_SUCCESS
Informational=0x1:STATUS_SEVERITY_INFORMATIONAL
Warning=0x2:STATUS_SEVERITY_WARNING
Error=0x3:STATUS_SEVERITY_ERROR
)


FacilityNames=(System=0x0:FACILITY_SYSTEM
Runtime=0x2:FACILITY_RUNTIME
Stubs=0x3:FACILITY_STUBS
Io=0x4:FACILITY_IO_ERROR_CODE
)

LanguageNames=(English=1:MSG00001)

; // The following are message definitions.

MessageId=1001
Severity=Error
Facility=Runtime
SymbolicName=MSG_BAD_PARM1
Language=English
Exception Event generated during message transformation. Additional information : %1 '%2.
.

MessageId=1002
Severity=Error
Facility=Runtime
SymbolicName=MSG_BAD_PARM2
Language=English
Lookup from cross reference service returned a null value. Source System: %1 Source Element: %2 Source Code: %3.
.

2. Created a DLL named: imbmsgvOTDA.dll and added to the following folder: C:\Program Files\IBM\MQSI\6.0\messages

3. Added DLL to the registry
KEY = OTDA
EventMessageFile=C:\Program Files\IBM\MQSI\6.0\messages\imbmsgvOTDA.dll
TypesSupported=7

4. Created an OTDA.properties file containing the following:
1001: MSG_BAD_PARM1: \
Exception Event generated during message transformation. Additional information : ''{0}'' ''{1}''.

1002: MSG_BAD_PARM2: \
Lookup from cross reference service returned a null value. Source System: ''{0}'' Source Element: ''{1}'' Source Code: ''{2}''.

5. Placed properties file in the following folder: C:\Program Files\IBM\MQSI\6.0\messages

6. From Java Compute Node executed the following statement:
throw new MbUserException(this.getClass().getName(), "evaluate", "OTDA", "1001", "Error", new Object[] {"OTDA Catalog Test","Test Data"});

7. Resulting ExceptionList Tree:
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:OTDA key:1001 message: [OTDA:1001]MSG_BAD_PARM1: Exception Event generated during message transformation. Additional information : 'OTDA Catalog Test' 'Test Data'.: Error >'
)
(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 = 'Error'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'OTDA'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = '1001'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'OTDA Catalog Test'
)
(0x01000000):Insert = (
(0x03000000):Type = 5
(0x03000000):Text = 'Test Data'
)
)
)
)
)


Does anyone have any ideas on why this is showing up as an Unhandled Exception? The .properties file is being read and the message looks ok but it seems like the broker isn't able to detect the new catalog dll.
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 » Broker Doesn't Recognize User Define Catalog DLL
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.