|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQCONNX fails with AMQ9518 (MQRC 2059) |
« View previous topic :: View next topic » |
Author |
Message
|
rockz007 |
Posted: Sun Sep 24, 2017 11:15 pm Post subject: MQCONNX fails with AMQ9518 (MQRC 2059) |
|
|
Newbie
Joined: 20 Aug 2015 Posts: 9
|
Hi All,
We are on AS400 MQ Client, MQ server is on another machine. I'm trying to connect to server using MQCONNX with SSL, I get the below error
"/QIBM/UserData/mqm/AMQCLCHL.TAB" -> AMQ9518
Code to call MQCONNX with SSL option:
MOVE 'XXX' TO PUT-QUEUE-MANAGER
MOVE 'X123' TO MQCD-CHANNELNAME
MOVE 1.1.1.1' TO MQCD-CONNECTIONNAME
MOVE KEY-LOC TO MQSCO-KEYREPOSITORY
MOVE CIPHER-SPEC TO MQCD-SSLCIPHERSPEC
MOVE 5 TO MQCNO-VERSION.
MOVE 10 TO MQCD-VERSION.
MOVE MQCHT-CLNTCONN TO MQCD-CHANNELTYPE.
*** BINARY VALUE SET TO 6 FOR MQCHT-CLNTCONN
MOVE MQXPT-TCP TO MQCD-TRANSPORTTYPE.
**** Binary value set to 2 for MQXPT-TCP
MOVE 1 TO MQSCO-VERSION.
SET MQCNO-CLIENTCONNPTR TO ADDRESS OF MQCDOPTIONS.
CALL "MQCONNX"
USING PUT-QUEUE-MANAGER, CNOPTIONSMAIN, HCONN,
COMPLETION-CODE, REASON. |
|
Back to top |
|
 |
rockz007 |
Posted: Sun Sep 24, 2017 11:17 pm Post subject: |
|
|
Newbie
Joined: 20 Aug 2015 Posts: 9
|
Error message is "File '/QIBM/UserData/mqm/AMQCLCHL.TAB' not found. " -AMQ9518
When I try to connect with AMQSSSLC sample program with same options, the connection is successful , but when doing in a program with MQCONNX I get the error |
|
Back to top |
|
 |
zpat |
Posted: Mon Sep 25, 2017 2:29 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Connection name needs to be valid IP address (preferably) or IP number with the port. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
rockz007 |
Posted: Mon Sep 25, 2017 2:35 am Post subject: |
|
|
Newbie
Joined: 20 Aug 2015 Posts: 9
|
I did specify valid IP address along with PORT, I just excluded during the post only. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Sep 25, 2017 4:20 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
rockz007 |
Posted: Mon Sep 25, 2017 5:08 pm Post subject: |
|
|
Newbie
Joined: 20 Aug 2015 Posts: 9
|
I have modified the code and MQCNO-VERSION to be '4' for SSL values to be taken
MOVE 4 TO MQCNO-VERSION.
MOVE 10 TO MQCD-VERSION.
MOVE MQCHT-CLNTCONN TO MQCD-CHANNELTYPE.
MOVE MQXPT-TCP TO MQCD-TRANSPORTTYPE.
MOVE 1 TO MQSCO-VERSION.
SET MQCNO-CLIENTCONNPTR TO ADDRESS OF MQCDOPTIONS.
SET MQCNO-SSLCONFIGPTR TO ADDRESS OF MQSCO.
MOVE W-ENQ-REQ TO GET-QUEUE.
CALL "MQCONNX"
USING PUT-QUEUE-MANAGER, CNOPTIONSMAIN, HCONN,
COMPLETION-CODE, REASON.
Now I'm receiving MQRC 2071 error
AMQ6037: WebSphere MQ was unable to obtain enough storage.
When I try to connect without SSL this error doesn't show up, only when I try to use SSL I get this error. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Sep 26, 2017 3:16 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Again, check first that your program is not running in compatibility mode, whatever that is.
And there might be a sample program that comes with an MQCONNX.
You could look at the code for saveqgmr or MA7K (use the versions in ibm-messaging github)... But the parts that go into the MQCONNX in those are kind of spread out.
Maybe if you find really old versions of those, before SSL was available (I think that was introduced in mq v6? ) , you could do some kind of diff.
But the only place to get those versions, if they are still available, is either through some kind of internet archive, or through the very old supportpac ftp server... _________________ chmod -R ugo-wx / |
|
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
|
|
|
|