IBM Support

PI31045: PERSISTENCE.XML FAILS IF PROPERTY NAMES CONTAIN LEADING OR TRAILING WHITESPACE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If persistence.xml has a property element with a name that
    contains leading or trailing whitespace, the product throws
    a NullPointerException, and the application fails to start.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile - Java Persistence   *
    *                  API (JPA)                                   *
    ****************************************************************
    * PROBLEM DESCRIPTION: persistence.xml fails if property names *
    *                      contain leading or trailing whitespace  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If persistence.xml has a property element with a name that
    contains leading or trailing whitespace, the product throws a
    NullPointerException, and the application fails to start.
    

Problem conclusion

  • The JPA container internally stores all properties in a map.
    While processing properties later, it iterated over all property
    names and indexed the map and used the value, but leading and
    trailing whitespace was removed from the property name, so the
    value could not be accessed.  The product was changed to iterate
    over key and value pairs in the map rather than iterating over
    property names with leading and trailing whitespace already
    removed.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 8.5.5.4.  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

    PI31045

  • Reported component name

    WAS LIBERTY COR

  • Reported component ID

    5725L2900

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-12-05

  • Closed date

    2014-12-15

  • Last modified date

    2014-12-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

    WAS LIBERTY COR

  • Fixed component ID

    5725L2900

Applicable component levels

  • R855 PSY

       UP

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

Document Information

Modified date:
28 April 2022