Author |
Message
|
crossland |
Posted: Tue Feb 08, 2011 3:05 am Post subject: MQIACF_REASON_QUALIFIER value 25 |
|
|
Master
Joined: 26 Jun 2001 Posts: 248
|
I am writing a Java program that processes event messages on SYSTEM.ADM.QMGR.EVENT. When p.getParameter is MQIACF_REASON_QUALIFIER, it then uses getValue and handles various MQRQ* values (e.g. MQRQ_CONN_NOT_AUTHORIZED). However, it is regularly reporting a value of 25. The only reason qualifiers that I have been able to locate have gone from 1 to 20.
Any suggestions for a reason qualifer that has a value of 25?
Thanks! |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Feb 08, 2011 3:45 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
The reason qualifier only makes sense in context of the rest of the event.
What's the event that's returning an MQRQ with a value of 25?
Otherwise, I agree, there doesn't appear to be a valid MQRQ that has a value of 25 - at least, that is documented. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Feb 08, 2011 3:48 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Some slight more commentary -
The documentation for the Not Authorized (Type 1) event, for example, shows that there is a valid MQRQ value of MQRQ_SYS_CONN_NOT_AUTHORIZED.
But there isn't a documented value for MQRQ_SYS_CONN_NOT_AUTHORIZED in the list of MQRQ_* in the constants manual.
So you're likely getting something like this, where you have to read between the lines in the documentation. |
|
Back to top |
|
 |
crossland |
Posted: Tue Feb 08, 2011 4:13 am Post subject: |
|
|
Master
Joined: 26 Jun 2001 Posts: 248
|
The MQCFH.Reason is MQRC_NOT_AUTHORIZED.
The only values that I could find for reason qualifiers were in cmqcfc.h:
/* Reason Qualifiers */
#define MQRQ_CONN_NOT_AUTHORIZED 1
#define MQRQ_OPEN_NOT_AUTHORIZED 2
#define MQRQ_CLOSE_NOT_AUTHORIZED 3
#define MQRQ_CMD_NOT_AUTHORIZED 4
#define MQRQ_Q_MGR_STOPPING 5
#define MQRQ_Q_MGR_QUIESCING 6
#define MQRQ_CHANNEL_STOPPED_OK 7
#define MQRQ_CHANNEL_STOPPED_ERROR 8
#define MQRQ_CHANNEL_STOPPED_RETRY 9
#define MQRQ_CHANNEL_STOPPED_DISABLED 10
#define MQRQ_BRIDGE_STOPPED_OK 11
#define MQRQ_BRIDGE_STOPPED_ERROR 12
#define MQRQ_SSL_HANDSHAKE_ERROR 13
#define MQRQ_SSL_CIPHER_SPEC_ERROR 14
#define MQRQ_SSL_CLIENT_AUTH_ERROR 15
#define MQRQ_SSL_PEER_NAME_ERROR 16
#define MQRQ_SUB_NOT_AUTHORIZED 17
#define MQRQ_SUB_DEST_NOT_AUTHORIZED 18
#define MQRQ_SSL_UNKNOWN_REVOCATION 19
#define MQRQ_SYS_CONN_NOT_AUTHORIZED 20 |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Feb 08, 2011 5:17 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Which Type of Not Authorized event is it?
Like I said, you may be stuck in a twisty little maze of inconsistent InfoCenter pages.
What's the raw data of the event message look like?
Is there a security exit of any kind involved? |
|
Back to top |
|
 |
|