IBM Support

PI89970: NULLPOINTEREXCEPTION IN ORG.APACHE.CXF.JAXRS.IMPL.TL.THREADLOCALPROVIDERS.GETCONTEXTRESOLVER()

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Bundling Jackson and registering in
    JAXRS 2.0 client causes a
    NullPointerException
    
    Caused by: java.lang.NullPointerException
    
    at
    org.apache.cxf.jaxrs.impl.tl.ThreadLocalProviders.getContextReso
    lver(ThreadLocalProviders.java:50)
    at
    com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider._locateMapp
    erViaProvider(JacksonJsonProvider.java:198)
    at
    com.fasterxml.jackson.jaxrs.base.ProviderBase.locateMapper(Provi
    derBase.java:922)
    at
    com.fasterxml.jackson.jaxrs.base.ProviderBase._endpointForWritin
    g(ProviderBase.java:686)
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server - JAX-RS                             *
    ****************************************************************
    * PROBLEM DESCRIPTION: Bundling Jackson and registering a      *
    *                      JAXRS 2.0 client may result in a        *
    *                      NullPointerException                    *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Class com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider has
    a
    field which uses @Context injection. The field is not injected
    correctly and will cause a NullPointerExcetpion when it is
    accessed.
    

Problem conclusion

  • Modified org.apache.cxf.jaxrs.provider.ProviderFactory class, so
    that it will not do context injection for client providers.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 9.0.0.7.  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

    PI89970

  • 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

    2017-11-08

  • Closed date

    2017-11-27

  • Last modified date

    2017-11-27

  • 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:
04 May 2022