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 » IBM MQ API Support » VB6 MQCONNXANY random exception (rzstMQCONNX)

Post new topic  Reply to topic
 VB6 MQCONNXANY random exception (rzstMQCONNX) « View previous topic :: View next topic » 
Author Message
mrpit
PostPosted: Tue Mar 21, 2006 6:59 am    Post subject: VB6 MQCONNXANY random exception (rzstMQCONNX) Reply with quote

Newbie

Joined: 21 Mar 2006
Posts: 5

Hi

I am fairly new to MQ and the API but here goes

using VB6 and MQ API on 5.2.1 windows 2000 server SP4 We are getting random MQConnxAny exceptions of this sort

The application, , generated an application error The error occurred on 03/21/2006 @ 10:44:54.705 The exception generated was c0000005 at address 4EB61283 (rzstMQCONNX)

Now i am using MQconnxany with these settings

Using MQCNOCD structure using defaults from api samples but with these changes

With ConnectOpts.ChannelDef
.ChannelType = MQCHT_CLNTCONN
.TransportType = MQXPT_TCP
.HeartbeatInterval = 1
.ChannelName = ChannelName
.ConnectionName = ConnectionName

.ShortRetryCount = 5
.ShortRetryInterval = 5
.LongRetryCount = 5
.LongRetryInterval = 5
End With

With ConnectOpts.ConnectOpts
.Options = MQCNO_STANDARD_BINDING 'It makes the queue manager immune(protected) to errant(misbehaving) programs
.Version = MQCNO_VERSION_2
End With


I am logging each step of the program and i am finding its the MQconnxany call is the point of failure any help would be appreciated in identifying the problem.

thanks

Mark
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 21, 2006 7:03 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Do you get an MQ Reason Code from the MQCONNXAny call?

Are there errors in the MQ client error logs - or on the MQ server error logs - at the time of exception?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
mrpit
PostPosted: Tue Mar 21, 2006 7:07 am    Post subject: Reply with quote

Newbie

Joined: 21 Mar 2006
Posts: 5

Hi

MQConnexAny never returns as once the exception occurs VB goes down.

The Client Log contains nothing as though no error occured at all and i cant see the server log as thats offsite but i will make a call directly and see if there is anything.

thanks

Mark
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Mar 21, 2006 7:11 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Quote:
using VB6 and MQ API on 5.2.1 windows 2000 server SP4
You've got a terribly old, unsupported version of MQ there. Any chance of upgrading to something current, like mq v5.3 csd 12 or mq v6 csd1? (at least the client part?)
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
mrpit
PostPosted: Tue Mar 21, 2006 7:14 am    Post subject: Reply with quote

Newbie

Joined: 21 Mar 2006
Posts: 5

Hi

To be honest i have no idea why we are using the version we are i shall make some enquires to see if its possible... its a bit of a monolith here and getting things done can take a while so if i can get this verion to work it would be great.

Mark
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Mar 21, 2006 7:20 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Well, its easy enough to download am MQ client from the supportpac pages and see if that helps...

also, the statement:
.Options = MQCNO_STANDARD_BINDING 'It makes the queue manager immune(protected) to errant(misbehaving) programs

has no effect, since you're using the MQ client

also, you might turn on client tracing "runmqtrc" and see if there's anything interesting in there.....
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
mrpit
PostPosted: Tue Mar 21, 2006 7:43 am    Post subject: Reply with quote

Newbie

Joined: 21 Mar 2006
Posts: 5

OK... at the risk of everyone raising eyebrows and tuting loudly
runmqtrc appears to not be installed is this something that comes with a more modern version?
Back to top
View user's profile Send private message
wschutz
PostPosted: Tue Mar 21, 2006 7:47 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

errr... sorry... I meant: strmqtrc
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
mrpit
PostPosted: Tue Mar 21, 2006 8:05 am    Post subject: Reply with quote

Newbie

Joined: 21 Mar 2006
Posts: 5

ok we have some excerts but i dont know if they are relevant

