You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org> on 2011/05/16 18:01:47 UTC
[jira] [Created] (EXTCDI-184) ContextNotActiveException
ContextNotActiveException
-------------------------
Key: EXTCDI-184
URL: https://issues.apache.org/jira/browse/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: http://www.atlassian.com/software/jira
[jira] [Resolved] (EXTCDI-184) mojarra causes a
ContextNotActiveException
Posted by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/EXTCDI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek resolved EXTCDI-184.
-------------------------------------
Resolution: Fixed
> mojarra causes a ContextNotActiveException
> ------------------------------------------
>
> Key: EXTCDI-184
> URL: https://issues.apache.org/jira/browse/EXTCDI-184
> Project: MyFaces CODI
> Issue Type: Bug
> Affects Versions: 0.9.5
> Reporter: Gerhard Petracek
> Priority: Minor
> Fix For: 1.0.0
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (EXTCDI-184) ContextNotActiveException
Posted by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/EXTCDI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek resolved EXTCDI-184.
-------------------------------------
Resolution: Won't Fix
> ContextNotActiveException
> -------------------------
>
> Key: EXTCDI-184
> URL: https://issues.apache.org/jira/browse/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: http://www.atlassian.com/software/jira
[jira] [Reopened] (EXTCDI-184) ContextNotActiveException
Posted by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/EXTCDI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek reopened EXTCDI-184:
-------------------------------------
> ContextNotActiveException
> -------------------------
>
> Key: EXTCDI-184
> URL: https://issues.apache.org/jira/browse/EXTCDI-184
> Project: MyFaces CODI
> Issue Type: Bug
> Affects Versions: 0.9.5
> Reporter: Gerhard Petracek
> Priority: Trivial
> Fix For: 1.0.0
>
>
> 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: http://www.atlassian.com/software/jira
[jira] [Reopened] (EXTCDI-184) mojarra causes a
ContextNotActiveException
Posted by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org>.
[ https://issues.apache.org/jira/browse/EXTCDI-184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek reopened EXTCDI-184:
-------------------------------------
> mojarra causes a ContextNotActiveException
> ------------------------------------------
>
> Key: EXTCDI-184
> URL: https://issues.apache.org/jira/browse/EXTCDI-184
> Project: MyFaces CODI
> Issue Type: Bug
> Components: JEE-JSF12-Module, JEE-JSF20-Module
> Affects Versions: 0.9.5
> Reporter: Gerhard Petracek
> Priority: Minor
> Fix For: 1.0.0
>
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira