|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| Runtime error while connecting to mqseries from powerbuilder | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | saravanan_ilyan | 
			  
				|  Posted: Sun Apr 22, 2007 8:07 pm    Post subject: Runtime error while connecting to mqseries from powerbuilder |   |  |  
		  | Newbie
 
 
 Joined: 27 Feb 2007Posts: 4
 
 
 | 
			  
				| Hi, I am getting the following runtime error while executing the below code in power builder
 
 The error code :  error calling the external object function accessqueuemaager at line  in open event of windowname.
 
 The error number is :  R0035(System error)
 
 
 OLEObject MQS, QM, Q, Mw, Mr, PO , GO
 String ls_mqmgr, ls_s
 
 MQS = CREATE OLEObject   // MQSeries Session
 QM = CREATE OLEObject    // QueueManager
 Q = CREATE OLEObject     // Queue
 MW = CREATE OLEObject    // Message Written
 MR = CREATE OLEObject    // Message Read
 PO = CREATE OLEOBject    // Put options
 GO = CREATE OLEOBject    // Get options
 MQS.ConnectToNewObject("MQAX200.MqSession") // see note 1
 ls_mqmgr = "QM_Local"// see note 2
 QM = MQS.AccessQueueManager(ls_mqmgr)
 Q = QM.AccessQueue("PRICING.INQUIRY.RULES.REQUEST",1 + 16)  // see note 3
 // WRITE
 MW = MQS.AccessMessage
 MW.MessageData =  "hello"    +      string  (cpu())
 PO = MQS.AccessPutMessageOptions()
 Q.Put( MW,  PO )
 // READ
 MR = MQS.AccessMessage()
 MR.MessageIdHex = MR.MessageIdHex    // see note 4
 GO = MQS.AccessGetMessageOptions()
 Q.Get( MR,  GO)
 ls_s = MR.ReadString(MR.MessageLength)
 MessageBox("MQSeries", ls_s)
 Q.close()
 QM.disconnect()
 
 
 pls help me as soon as possible as This is very urgent
 
 Thanks,
 Saravanan.p
 |  |  
		  | Back to top |  |  
		  |  |  
		  | Vitor | 
			  
				|  Posted: Mon Apr 23, 2007 12:56 am    Post subject: Re: Runtime error while connecting to mqseries from powerbui |   |  |  
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| 
   
	| saravanan_ilyan wrote: |  
	| The error number is :  R0035(System error) 
 |  
 This is an MQ forum, not a powerbuilder one. Unless there is a powerbuilder person in here we'll need the MQ reason code before we can offer any assistance. Escpecially when the reason is so vague - "system error" could be anything.
 
 We're not psychic (as I think you've been told before). I'm psychotic, but even that doesn't help with your problem!
   
 Don't forget that the problem could be environmental, which is why posting your code is not immediately helpful. Obtain the MQ code and post that.
 _________________
 Honesty is the best policy.
 Insanity is the best defence.
 |  |  
		  | 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
 
 |  |  |  |