IBM Support

IC71366: ILLEGALARGUMENTEXCEPTION SEEN WHEN A MULTIPLE THREADS IN A WMQ V7 BASE JAVA APPLICATION TRY TO CONNECT TO A QMGR USING A CCDT

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When multiple threads from a WMQ Base Java application attempt
    to connect to the available queue managers that are listed in a
    CCDT, if weights have been assigned to the client channels and
    Affinity has been set to NONE, then an IllegalArgumentException
    is thrown.
    The error thrown on the console is something like this:
    
    java.lang.IllegalArgumentException: n must be positive
    at java.util.Random.nextInt(Random.java:250)
    

Local fix

  • Change the CCDT to use AFFINITY=PREFERRED and varying
    client weight (CLNTWGHT).
    

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    This issue affects users of multi-threaded WebSphere MQ (WMQ) v7
    classes for Java and WMQ classes for Java Message Service (JMS)
    applications which try to connect to a queue manager using a
    CCDT with weights assigned to client channels and AFFINITY on
    the client channels set to NONE.
    
    Platforms affected:
    All Distributed (iSeries, all Unix and Windows) +Java
    ****************************************************************
    PROBLEM SUMMARY:
    When a WMQ Java/JMS application attempts to connect to a queue
    manager using a CCDT, the process of selecting a suitable
    weighted channel takes place.
    
    Because of multiple threads trying to do the same task during
    the channel selection process, when one thread was about to
    choose a channel, the other thread would modify certain
    properties and this would result in these values of those
    properties being incorrect; thus resulting in the
    IllegalArgumentException.
    

Problem conclusion

  • The channel selection process has now been serialized and the
    IllegalArgumentException is no longer seen.
    
    Note that the use of CCDTs within XA transactions is not
    supported due to issues with transaction recovery. For more
    infomation, please see technote 1249798:
    
      http://www-01.ibm.com/support/docview.wss?uid=swg21249798
    
    
    
    ---------------------------------------------------------------
    The fix is targeted for delivery in the following PTFs:
    
                       v7.0
    Platform           Fix Pack 7.0.1.5
    --------           --------------------
    Windows            U200324
    AIX                U839183
    HP-UX (PA-RISC)    U839621
    HP-UX (Itanium)    U839626
    Solaris (SPARC)    U839622
    Solaris (x86-64)   U839628
    iSeries            tbc_p700_0_1_5
    Linux (x86)        U839623
    Linux (x86-64)     U839627
    Linux (zSeries)    U839624
    Linux (Power)      U839625
    
    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

    IC71366

  • Reported component name

    WMQ WINDOWS V7

  • Reported component ID

    5724H7220

  • Reported release

    701

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-09-23

  • Closed date

    2010-10-26

  • Last modified date

    2011-03-04

  • 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 WINDOWS V7

  • Fixed component ID

    5724H7220

Applicable component levels

  • R701 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSDEZSF","label":"IBM WebSphere MQ Managed File Transfer for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.0.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
31 March 2023