IBM Support

PI71413: V9 GENPLUGINCFG.BAT FAILS WHEN CMD LINE VALUE CONTAINS PARENTHESIS

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • GenPluginCfg.bat for WebSphere Application Server V9 fails with
    the following error when a cmd line value contains parenthesis:
    
    "... was unexpected at this time"
    
    For example:
    
    [WAS_INSTALL_ROOT]\AppServer\bin>GenPluginCfg.bat
    -output.file.name "C:\Program Files
    (x86)\IBM\temp\plugin-cfg.xml"
    
    \IBM\temp\plugin-cfg.xml was unexpected at this time.
    
    This is particularly problematic for cmd line options which
    require directory path values like:
    
    -config.root
    -output.file.name
    -destination.root
    

Local fix

  • The error is attributed to GenPluginCfg's use of the param
    expansion variable %~1 in its 'addprop' routine which removes
    the surrounding quotes from an input value:
    
    :addprop
      IF NOT "%NEW_ARGS%"=="" (
        set NEW_ARGS=%NEW_ARGS% %~1
        SHIFT
        GOTO parse2
      )
    ...
    
    Because the input variable is referenced inside a parenthesised
    block, Windows treats the first closing parentheses it finds
    (in this case, from the input value) as the block's close.
    
    Changing the aforementioned statement to use the general arg
    reference syntax (%1) preserves the value's surrounding quotes
    as they are passed in and allows the command to succeed:
    
    :addprop
      IF NOT "%NEW_ARGS%"=="" (
        set NEW_ARGS=%NEW_ARGS% %1
        SHIFT
        GOTO parse2
      )
    ...
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: GenPluginCfg.bat fails if parenthesis   *
    *                      are used in the path                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The GenPluginCfg.bat file on Microsoft Windows operating
    systems has a problem dealing with a submitted path statement
    that contains a parenthesis.
    

Problem conclusion

  • The GenPlugincfg.bat file was updated so it can handle
    parentheses within a path statement.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 9.0.0.3.  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

    PI71413

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    900

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-10-27

  • Closed date

    2016-11-15

  • Last modified date

    2016-11-15

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

  • R900 PSY

       UP

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

Document Information

Modified date:
03 May 2022