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 Security » MQ Sender Secuirty Exit Issue

Post new topic  Reply to topic
 MQ Sender Secuirty Exit Issue « View previous topic :: View next topic » 
Author Message
vignesh1988
PostPosted: Thu Aug 22, 2013 8:27 am    Post subject: MQ Sender Secuirty Exit Issue Reply with quote

Acolyte

Joined: 13 Apr 2013
Posts: 62
Location: Chennai

I have written a C Code for MQ Security channel Exit for a Sender Channel. I have extracted the Load Module and testing was successful (Channel Started successfully) i.e The receiver approved my Credentials..

Suddenly When i stop the channel and re-start the channel again.. Sometimes it's starting normally.. some times it;s suddenly Abending with S0C4 and making the Channel Initiator to go down..

As a Result i was testing it today .. I have stopped / started channel again and again and all was successful. So i left it.. Suddenly after 2 hours the channel inititator went down and the last message was the S0C4 abend of my channel.

I am totally confused where is the error.. since 70% it's working and 30% suddenly giving me S0C4...

I have captured the DUMP and i dunno how to read an MVS Dump..
Can anyone help me to fix this...
Back to top
View user's profile Send private message Send e-mail
JosephGramig
PostPosted: Thu Aug 22, 2013 12:15 pm    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Why don't you use SSL and CHLAUTH rules instead?
What requirements does the exit fulfill?
Back to top
View user's profile Send private message AIM Address
Vitor
PostPosted: Thu Aug 22, 2013 1:48 pm    Post subject: Re: MQ Sender Secuirty Exit Issue Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

vignesh1988 wrote:
II have captured the DUMP and i dunno how to read an MVS Dump..


If you don't know how to read the dump then you don't have the level of knowledge needed to write an exit. Seriously. Exits are low level code that require serious skills and a certain amount of mad scientist-like genius (no offense Roger!). In the 15 years I've been involved with WMQ I can count on one hand the number of times I've seen a use case that really required an exit to be written (and not the Roger like / BllockIP2 exits we all know)

vignesh1988 wrote:
Can anyone help me to fix this...


Think very carefully about your requirement. If the requirement is "write an exit that secures the channel" push back and ask why you need an exit rather than the inbuilt facilities my associate correctly mentions, which are a much better solution. If it's the same exit you mention here then you need much more functionality than you describe there to justify the use of an exit.

If you're determined to continue, ask your site's sys progs what the dump means. Cross reference what they tell you with the documented requirements for a z/OS exit. You're probably getting an 0C4 because your code doesn't meet all those requirements in every detail and doesn't enjoy being paged out and/or swapped round.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Thu Aug 22, 2013 3:31 pm    Post subject: Re: MQ Sender Secuirty Exit Issue Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2538
Location: Melbourne, Australia

vignesh1988 wrote:
I have written a C Code for MQ Security channel Exit for a Sender Channel. I have extracted the Load Module and testing was successful (Channel Started successfully) i.e The receiver approved my Credentials..

Suddenly When i stop the channel and re-start the channel again.. Sometimes it's starting normally.. some times it;s suddenly Abending with S0C4 and making the Channel Initiator to go down..

You have some badly written code in your exit. The most common reason for a S0C4 abend is using a pointer to refer to non existent memory or memory beyond the bounds that it can address. MQ exits are quite difficult to debug in this situation. You can add debugging using printf() calls which write directly to SYSPRINT of the CHIN. You can remove or disable parts of the code that could be suspect. To successfully write an MQ exit on z/OS you really need the skills to debug it as well as knowing the ins and outs of LE System Programming. eg. There are several C library functions that just don't work in LE System Programming.
_________________
Glenn
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 Security » MQ Sender Secuirty Exit Issue
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.