myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek (JIRA)" <>
Subject [jira] [Created] (EXTCDI-184) ContextNotActiveException
Date Mon, 16 May 2011 16:01:47 GMT

                 Key: EXTCDI-184
             Project: MyFaces CODI
          Issue Type: Bug
            Reporter: Gerhard Petracek
            Priority: Trivial

this is a placeholder issue for all kinds of ContextNotActiveExceptions in combination with
codi scopes.
if further issues will be reported, we can use this issue as a reference.

ContextNotActiveException is caused by an access of a context and #isActive returns false.

the implementation of #isActive for codi scopes is:
return FacesContext.getCurrentInstance().getExternalContext().getSession(false) != null;

that means a session is required and you just have to ensure that your application doesn't
close it and tries to access a codi scope afterwards.

if your application is ok and you see this exception, contact the weld and/or mojarra community
because it can't be a codi bug.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message