|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
type initializer for "IBM.WMQ.MQTrace" threw an ex |
« View previous topic :: View next topic » |
Author |
Message
|
dunesand |
Posted: Wed Apr 07, 2004 11:52 pm Post subject: type initializer for "IBM.WMQ.MQTrace" threw an ex |
|
|
 Acolyte
Joined: 17 Nov 2003 Posts: 65 Location: Cambridgeshire, UK
|
----------- 09.00
on doing a search i found someone else has this problem, but they don't appear to have any responses.
http://www-106.ibm.com/developerworks/forums/dw_thread.jsp?forum=280&thread=32655&cat=9
I basically have a application (c# .net) that connects to MQ (5.3 CSD05 Win2k via amqmdnet.dll), which I've configured and run fine on half a dozen servers no problem. Yesterday I went about the normal setup procedure that I've done a hundred times before, but this error was thrown. I can't seem to get the exception to be thrown in an area where I can get the error RC.(i.e. the IBMMQ object points to null so i can't retrieve it).
I can put and get messages on the same queues that previously fail using some basic c# tools i wrote a while back that also use the .Net API provided in CSD05.
Has anyone seen this before?
Is it a problem with my application (which runs on other machines with no problems), or with the server setup(which i can put and get to queues via another tool i also wrote)?
------- 09.41
i wrote in some debug information, and it appears that this exception (note, not an MQException) is thrown when calling
Code: |
m_QMgr = new MQQueueManager( qmgr ); |
There is therefor no reason code to check against, because the exception does not contain this info, and the queue manager object is null. There is no session object in this implementation either...
Code: |
try
{
// code here that creates the queue manager
}
catch ( MQException ex ) // skips this catch
{
m_szExceptionError = "MQException error in IBM::Initialise(" + connectionString + ") " + ex.Message + " : " + ex.ReasonCode;
DebugLog.WriteLog( m_szExceptionError );
return eResult.RES_ERROR;
}
catch ( Exception ex ) // caught here by a generic Exception object
{
m_szExceptionError = "Exception error in IBM::Initialise(" + connectionString + ") " + ex.Message;
if ( m_QMgr != null )
m_szExceptionError += " : " + m_QMgr.ReasonCode;
DebugLog.WriteLog( m_szExceptionError );
return eResult.RES_ERROR;
} |
Thanks for your time.
Daniel.[/code] |
|
Back to top |
|
 |
dunesand |
Posted: Thu Apr 08, 2004 4:03 am Post subject: |
|
|
 Acolyte
Joined: 17 Nov 2003 Posts: 65 Location: Cambridgeshire, UK
|
Although the version says CSD05, I believe the person who installed it bypassed the locked files on this server, and as a result, some files which were changed for the .Net API were not updated.
------ update
I've reinstalled CSD05, properly, making sure all the necessary files were replaced and I still get the same problem.
Any ideas?
Thanks.
Dan. |
|
Back to top |
|
 |
JasonE |
Posted: Mon Apr 26, 2004 4:15 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
If you havent solved this, are you sure you have re-registered the new version in the global assembly cache (gacutil -i amqmdnet.dll), as it sounds so similar to the problem you would get if you had an old version being picked up during runtime. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|