IBM Support

PI55038: Injection on implementation of ParamConverterProvider in JAX-RS 2.0 fails with NullPointerException

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • com.ibm.ws.jaxrs-2.0.common ...
    Interceptor for {http://... /} ... has thrown exception,
    unwinding now
    java.lang.NullPointerException
    at
    rest.filter.TestRequestScopedFilter.filter(TestRequestScoped
    Filt
    er.java:24)
    at
    org.apache.cxf.jaxrs.utils.JAXRSUtils.runContainerRequestFil
    ters
    (JAXRSUtils.java:1671)
    at
    org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processR
    eque
    st(JAXRSInInterceptor.java:244)
    at
    org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMe
    ssag
    e(JAXRSInInterceptor.java:85)
    at
    org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(Phase
    Inte
    rceptorChain.java:307)
    at
    org.apache.cxf.transport.ChainInitiationObserver.onMessage(C
    hain
    InitiationObserver.java:124)
    at
    org.apache.cxf.transport.http.AbstractHTTPDestination.invoke
    (Abs
    tractHTTPDestination.java:259)
    at
    com.ibm.ws.jaxrs20.endpoint.AbstractJaxRsWebEndpoint.invoke(
    Abst
    ractJaxRsWebEndpoint.java:134)
    at
    com.ibm.websphere.jaxrs.server.IBMRestServlet.handleRequest(
    IBMR
    estServlet.java:149)
    at
    com.ibm.websphere.jaxrs.server.IBMRestServlet.doPost(IBMRest
    Serv
    let.java:107)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at
    com.ibm.websphere.jaxrs.server.IBMRestServlet.service(IBMRes
    tSer
    vlet.java:99)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service()
    ...
    at com.ibm.ws.webcontainer.WebContainer.handleRequest()
    ...
    at
    com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLi
    nk$T
    askWrapper.run()
    at
    com.ibm.ws.http.dispatcher.internal.channel.HttpDispatcherLi
    nk.r
    eady()
    at
    com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.han
    dleD
    iscrimination()
    at
    com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.han
    dleN
    ewRequest()
    at
    com.ibm.ws.http.channel.internal.inbound.HttpInboundLink.pro
    cess
    Request()
    ...
    at java.lang.Thread.run()
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty - JAX-RS 2.0 and Contexts    *
    *                  and Dependency Injection (CDI)              *
    ****************************************************************
    * PROBLEM DESCRIPTION: Injection on implementation of          *
    *                      ParamConverterProvider in JAX-RS 2.0    *
    *                      fails.                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    ParamConverterProvider is one kind of provider in JAX-RS 2.0.
    When injection is used in a JAX-RS 2.0 provider, the instance
    used should be created by CDI but our engine did not get the
    instance from CDI and replaced the original one with it.
    

Problem conclusion

  • Fixed the problem with adding the instance replacement to the
    processing code for ParamConverterProvider.
    
    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

    PI55038

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    855

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2016-01-07

  • Closed date

    2016-02-25

  • Last modified date

    2016-02-25

  • 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

    LIBERTY PROFILE

  • Fixed component ID

    5724J0814

Applicable component levels

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

Document Information

Modified date:
28 April 2022