IBM Support

PH02742: NPE WHEN DOING DIRECT FORWARD OPERATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • [10/09/18 20:52:27:919 UTC] 00000060 id=00000000
    
    com.ibm.commerce.websocket.rest.server.MessageProcessor
    E
    
    null
    
    
    
    java.lang.NullPointerException
    
    at
    
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(Servl
    etWr
    
    apper.java:1356)
    
    at
    
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest
    (Ser
    
    vletWrapper.java:743)
    
    at
    
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest
    (Ser
    
    vletWrapper.java:440)
    
    at
    
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFil
    ters
    
    (WebAppFilterManager.java:1208)
    
    
    
    at
    
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFil
    ters
    
    (WebAppFilterManager.java:1005)
    
    at
    
    com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispa
    tch(
    
    WebAppRequestDispatcher.java:1410)
    
    at
    
    com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forwa
    rd(W
    
    ebAppRequestDispatcher.java:171)
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty                              *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointerException might occur during *
    *                      dispatch forward.                       *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    When WebSocket is used to handle a request, spins off a runnable
    thread, and dispatches forward to a resource, it bypasses most
    of the initial setup in the WebContainer (in the runnable
    thread). This can cause a NullPointerException during the
    servlet's service() post process or cleanup.
    
    The problem does not happen if the dispatch forward is kept in
    the same thread of the initial WebSocket (i.e do not create a
    runnable thread).
    
    Sample of the stack
    
    [10/09/18 20:52:27:919 UTC] 00000060 id=00000000
    com.ibm.commerce.websocket.rest.server.MessageProcessor     E
    null java.lang.NullPointerException
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWr
    apper.java:1356)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Ser
    vletWrapper.java:743)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(Ser
    vletWrapper.java:440)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters
    (WebAppFilterManager.java:1208)
    at
    com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters
    (WebAppFilterManager.java:1005)
    at
    com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(
    WebAppRequestDispatcher.java:1410)
    atcom.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward
    (WebAppRequestDispatcher.java:171)
    ........
    

Problem conclusion

  • The WebContainer was corrected to prevent the exception in this
    direct dispatch forward call.
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 18.0.0.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

    PH02742

  • Reported component name

    LIBERTY PROFILE

  • Reported component ID

    5724J0814

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-09-12

  • Closed date

    2018-12-06

  • Last modified date

    2018-12-06

  • 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

  • RCD0 PSY

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"CD0","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
15 October 2021