IBM Support

IT18341: java.lang.ClassCastException when inquiring the MQ PCF message fields MQCAUT_BLOCKUSER and MQCAUT_BLOCKADDR

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • For either BLOCKADDR or BLOCKUSER in a CHLAUTH rule you can
    provide a list of addresses or users.
    .
    For each of these fields the type is listed in the MQ Knowledge
    Center as:
    .
    AddrList (MQCFSL)
    A list of up to 100 IP address patterns which are banned from
    accessing this queue manager on any channel
    (parameter identifier: MQCACH_CONNECTION_NAME_LIST).
    .
    UserList (MQCFSL)
    A list of up to 100 user IDs which are banned from use of this
    channel or set of channels
    (parameter identifier: MQCACH_MCA_USER_ID_LIST).
    .
    It was discovered that, if the command server's response from
    the MQCMD_INQUIRE_CHLAUTH_RECS command contained multiple IP
    addresses or user IDs, the PCF message conformed to that listed
    in the MQ Knowledge Center.  That is, the field type was MQCFSL.
    However, if the response contained a single IP address or a
    single user ID, the field type was MQCFST.
    .
    In MQ Java, when you inquire the PCF message fields
    MQCACH_CONNECTION_NAME_LIST and MQCACH_MCA_USER_ID_LIST you
    have to use the getStringParameterValue method when there is
    only 1 user or address and the getStringListParameterValue
    method when there are multiple addresses or users.
    .
    The exception triggered when using the
    getStringListParameterValue when only one address or user is
    blocked is:
    .
    Exception:
    java.lang.ClassCastException: java.lang.String cannot be cast
    to java.lang.String
    .
    

Local fix

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    This affects users of PCF applications, which query channel
    authentication (CHLAUTH) records of type BLOCKUSER or BLOCKADDR.
    
    
    Platforms affected:
    MultiPlatform
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    When responding to an inquire chlauth request
    (MQCMD_INQUIRE_CHLAUTH_RECS) for BLOCKUSER or BLOCKADDR records,
    the MQ queue manager's command server incorrectly returned the
    MQCACH_MCA_USER_ID_LIST and MQCACH_CONNECTION_NAME_LIST fields
    as string type (MQCFST) instead of string list (MQCFSL) if there
    was only one item the list.
    

Problem conclusion

  • The MQ queue manager's command server logic has been updated to
    always return MQCACH_CONNECTION_NAME_LIST and
    MQCACH_MCA_USER_ID_LIST as a string list type (MQCFSL) in its
    response to the MQCMD_INQUIRE_CHLAUTH_RECS command.
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
    Version    Maintenance Level
    v8.0       8.0.0.8
    v9.0 CD    9.0.4
    v9.0 LTS   9.0.0.3
    
    The latest available maintenance can be obtained from
    'WebSphere MQ Recommended Fixes'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006037
    
    If the maintenance level is not yet available information on
    its planned availability can be found in 'WebSphere MQ
    Planned Maintenance Release Dates'
    http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg27006309
    ---------------------------------------------------------------
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT18341

  • Reported component name

    WMQ BASE MULTIP

  • Reported component ID

    5724H7251

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-12-09

  • Closed date

    2017-08-14

  • Last modified date

    2017-08-14

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WMQ BASE MULTIP

  • Fixed component ID

    5724H7251

Applicable component levels

  • R800 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYHRD","label":"IBM MQ"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"8.0.0.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
14 August 2017