IBM Support

PK93059: JACL SCRIPT FAILS WITH JAVA.LANG.INDEXOUTOFBOUNDSEXCEPTION: ERROR AFTER 6.0.2.35/PK67315

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using script for Creating cluster member it fails at
    6.0.2.35. with error
    [31.07.09 13:24:10:217 CEST] 0000000a AbstractShell E
    WASX7120E:
    Exception
    "java.lang.IndexOutOfBoundsException:
      java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
    "
    
    java.lang.IndexOutOfBoundsException: Index: 5, Size: 5
     at java.util.ArrayList.RangeCheck(ArrayList.java:539)
     at java.util.ArrayList.get(ArrayList.java:356)
     at
    com.ibm.ws.scripting.adminCommand.AdminCmdController.processStep
    s(AdminC
    mdController.java:514)
     at
    com.ibm.ws.scripting.adminCommand.AdminCmdController.processOpti
    ons(Admi
    nCmdController.java:264)
     at
    com.ibm.ws.scripting.adminCommand.AdminCmdController.processCmd(
    AdminCmd
    Controller.java:171)
     at
    com.ibm.ws.scripting.adminCommand.AdminCmdProxyHandler.invoke(Ad
    minCmdPr
    oxyHandler.java:86)
    
    
    The same script works fine at 6.0.2.33 and lower version
    fixpacks level for 6.0.x and only fails when fixpack 35 is
    applied
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  WAS602 users using wsadmin scripting        *
    *                  to create cluster member using optional     *
    *                  firstMember step.                           *
    ****************************************************************
    * PROBLEM DESCRIPTION: An exception will appear when           *
    *                      scripting is used to create first       *
    *                      cluster member using                    *
    *                      createClusterMember command and         *
    *                      optional firstMember as shown in the    *
    *                      following command:                      *
    *                      wsadmin>$AdminTask                      *
    *                      createClusterMember {-clusterName C2    *
    *                      -memberConfig Node01 c2m1 "" "" true    *
    *                      false -firstMember default "" "" ""     *
    *                      DefaultCoreGroup}                       *
    *                                                              *
    *                      Since there is additional optional      *
    *                      parameter for firstMember command and   *
    *                      that additional parameter is not        *
    *                      supplied, it throws an exception.       *
    ****************************************************************
    * RECOMMENDATION:  Provide all optional parameters as shown    *
    *                  below:                                      *
    *                  wsadmin>$AdminTask                          *
    *                  createClusterMember {-clusterName C2        *
    *                  -memberConfig Node01 c2m1 "" "" true        *
    *                  false -firstMember default "" "" ""         *
    *                  DefaultCoreGroup both}                      *
    ****************************************************************
    When createClusterMember command is used along with optional
    firstMember step, an arrayIndexOutOfBoundException may occur.
    The reason being, the firstMember step has 6 optional
    parameters.  If only 5 optional parameters are specified, the
    code tries to look for the sixth optional parameter in the
    supplied parameter list. Therefore, causes
    arrayOutOfBoundException while accessing the sixth parameter
    from the list whose size is 5.
    

Problem conclusion

  • Fix made to scripting code to only use the specified optional
    parameters and check the list size before accessing parameters
    from the list.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 6.0.2.39.  Please refer to the Recommended Updates
    page for delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

Comments

APAR Information

  • APAR number

    PK93059

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    60W

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2009-08-04

  • Closed date

    2009-09-08

  • Last modified date

    2009-09-22

  • 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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R60A PSY

       UP

  • R60H PSY

       UP

  • R60I PSY

       UP

  • R60P PSY

       UP

  • R60S PSY

       UP

  • R60W PSY

       UP

  • R60Z PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
10 February 2022