IBM Support

PI30335: DEPENDENCY INJECTION OF A JSF MANAGEDPROPERTY COMES AFTER A @POSTCONSTRUCT ON LIBERTY PROFILE

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Dependency injection of a JSF ManagedProperty comes
    after a @PostConstruct on Liberty Profile
    
    The JEE6 Api states the PostConstruct annotation is used on a
    method that needs to be executed after dependency injection is
    done to perform any initialization. This method MUST be invoked
    before the class is put into service.
    
    source:
    
    http://docs.oracle.com/javaee/6/api/javax/annotation/PostConstr
    uct.html
    

Local fix

  • N/A
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Liberty    *
    *                  Profile version 8.5.5 users of JavaServer   *
    *                  Faces (JSF) MyFaces                         *
    ****************************************************************
    * PROBLEM DESCRIPTION: Dependency injection is not performed   *
    *                      correctly for JSF ManagedProperty       *
    *                      objects.                                *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    javax.annotation.PostConstruct-annotated methods are not always
    called before the corresponding objects are put into service.
    This causes dependency injection to not be performed correctly
    for JSF javax.faces.bean.ManagedProperty-annotated objects.
    

Problem conclusion

  • Updates were made to ensure that the PostConstruct annotation is
    invoked before Dependency Injected classes are put into service.
    Set the following context parameter to true to enable the fix:
    com.ibm.ws.jsf.delayManagedBeanPostConstruct (true / false -
    default)
    
    The fix for this APAR is currently targeted for inclusion in fix
    pack 8.5.5.5.  Please refer to the Recommended Updates page for
    delivery information:
    http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980
    

Temporary fix

  • N/A
    

Comments

APAR Information

  • APAR number

    PI30335

  • 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

    2014-11-25

  • Closed date

    2015-02-03

  • Last modified date

    2015-02-19

  • 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":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSD28V","label":"WebSphere Application Server Liberty Core"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"855","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
27 April 2022