IBM Support

PI46759: JAVA.UTIL.REGEX.PATTERNSYNTAXEXCEPTION IN ADMINAPP.EDIT WHEN STRING INCLUDES QUESTION MARK (?)

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • The following error was received when the client tried an
    AdminApp.edit operation with a string substitution.
    
    When a environment variable entry contains multiple question
    marks in a field, attempting to edit another existing entry
    will fail.
    
    Example:
    Environment variable named "EnvEntry1" has a description of
    "???". The user tries to edit another existing variable named
    "EnvEntry2" with a command like below (using Jython):
    
    AdminApp.edit('MyServletEAR', [ '-MapEnvEntryForWebMod',
    [['MyServlet', 'MyServlet.war,WEB-INF/web.xml', 'EnvEntry2',
    'String', '(.*\n)*.*', 'TestDescription']] ])
    
    The error received was:
    WASX7120E:
    Diagnostic information from exception with text
    "java.util.regex.PatternSyntaxException:
    java.util.regex.PatternSyntaxException: Dangling meta character
    '?'
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: Using more than one question mark in    *
    *                      the description field was not processed *
    *                      correctly when using AdminApp.edit      *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The code did not process more than one question mark as a
    special
    character in a regular expression.
    

Problem conclusion

  • The code was updated to look for consecutive question marks and
    process them so internal regular expressions can handle them.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.5.5.9.  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

    PI46759

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-08-12

  • Closed date

    2015-11-09

  • Last modified date

    2015-11-09

  • 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

  • R850 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":"8.5","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 April 2022