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 » General IBM MQ Support » security exit error

Post new topic  Reply to topic
 security exit error « View previous topic :: View next topic » 
Author Message
BlackSnail
PostPosted: Thu May 08, 2003 2:40 am    Post subject: security exit error Reply with quote

Newbie

Joined: 08 May 2003
Posts: 1

Now I'm working on security exit.I use MQSeries 5.1 on Windows2K.
I downloaded sample code of SG24-5306 from http://www.mqseries.net/pafiledb203/pafiledb.php?action=viewfile&fid=5&id=2

QM1 is on the sender side and QM2 is on the receiver side. Both of them is on the same machine.

Below is the steps I take.
1)create channel,compile and install the exit
2)runmqlsr -t tcp -p 6002 -m QM2
3)start the channel,
console shows:
MQS9400I DONE WT05219A MQCHEXIT ChannelExit started
Channel program started
logs shows:
Sending channel exit passed security check successfully //Receiver log
Receiving channel exit passed security check successfully //Sender log
So I think handshake is completed and channel is started successfully.
4)amqsput RQ1 QM1,input data,
console shows:
AMQ9504 A protocol error was detected for channel ’12_TEST1’.
event log says:
AMQ9504: A protocol error was detected for channel
during communications with the remote queue manager,
the channel program detected a protocol error. The failure
type was 18 with associated data of 0.

What's wrong with protocol?I always configured it to be "TCP/IP".
I can't find reason from logs.
Did I do something wrong?

Thanks a lot.

Here is QM1.MQCHEXIT.LOG:

103127 18:27:18 MQS9400I DONE QM1 MQCHEXIT *********** ChannelExit started ***********
103127 18:27:18 MQS9410I DONE QM1 MQCHEXIT >>>>> Send message exit started
103127 18:27:18 MQS9630D DONE QM1 MQCHEXIT ExitReason = MQXR_INIT
103127 18:27:18 MQS9400I DONE QM1 MQCHEXIT >>>>> Security exit started
103127 18:27:18 MQS9600D DONE QM1 MQCHEXIT ExitReason = MQXR_INIT
103127 18:27:18 MQS9690D DONE QM1 MQCHEXIT Opening private key file
103127 18:27:18 MQS9700D DONE QM1 MQCHEXIT Reading private keys was successful
103127 18:27:18 MQS9691D DONE QM1 MQCHEXIT Opening public key file
103127 18:27:18 MQS9701D DONE QM1 MQCHEXIT Reading public keys was successful
103127 18:27:18 MQS9605D DONE QM1 MQCHEXIT return(MQXCC_OK)
103127 18:27:19 MQS9400I DONE QM1 MQCHEXIT >>>>> Security exit started
103127 18:27:19 MQS9630D DONE QM1 MQCHEXIT ExitReason = MQXR_SEC_MSG
103127 18:27:19 MQS9621D DONE QM1 MQCHEXIT Channel type = MQCHT_SENDER
103127 18:27:19 MQS9720D DONE QM1 MQCHEXIT Receiving the Handshaking Authentication Message
103127 18:27:19 MQS9700D DONE QM1 MQCHEXIT 306 bytes read. Encypted buffer length is 24
103127 18:27:19 MQS9725D DONE QM1 MQCHEXIT Verifying the HAM
103127 18:27:19 MQS9421I DONE QM1 MQCHEXIT Receiving channel exit passed security check successfully
103127 18:27:19 MQS9700D DONE QM1 MQCHEXIT Encrypting the Handshaking Authentication Message
103127 18:27:19 MQS9705D DONE QM1 MQCHEXIT Building the buffer to send the HAM
103127 18:27:19 MQS9607D DONE QM1 MQCHEXIT Sending 306 bytes. Encypted buffer length 24
103127 18:27:19 MQS9606D DONE QM1 MQCHEXIT return(MQXCC_SEND_SEC_MSG)

/*********************Then I put data using amqsput****************************/

