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 » Runtime error while connecting to mqseries from powerbuilder

Post new topic  Reply to topic
 Runtime error while connecting to mqseries from powerbuilder « View previous topic :: View next topic » 
Author Message
saravanan_ilyan
PostPosted: Sun Apr 22, 2007 8:07 pm    Post subject: Runtime error while connecting to mqseries from powerbuilder Reply with quote

Newbie

Joined: 27 Feb 2007
Posts: 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
View user's profile Send private message
Vitor
PostPosted: Mon Apr 23, 2007 12:56 am    Post subject: Re: Runtime error while connecting to mqseries from powerbui Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 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
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 » Runtime error while connecting to mqseries from powerbuilder
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.