|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can't access MQ Topic with .net classes |
« View previous topic :: View next topic » |
Author |
Message
|
carlgeorge |
Posted: Thu Jun 25, 2009 6:56 am Post subject: Can't access MQ Topic with .net classes |
|
|
Newbie
Joined: 25 Jun 2009 Posts: 1
|
I can connect just fine to the topic using the XMS classes and can connect to a Queue with the QueueManager just fine.
We are using V7 with service pack 2 installed.
When using IBM MQ classes for .net, to access a topic :
mTopic = mQueueManager.AccessTopic(mQueueName, topicObject, destType,unmanagedDestOpenOptions);
I get the following error:
System.ArgumentOutofRangeException
"Requested range extends past the end of the array."
at System.Runtime.InteropServices.Marshal.CopyToManaged(IntPtr source, Object destination, Int32 startIndex, Int32 length)
at IBM.WMQ.MQObjectDescriptor.WriteStruct(Byte[] b, Int32 Offset)
at IBM.WMQ.MQClientConnector.MQOPEN(Int32 hConn, MQObjectDescriptor& od, Int32 options, Int32& hObj, Int32& compCode, Int32& reason)
at IBM.WMQ.MQDestination.Open(MQObjectDescriptor od)
at IBM.WMQ.MQTopic.OpenForPublication(String topicName)
at IBM.WMQ.MQTopic..ctor(MQQueueManager qMgr, String topicName, String topicObject, Int32 contact admin, Int32 options, String altUserId)
at IBM.WMQ.MQTopic..ctor(MQQueueManager qMgr, String topicName, String topicObject, Int32 contact admin, Int32 options)
at IBM.WMQ.MQQueueManager.AccessTopic(String topicName, String topicObject, Int32 contact admin, Int32 options)
at OpenSpan.Messaging.IBMMQ.IBMMQPublisher.Send(String strInputMsg) in C:\src\cgeorge\OpenSpan_Int_Dev\Framework\OpenSpan.Messaging.IBMMQ\IBMMQPublisher.cs:line 118
at WindowsFormsApplication1.Form1.button1_Click(Object sender, EventArgs e) in C:\src\cgeorge\OpenSpan_Int_Dev\WindowsFormsApplication1\Form1.cs:line 38
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at WindowsFormsApplication1.Program.Main() in C:\src\cgeorge\OpenSpan_Int_Dev\WindowsFormsApplication1\Program.cs:line 18
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart() |
|
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
|
|
|
|