IBM Support

PM52695: CONTEXTNOTACTIVEEXCEPTION ON @CONVERSATIONSCOOPED ANNOTATION

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When using the Annotation type @ConversationScpoed customer is
    getting a FacesException.
    

Local fix

  • Setting the JSF Project Stage to "Production" in the web.xml
    and redeploying the application resolves
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  IBM WebSphere Application Server Version    *
    *                  8.0 users of MyFaces JavaServer Faces       *
    *                  (JSF).                                      *
    ****************************************************************
    * PROBLEM DESCRIPTION: When using the MyFaces implementation   *
    *                      JSF 2.0 and Contexts and Dependency     *
    *                      Injection (CDI) an exception occurs     *
    *                      when a @ConversationScoped parameter    *
    *                      is used in a Transient Conversation     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    If the JSF Project Stage is set to "Development" the following
    exception can occur:
    javax.faces.FacesException:
    javax.enterprise.context.ContextNotActiveException: WebBeans
    context
    with scope type annotation @ConversationScoped does not exist
    within
    current thread
    at
    org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.wrap
    ExceptionHandlerImpl.java:241)
    at
    org.apache.myfaces.shared_impl.context.ExceptionHandlerImpl.hand
    le(Excep
    tionHandlerImpl.java:156)
    This error occurs because MyFaces has a DebugPhaseListener
    that is executed before the CDI PhaseListener that sets the
    ConversationScope to active.  The DebugPhaseListener is
    attempting to resolve all of the Expression Language
    expressions which is what leads to the
    ContextNotActiveException.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    PM52695

  • Reported component name

    WEBS APP SERV N

  • Reported component ID

    5724H8800

  • Reported release

    61W

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-11-21

  • Closed date

    2012-01-06

  • Last modified date

    2012-03-09

  • 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

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
28 October 2021