000012C4 (001392) component:23 function:207 length:28 options:0 *pointer:00359008
000012C5 000073 (001392) ---} xcsGetMem (rc=OK)
000012C6 000018 (001392) ---{ xcsCreateThreadMutexSem
000012C7 000031 (001392) ---} xcsCreateThreadMutexSem (rc=OK)
000012C8 000049 (001392) ---{ xcsGetWorkPath
000012C9 000115 (001392) ---} xcsGetWorkPath (rc=OK)
000012CA 003102 (001392) ---{ xcsGetMem
000012CB (001392) component:23 function:207 length:11736 options:0 *pointer:0035A208
000012CC 000077 (001392) ---} xcsGetMem (rc=OK)
Data:-
49 6E 66 6F 72 6D 61 74 69 6F 6E 3A 20 4E 6F 20 : Information: No
64 65 66 61 75 6C 74 20 73 65 74 20 66 6F 72 20 : default set for
45 42 43 44 49 43 20 64 61 74 61 20 63 6F 6E 76 : EBCDIC data conv
65 72 73 69 6F 6E 20 69 6E 20 63 63 73 69 64 2E : ersion in ccsid.
74 62 6C 2E : tbl.
Data:-
49 6E 66 6F 72 6D 61 74 69 6F 6E 3A 20 4E 6F 20 : Information: No
64 65 66 61 75 6C 74 20 73 65 74 20 66 6F 72 20 : default set for
41 53 43 49 49 20 64 61 74 61 20 63 6F 6E 76 65 : ASCII data conve
72 73 69 6F 6E 20 69 6E 20 63 63 73 69 64 2E 74 : rsion in ccsid.t
62 6C 2E : bl.


now at the end of the trace when the app bombed we go this

!! - PROCESS DETACH
00001515 (001392) nthreads=1, nworkers=0, nworkersActive=0 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001516 000108 (001392) ---{ DoExecute
00001517 (001392) ... nthconn=0, nqminfo=0, nthobj=0, ndispenser=0, nholder=0, ncookies=0, nenlisted=0, nthreads=1, nworkers=0
00001518 (001392) ... cthconn=0, cqminfo=0, cthobj=0, cdispenser=0, cholder=0, ccookies=0, cenlisted=0, cthreads=1, cworkers=0
00001519 (001392) ... opstats [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
0000151A (001392) [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
0000151B 000142 (001392) ----{ EnterGCS
0000151C (001392) user='0' count=0 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
0000151D (001392) user='0' count=1 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
0000151E 000077 (001392) ----} EnterGCS (rc=OK)
0000151F (001392) NO QM INFOS [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001520 000043 (001392) ----{ LeaveGCS
00001521 (001392) user='0' count=1 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001522 (001392) user='0' count=0 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001523 000073 (001392) ----} LeaveGCS (rc=OK)
00001524 (001392) [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001525 000041 (001392) ---} DoExecute (rc=OK)
00001526 (001392) NOt about to clean up nthreads=1, nworkers=0, nworkersActive=0 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001527 (001392) nthreads=1, nworkers=0, nworkersActive=0 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001528 000084 (001392) ---{ DoExecute
00001529 (001392) ... nthconn=0, nqminfo=0, nthobj=0, ndispenser=0, nholder=0, ncookies=0, nenlisted=0, nthreads=1, nworkers=0
0000152A (001392) ... cthconn=0, cqminfo=0, cthobj=0, cdispenser=0, cholder=0, ccookies=0, cenlisted=0, cthreads=1, cworkers=0
0000152B (001392) ... opstats [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
0000152C (001392) [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
0000152D 000133 (001392) ----{ EnterGCS
0000152E (001392) user='0' count=0 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
0000152F (001392) user='0' count=1 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001530 000073 (001392) ----} EnterGCS (rc=OK)
00001531 (001392) NO QM INFOS [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001532 000042 (001392) ----{ LeaveGCS
00001533 (001392) user='0' count=1 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001534 (001392) user='0' count=0 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001535 000073 (001392) ----} LeaveGCS (rc=OK)
00001536 (001392) [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001537 000041 (001392) ---} DoExecute (rc=OK)
00001538 (001392) nthreads=1, nworkers=0, nworkersActive=0 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001539 000050 (001392) ---{ TermMQResourceDispenser
0000153A 000017 (001392) ---} TermMQResourceDispenser (rc=OK)
0000153B 000016 (001392) ---{ DeleteGCS
0000153C (001392) user='22' count=0 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
0000153D 000045 (001392) ----{ MCSDeleteCriticalSection
0000153E 000020 (001392) ----} MCSDeleteCriticalSection (rc=OK)
0000153F (001392) user='22' count=0 [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001540 000047 (001392) ---} DeleteGCS (rc=OK)
00001541 (001392) ************************************* [pthconn=0 hconn=-999 hobj=-998 (-998) cc=-997 rc=-996]
00001542 001004 (001392) ---{ MCSDeleteCriticalSection
00001543 000022 (001392) ---} MCSDeleteCriticalSection (rc=OK)
00001544 000053 (001392) --}! DLLMain (rc=Unknown(1))


is this usefull?
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 » IBM MQ API Support » VB6 MQCONNXANY random exception (rzstMQCONNX)
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.