[jboss-jira] [JBoss JIRA] Commented: (EJBTHREE-1846) CLONE -Injected SessionContext became invalid after passivation

Krashan Brahmanjara (JIRA) jira-events at lists.jboss.org
Wed Jun 10 03:46:56 EDT 2009


    [ https://jira.jboss.org/jira/browse/EJBTHREE-1846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12471348#action_12471348 ] 

Krashan Brahmanjara commented on EJBTHREE-1846:
-----------------------------------------------

That problem still exist.  Code below throws NPE at ctx.getBusinessObject. 

 private @Resource SessionContext ctx;
 TestLocal testBean;

 public TestBean() {
    super();
    testBean = ctx.getBusinessObject(TestLocal.class);
  }

> CLONE -Injected SessionContext became invalid after passivation
> ---------------------------------------------------------------
>
>                 Key: EJBTHREE-1846
>                 URL: https://jira.jboss.org/jira/browse/EJBTHREE-1846
>             Project: EJB 3.0
>          Issue Type: Bug
>    Affects Versions: AS 5.0.0.CR1
>         Environment: JBoss AS 5.1.0DR
>            Reporter: Krashan Brahmanjara
>            Assignee: Andrew Lee Rubinger
>
> I have SFSB with SessionContext injected as:
> @Resource
> private SessionContext ctx;
> Some of my SFSB's methods use ctx.getBusinessObject(). After passivation and activation of bean ctx.getBusinessObject() produces NPE.
> While debugging I discover that ctx is instance of org.jboss.ejb3.BaseSessionContext. In it's writeExternal() / readExternal() it loose baseContext, which is needed for getBusinessObject() invocation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list