103127 18:30:29 MQS9410I DONE QM1 MQCHEXIT >>>>> Send message exit started
103127 18:30:29 MQS9650D DONE QM1 MQCHEXIT ExitReason = MQXR_XMIT
103127 18:30:29 MQS9621D DONE QM1 MQCHEXIT Channel type = MQCHT_SENDER
103127 18:30:29 MQS9923D DONE QM1 MQCHEXIT Malloc size 784
103127 18:30:29 MQS9632D DONE QM1 MQCHEXIT Sending buffer length: 767
103127 18:30:29 MQS9666D DONE QM1 MQCHEXIT ExitResponse2 = MQXR2_USE_EXIT_BUFFER
103127 18:30:29 MQS9606D DONE QM1 MQCHEXIT return(MQXCC_OK)
103127 18:30:29 MQS9410I DONE QM1 MQCHEXIT >>>>> Send message exit started
103127 18:30:29 MQS9650D DONE QM1 MQCHEXIT ExitReason = MQXR_XMIT
103127 18:30:29 MQS9621D DONE QM1 MQCHEXIT Channel type = MQCHT_SENDER
103127 18:30:29 MQS9666D DONE QM1 MQCHEXIT ExitResponse2 = MQXR2_USE_AGENT_BUFFER
103127 18:30:29 MQS9606D DONE QM1 MQCHEXIT return(MQXCC_OK)
103127 18:30:29 MQS9410I DONE QM1 MQCHEXIT >>>>> Send message exit started
103127 18:30:29 MQS9650D DONE QM1 MQCHEXIT ExitReason = MQXR_XMIT
103127 18:30:29 MQS9621D DONE QM1 MQCHEXIT Channel type = MQCHT_SENDER
103127 18:30:29 MQS9666D DONE QM1 MQCHEXIT ExitResponse2 = MQXR2_USE_AGENT_BUFFER
103127 18:30:29 MQS9606D DONE QM1 MQCHEXIT return(MQXCC_OK)
103127 18:30:29 MQS9410I DONE QM1 MQCHEXIT >>>>> Send message exit started
103127 18:30:29 MQS9631D DONE QM1 MQCHEXIT ExitReason = MQXR_TERM
103127 18:30:29 MQS9645D DONE QM1 MQCHEXIT return(MQXCC_OK)
103127 18:30:29 MQS9400I DONE QM1 MQCHEXIT >>>>> Security exit started
103127 18:30:29 MQS9610D DONE QM1 MQCHEXIT ExitReason = MQXR_TERM
103127 18:30:29 MQS9605D DONE QM1 MQCHEXIT return(MQXCC_OK)
103127 18:30:40 MQS9400I DONE QM1 MQCHEXIT *********** ChannelExit started ***********
103127 18:30:40 MQS9410I DONE QM1 MQCHEXIT >>>>> Send message exit started
103127 18:30:40 MQS9630D DONE QM1 MQCHEXIT ExitReason = MQXR_INIT
103127 18:30:40 MQS9400I DONE QM1 MQCHEXIT >>>>> Security exit started
103127 18:30:40 MQS9600D DONE QM1 MQCHEXIT ExitReason = MQXR_INIT
103127 18:30:40 MQS9690D DONE QM1 MQCHEXIT Opening private key file
103127 18:30:40 MQS9700D DONE QM1 MQCHEXIT Reading private keys was successful
103127 18:30:40 MQS9691D DONE QM1 MQCHEXIT Opening public key file
103127 18:30:40 MQS9701D DONE QM1 MQCHEXIT Reading public keys was successful
103127 18:30:40 MQS9605D DONE QM1 MQCHEXIT return(MQXCC_OK)
103127 18:30:40 MQS9400I DONE QM1 MQCHEXIT >>>>> Security exit started
103127 18:30:40 MQS9630D DONE QM1 MQCHEXIT ExitReason = MQXR_SEC_MSG
103127 18:30:40 MQS9621D DONE QM1 MQCHEXIT Channel type = MQCHT_SENDER
103127 18:30:40 MQS9720D DONE QM1 MQCHEXIT Receiving the Handshaking Authentication Message
103127 18:30:40 MQS9700D DONE QM1 MQCHEXIT 306 bytes read. Encypted buffer length is 24
103127 18:30:40 MQS9725D DONE QM1 MQCHEXIT Verifying the HAM
103127 18:30:40 MQS9421I DONE QM1 MQCHEXIT Receiving channel exit passed security check successfully
103127 18:30:41 MQS9700D DONE QM1 MQCHEXIT Encrypting the Handshaking Authentication Message
103127 18:30:41 MQS9705D DONE QM1 MQCHEXIT Building the buffer to send the HAM
103127 18:30:41 MQS9607D DONE QM1 MQCHEXIT Sending 306 bytes. Encypted buffer length 24
103127 18:30:41 MQS9606D DONE QM1 MQCHEXIT return(MQXCC_SEND_SEC_MSG)
103127 18:32:16 MQS9410I DONE QM1 MQCHEXIT >>>>> Send message exit started
103127 18:32:16 MQS9650D DONE QM1 MQCHEXIT ExitReason = MQXR_XMIT
103127 18:32:16 MQS9621D DONE QM1 MQCHEXIT Channel type = MQCHT_SENDER
103127 18:32:16 MQS9666D DONE QM1 MQCHEXIT ExitResponse2 = MQXR2_USE_AGENT_BUFFER
103127 18:32:17 MQS9606D DONE QM1 MQCHEXIT return(MQXCC_OK)
103127 18:32:17 MQS9410I DONE QM1 MQCHEXIT >>>>> Send message exit started
103127 18:32:17 MQS9631D DONE QM1 MQCHEXIT ExitReason = MQXR_TERM
103127 18:32:17 MQS9645D DONE QM1 MQCHEXIT return(MQXCC_OK)
103127 18:32:17 MQS9400I DONE QM1 MQCHEXIT >>>>> Security exit started
103127 18:32:17 MQS9610D DONE QM1 MQCHEXIT ExitReason = MQXR_TERM
103127 18:32:17 MQS9605D DONE QM1 MQCHEXIT return(MQXCC_OK)

