IBM Support

PI47454: NullPointer Exception is logged on console when DEBUG_PHASE_LISTENER set to true and validation fails

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If there is a bean validation like @Size(min = 5, max = 10) on
    a bean and the validation fails, a NullPointerException is
    thrown.
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  Customers using DEBUG_PHASE_LISTENER and    *
    *                  PROJECT_STAGE as Development in             *
    *                  a JavaServer Faces (JSF) 2.0 portlet on     *
    *                  WebSphere Portal Server version 8.0 and     *
    *                  later versions.                             *
    ****************************************************************
    * PROBLEM DESCRIPTION: NullPointer Exception is logged on      *
    *                      console when DEBUG_PHASE_LISTENER is    *
    *                      set to true and PROJECT_STAGE is set    *
    *                      to Development in a JSF 2.0 portlet     *
    *                      project                                 *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    NullPointer Exception is logged on
    console when org.apache.myfaces.DEBUG_PHASE_LISTENER is set to
    true and javax.faces.PROJECT_STAGE is set to Development in a
    JSF 2.0 portlet project . Following exception is logged:-
    Caused by: java.lang.NullPointerException
    at org.apache.myfaces.view.facelets.tag.ui
    .DebugPhaseListener$DebugVisitCallback
    ._createFieldDebugInfosIfNecessary(DebugPhaseListener.java:234)
    

Problem conclusion

  • The JSF 2.0 Portlet Bridge was updated to fix this issue.
    Please add following parameter in web.xml
    <context-param>
    <param-name>
    com.ibm.faces.portlet.USE_DEBUG_PHASE_LISTENER
    </param-name>
    <param-value>true</param-value>
    </context-param>
    
    The fix for this APAR is currently targeted for inclusion in
    fix packs 8.0.0.13 and 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

    PI47454

  • Reported component name

    WEBSPHERE APP S

  • Reported component ID

    5724J0800

  • Reported release

    850

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2015-08-24

  • Closed date

    2016-01-04

  • Last modified date

    2016-07-07

  • 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

    WEBSPHERE APP S

  • Fixed component ID

    5724J0800

Applicable component levels

  • R700 PSY

       UP

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

Document Information

Modified date:
28 April 2022