[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1277) ServerConversationContext does not process removals / additions when an exception propagates up

Pete Muir (JIRA) jira-events at lists.jboss.org
Tue Jul 29 16:50:55 EDT 2008


     [ https://jira.jboss.org/jira/browse/JBSEAM-1277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir updated JBSEAM-1277:
------------------------------

    Fix Version/s: 2.1.0.BETA2
                       (was: 2.1.0.GA)


> ServerConversationContext does not process removals / additions when an exception propagates up
> -----------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-1277
>                 URL: https://jira.jboss.org/jira/browse/JBSEAM-1277
>             Project: Seam
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0.GA, 1.2.1.GA, 1.3.0.ALPHA
>            Reporter: Chris Rudd
>             Fix For: 2.1.0.BETA2
>
>         Attachments: jbseam-1277.zip
>
>
> I have an Stateful EJB Component that throws an exception (this is expected, im testing that the system can recover from that error). This causes the component to be removed from the seam contexts (via the RemoveInterceptor). Then the exception floats up and is caught by the ExceptionFilter, and is redirected to a new view. All that works correctly. BUT when I return to the conversation that contained the EJB component, the component is still in it (even though the RemoveInterceptor removed it).
> Ive traced it down to this :
> ServerConversationContext.remove -- this adds the removal to the removals list, but does not update the session.attributes (the real storage for the context). 
> ServerConversationContext.flush -- this applies the removals / additions to the session attributes map.
> The problem is that flush is never called when an exception propagates out. Thus the changes to that context are never flushed to the session attributes.
>  

-- 
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 seam-issues mailing list