Here is QM2.MQCHEXIT.LOG:

103127 18:27:18 MQS9400I DONE QM2 MQCHEXIT *********** ChannelExit started ***********
103127 18:27:18 MQS9420I DONE QM2 MQCHEXIT >>>>> Receive message exit started
103127 18:27:18 MQS9660D DONE QM2 MQCHEXIT ExitReason = MQXR_INIT
103127 18:27:18 MQS9400I DONE QM2 MQCHEXIT >>>>> Security exit started
103127 18:27:18 MQS9600D DONE QM2 MQCHEXIT ExitReason = MQXR_INIT
103127 18:27:18 MQS9690D DONE QM2 MQCHEXIT Opening private key file
103127 18:27:18 MQS9700D DONE QM2 MQCHEXIT Reading private keys was successful
103127 18:27:18 MQS9691D DONE QM2 MQCHEXIT Opening public key file
103127 18:27:18 MQS9701D DONE QM2 MQCHEXIT Reading public keys was successful
103127 18:27:18 MQS9605D DONE QM2 MQCHEXIT return(MQXCC_OK)
103127 18:27:18 MQS9400I DONE QM2 MQCHEXIT >>>>> Security exit started
103127 18:27:18 MQS9620D DONE QM2 MQCHEXIT ExitReason = MQXR_INIT_SEC
103127 18:27:18 MQS9622D DONE QM2 MQCHEXIT Channel type = MQCHT_RECEIVER
103127 18:27:18 MQS9700D DONE QM2 MQCHEXIT Encrypting the Handshaking Authentication Message
103127 18:27:18 MQS9705D DONE QM2 MQCHEXIT Building the buffer to send the HAM
103127 18:27:18 MQS9607D DONE QM2 MQCHEXIT Sending 306 bytes. Encypted buffer length 24
103127 18:27:19 MQS9606D DONE QM2 MQCHEXIT return(MQXCC_SEND_AND_REQUEST_SEC_MSG)
103127 18:27:19 MQS9400I DONE QM2 MQCHEXIT >>>>> Security exit started
103127 18:27:19 MQS9630D DONE QM2 MQCHEXIT ExitReason = MQXR_SEC_MSG
103127 18:27:19 MQS9622D DONE QM2 MQCHEXIT Channel type = MQCHT_RECEIVER
103127 18:27:19 MQS9730D DONE QM2 MQCHEXIT Receiving the answer to the Handshaking Authentication Message
103127 18:27:19 MQS9700D DONE QM2 MQCHEXIT 306 bytes read. Encypted buffer length is 24
103127 18:27:19 MQS9735D DONE QM2 MQCHEXIT Verifying the answer to the HAM
103127 18:27:19 MQS9420I DONE QM2 MQCHEXIT Sending channel exit passed security check successfully
103127 18:27:19 MQS9606D DONE QM2 MQCHEXIT return(MQXCC_OK)

