You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2018/04/13 19:55:00 UTC

[jira] [Resolved] (OWB-1235) ConversationScope destroyed upon session serialization/deserialization

     [ https://issues.apache.org/jira/browse/OWB-1235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved OWB-1235.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.5

Was able to reproduce it by enabling session passivation to disc.

Should now be fixed.

 

Txs for the report!

> ConversationScope destroyed upon session serialization/deserialization
> ----------------------------------------------------------------------
>
>                 Key: OWB-1235
>                 URL: https://issues.apache.org/jira/browse/OWB-1235
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Enterprise Web Beans
>    Affects Versions: 2.0.4
>            Reporter: Holger Sunke
>            Assignee: Mark Struberg
>            Priority: Major
>             Fix For: 2.0.5
>
>
> Hello,
> I'm using OWB with Apache Tomcat 9. Whenever the session manager persists and later restores the session, my Conversations fail to restore.
> The session is persisted and restored e.g. wehn Tomcat is restarted or when using the org.apache.catalina.session.PersistentManager.
>  
> I debugged during the session restore process and noticed that org.apache.webbeans.context.SessionContext is instantiated multiple times. When JSF (Mojarra 2.3.3) tries to restore the ConversiationScope, a SessionContext instance with empty componentInstanceMap is consulted - although one of the mentioned instances  restored actually got the componentInstanceMap populated during session restore.
>  
> The Exception looks like this:
> javax.enterprise.context.NonexistentConversationException: Propogated conversation with cid=1 cannot be restored. Will create a new transient conversation.
>  at org.apache.webbeans.conversation.ConversationManager.getConversationContext(ConversationManager.java:108) ~[openwebbeans-impl-2.0.4.jar:2.0.4]
>  at org.apache.webbeans.web.context.WebContextsService.getConversationContext(WebContextsService.java:770) ~[openwebbeans-web-2.0.4.jar:2.0.4]
>  at org.apache.webbeans.web.context.WebContextsService.getCurrentContext(WebContextsService.java:286) ~[openwebbeans-web-2.0.4.jar:2.0.4]
>  at org.apache.webbeans.container.BeanManagerImpl.getContext(BeanManagerImpl.java:284) ~[openwebbeans-impl-2.0.4.jar:2.0.4]
>  at org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.getContextualInstance(NormalScopedBeanInterceptorHandler.java:89) ~[openwebbeans-impl-2.0.4.jar:2.0.4]
>  at org.apache.webbeans.intercept.NormalScopedBeanInterceptorHandler.get(NormalScopedBeanInterceptorHandler.java:71) ~[openwebbeans-impl-2.0.4.jar:2.0.4]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)