IBM Support

PH51636: WHEN A DATA SOURCE 4.0 IS BEING USED BY APPLICATION WITH MISSINGPASSWORD NULLPOINTEREXCEPTION IS THROWN

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

  • When a data source 4.0 has no password information configured a
    NullPointerException is thrown:
    
    [12/19/22 19:53:05:037 CST] 00000095 SystemErr     R
    java.lang.NullPointerException
    [12/19/22 19:53:05:038 CST] 00000095 SystemErr     R    at
    java.util.regex.Matcher.getTextLength(Matcher.java:1294)
    [12/19/22 19:53:05:038 CST] 00000095 SystemErr     R    at
    java.util.regex.Matcher.reset(Matcher.java:320)
    [12/19/22 19:53:05:038 CST] 00000095 SystemErr     R    at
    java.util.regex.Matcher.<init>(Matcher.java:240)
    [12/19/22 19:53:05:038 CST] 00000095 SystemErr     R    at
    java.util.regex.Pattern.matcher(Pattern.java:1104)
    [12/19/22 19:53:05:038 CST] 00000095 SystemErr     R    at
    com.ibm.ejs.cm.DataSourceProperties.decodeEmbeddedPassword(DataS
    ourceProperties.java:792)
    [12/19/22 19:53:05:039 CST] 00000095 SystemErr     R    at
    com.ibm.ejs.cm.DataSourceProperties.decodeOracleConnectionProper
    tiesPwds(DataSourceProperties.java:772)
    [12/19/22 19:53:05:039 CST] 00000095 SystemErr     R    at
    com.ibm.ejs.cm.DataSourceProperties.getProperty(DataSourceProper
    ties.java:220)
    [12/19/22 19:53:05:039 CST] 00000095 SystemErr     R    at
    com.ibm.ejs.cm.DataSourceProperties.writeObject(DataSourceProper
    ties.java:717)
    [12/19/22 19:53:05:039 CST] 00000095 SystemErr     R    at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server                                      *
    *                  defining a data source without specifying a *
    *                  connectionProperties property.              *
    ****************************************************************
    * PROBLEM DESCRIPTION: A NullPointerException exception is     *
    *                      logged with                             *
    *                      com.ibm.ejs.cm.DataSourceProperties.get *
    *                      P                                       *
    *                      roperty() in the stack.                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Users will see an exception stack similar to:
    [12/19/22 19:53:05:037 CST] 00000095 SystemErr     R
    java.lang.NullPointerException
    [12/19/22 19:53:05:038 CST] 00000095 SystemErr     R    at
    java.util.regex.Matcher.getTextLength(Matcher.java:1294)
    [12/19/22 19:53:05:038 CST] 00000095 SystemErr     R    at
    java.util.regex.Matcher.reset(Matcher.java:320)
    [12/19/22 19:53:05:038 CST] 00000095 SystemErr     R    at
    java.util.regex.Matcher.<init>(Matcher.java:240)
    [12/19/22 19:53:05:038 CST] 00000095 SystemErr     R    at
    java.util.regex.Pattern.matcher(Pattern.java:1104)
    [12/19/22 19:53:05:038 CST] 00000095 SystemErr     R    at
    com.ibm.ejs.cm.DataSourceProperties.decodeEmbeddedPassword(DataS
    ourceProperties.java:792)
    [12/19/22 19:53:05:039 CST] 00000095 SystemErr     R    at
    com.ibm.ejs.cm.DataSourceProperties.decodeOracleConnectionProper
    tiesPwds(DataSourceProperties.java:772)
    [12/19/22 19:53:05:039 CST] 00000095 SystemErr     R    at
    com.ibm.ejs.cm.DataSourceProperties.getProperty(DataSourceProper
    ties.java:220)
    [12/19/22 19:53:05:039 CST] 00000095 SystemErr     R    at
    com.ibm.ejs.cm.DataSourceProperties.writeObject(DataSourceProper
    ties.java:717)
    [12/19/22 19:53:05:039 CST] 00000095 SystemErr     R    at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    

Problem conclusion

  • This NullPointerException stack is only a logging/trace issue
    and there are no function issues. The code is already correctly
    handling the null connectionProperties property.
    The code has been updated to prevent the NullPointerException
    from ever occurring, but is still functionally identical as
    before. The only difference is the NullPointerException message
    will no longer be in the logs.
    
    The fix for this APAR is targeted for inclusion in fix packs
    9.0.5.16 and 8.5.5.24. For more information, see 'Recommended
    Updates for WebSphere Application Server':
    https://www.ibm.com/support/pages/node/715553
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH51636

  • 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

    2022-12-23

  • Closed date

    2023-05-11

  • Last modified date

    2023-05-11

  • 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

[{"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:
12 May 2023