/*********************Then I put data using amqsput****************************/

103127 18:30:29 MQS9420I DONE QM2 MQCHEXIT >>>>> Receive message exit started
103127 18:30:29 MQS9663D DONE QM2 MQCHEXIT ExitReason = MQXR_XMIT
103127 18:30:29 MQS9622D DONE QM2 MQCHEXIT Channel type = MQCHT_RECEIVER
103127 18:30:29 MQS9632D DONE QM2 MQCHEXIT Receive buffer length: 767
103127 18:30:29 MQS9890D DONE QM2 MQCHEXIT Dumping 'unsigned int inlen' value
0 0: d8010000 , *
103127 18:30:29 MQS9632D DONE QM2 MQCHEXIT Sending buffer length: 473
103127 18:30:29 MQS9666D DONE QM2 MQCHEXIT ExitResponse2 = MQXR2_USE_EXIT_BUFFER
103127 18:30:29 MQS9606D DONE QM2 MQCHEXIT return(MQXCC_OK)
103127 18:30:29 MQS9420I DONE QM2 MQCHEXIT >>>>> Receive message exit started
103127 18:30:29 MQS9663D DONE QM2 MQCHEXIT ExitReason = MQXR_XMIT
103127 18:30:29 MQS9622D DONE QM2 MQCHEXIT Channel type = MQCHT_RECEIVER
103127 18:30:29 MQS9632D DONE QM2 MQCHEXIT Receive buffer length: 28
103127 18:30:29 MQS9666D DONE QM2 MQCHEXIT ExitResponse2 = MQXR2_USE_AGENT_BUFFER
103127 18:30:29 MQS9606D DONE QM2 MQCHEXIT return(MQXCC_OK)
103127 18:30:29 MQS9420I DONE QM2 MQCHEXIT >>>>> Receive message exit started
103127 18:30:29 MQS9663D DONE QM2 MQCHEXIT ExitReason = MQXR_XMIT
103127 18:30:29 MQS9622D DONE QM2 MQCHEXIT Channel type = MQCHT_RECEIVER
103127 18:30:29 MQS9632D DONE QM2 MQCHEXIT Receive buffer length: 28
103127 18:30:29 MQS9666D DONE QM2 MQCHEXIT ExitResponse2 = MQXR2_USE_AGENT_BUFFER
103127 18:30:29 MQS9606D DONE QM2 MQCHEXIT return(MQXCC_OK)
103127 18:30:29 MQS9420I DONE QM2 MQCHEXIT >>>>> Receive message exit started
103127 18:30:29 MQS9661D DONE QM2 MQCHEXIT ExitReason = MQXR_TERM
103127 18:30:29 MQS9650D DONE QM2 MQCHEXIT return(MQXCC_OK)
103127 18:30:29 MQS9400I DONE QM2 MQCHEXIT >>>>> Security exit started
103127 18:30:30 MQS9610D DONE QM2 MQCHEXIT ExitReason = MQXR_TERM
103127 18:30:30 MQS9605D DONE QM2 MQCHEXIT return(MQXCC_OK)
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 » General IBM MQ Support » security exit error
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.