IBM Support

PI51798: Liberty JAX-RS implementation may throw NullPointerException

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • WebSphere Liberty Profile JAX-RS implementation may throw
    NullPointerException SRVE0276E: Error while initializing
    Servlet [Test]...
    Caused by: java.lang.NullPointerException
    at
    com.ibm.ws.jaxrs20.providers.customexceptionmapper.CustomExc
    epti
    onMapper
    Register.getFlagFromClass(CustomExceptionMapperRegister.java
    :71)
    ...
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty Profile - JAX-RS 2.0 Web     *
    *                  Services                                    *
    ****************************************************************
    * PROBLEM DESCRIPTION: Liberty JAX-RS 2.0 implementation may   *
    *                      throw a NullPointerException            *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When the code is trying to get the type of some class, null
    would be returned. Then the NullPointerException happens in this
    case becuase there is no null value check:
    NullPointerException SRVE0276E: Error while initializing Servlet
    [Test]...
    Caused by: java.lang.NullPointerException
    at
    com.ibm.ws.jaxrs20.providers.customexceptionmapper.CustomExcepti
    onMapper
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PI51798

  • 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

    2015-11-03

  • Closed date

    2016-02-02

  • Last modified date

    2016-02-02

  • 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":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 October 2021