IBM Support

PM61337: INJECTION OF EJB IN VIEWSCOPED MANAGED BEAN RESULTED IN NOTSERIALIZABLEEXCEPTION.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Injection of EJB in ViewScoped Managed Bean,
    NotSerializableException.
    ************
    Exiting serializeView - Could not serialize state: com.ibm.ejs.
    
    container.EJSContainer
    java.io.NotSerializableException:
    com.ibm.ejs.container.EJSContainer
    at
    java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
    1184)
    at
    java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream
    .
    java:1537)
    at
    java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.ja
    va:
    1502)
    at
    java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStrea
    m.
    java:1420)
    at
    java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
    1178)
    at
    java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream
    .
    java:1537)
    at
    java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.ja
    va:
    1502)
    at
    java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStrea
    m.
    java:1420)
    *******************
    

Local fix

  • n/a
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server that use JavaServer Faces (JSF) and  *
    *                  Contexts and Dependency Injection(CDI).     *
    ****************************************************************
    * PROBLEM DESCRIPTION: Injection of EJB with @EJB fails IN     *
    *                      @ViewScoped JSF 2 MANAGED BEAN          *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    JSF 2 state saving code needs awareness of  both CDI and EJB
    serialization to properly serialize and deserialize
    JSF Managed beans that contain @EJB, @Inject EJB and @Inject
    CDI beans.
    

Problem conclusion

  • JSF 2 state saving code has been changed to accomodate saving
    and creation of of CDI and EJB proxies.
    
    The fix for this APAR is currently targeted for inclusion in
    fix pack 8.0.0.5 and 8.5.0.1.  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

    PM61337

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    800

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-03-28

  • Closed date

    2012-06-07

  • Last modified date

    2013-03-18

  • 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

    WEBS APP SERV N

  • Fixed component ID

    5724H8800

Applicable component levels

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

Document Information

Modified date:
28 October 2021