IBM Support

PI50108: JSF component binding with ViewScope beans does not work and cau ses an exception

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • ViewScopeBinding does not work; it results in an exception
    when using a datatable.
    
    Refer to MYFACES-3983
     
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Liberty    *
    *                  Profile version 8.5.5 users of JavaServer   *
    *                  Faces (JSF) Apache MyFaces 2.2              *
    ****************************************************************
    * PROBLEM DESCRIPTION: JSF 2.2 Component Binding is Broken in  *
    *                      the ViewScope                           *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    Utilizing JSF component binding in conjunction with ViewScope
    beans does not work correctly.
    
    Given such a scenario, an exception similar to the following
    will occur:
    
    Exception thrown by application class
    'javax.faces.webapp.FacesServlet.service:230'
      javax.servlet.ServletException:
    at
    javax.faces.webapp.FacesServlet.service(FacesServlet.java:230)
    at
    com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWr
    apper.java:1285)
    at [internal classes]
    
    Caused by: java.lang.NullPointerException:
    at
    org.apache.myfaces.view.facelets.compiler.CheckDuplicateIdFacele
    tUtils.createAndQueueException(CheckDuplicateIdFaceletUtils.java
    :139)
    ... 1 more
    

Problem conclusion

Temporary fix

  • When binding a JSF component to a bean, set the accessor method
    to return null.
    

Comments

APAR Information

  • APAR number

    PI50108

  • 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-10-08

  • Closed date

    2015-10-22

  • Last modified date

    2015-10-22

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

Document Information

Modified date:
22 October 2015