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 Forum IndexMultiphase CommitFailed to initialize XMSFactoryFactory

Post new topicReply to topic
Failed to initialize XMSFactoryFactory View previous topic :: View next topic
Author Message
PostPosted: Mon Sep 28, 2015 10:43 pm Post subject: Failed to initialize XMSFactoryFactory Reply with quote


Joined: 28 Sep 2015
Posts: 1

I am new to IBM WebSphere MQ. I am trying to connect to MQ and getting below error.

Exception:Fatal error. Failed to initialize XMSFactoryFactory
Stack Trace: at IBM.XMS.XMSFactoryFactory.GetXmsFactory(Int32 connectionType)
at IBM.XMS.XMSFactoryFactory.GetInstance(Int32 connectionType)
at Mta.ACBPS.Mta.Crm.Plugins.PostMtaMessageCreate.GetConnection(IOrganizationService service, mta_mqconnection mqConnectionRecord, ITracingService tracer)
Inner Exception:System.InvalidCastException: Unable to cast object of type 'IBM.XMS.Client.Impl.XmsFactoryFactoryImpl' to type 'IBM.XMS.XMSFactoryFactory'.

The source code is

var connectionfactory = (IConnectionFactory)null;
var factoryfactory = XMSFactoryFactory.GetInstance(XMSC.CT_WMQ);
connectionfactory = factoryfactory.CreateConnectionFactory();
connectionfactory.SetStringProperty(XMSC.WMQ_QUEUE_MANAGER, mqConnectionRecord.mta_name);
connectionfactory.SetStringProperty(XMSC.WMQ_HOST_NAME, mqConnectionRecord.mta_HostIP);
connectionfactory.SetIntProperty(XMSC.WMQ_PORT, int.Parse(mqConnectionRecord.mta_Port));
connectionfactory.SetStringProperty(XMSC.WMQ_CHANNEL, mqConnectionRecord.mta_Channel);
connectionfactory.SetIntProperty(XMSC.WMQ_BROKER_VERSION, XMSC.WMQ_BROKER_V2);

Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1 Forum IndexMultiphase CommitFailed to initialize XMSFactoryFactory
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 All rights reserved.