[ 
http://jira.magnolia.info/browse/MAGNOLIA-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17576#action_17576
 ] 

Jan Haderka commented on MAGNOLIA-2331:
---------------------------------------

The Workflow/ExpressionStore issue seems like a race condition on startup. 
AbstractExpressionStore tries to first call loadExpression() method of the 
JCRExpressionStore and if this call fails with exception it will silently 
swallow the exception and call storeExpression() method instead. Since each of 
the methods obtain hierarchy manager it is possible to get session with pending 
changes in the second call. To get more insight we should wrap content of 
loadExpression() in the try/catch block and make sure any exceptions are 
properly reported.

> WARN: session has been already closed
> -------------------------------------
>
>                 Key: MAGNOLIA-2331
>                 URL: http://jira.magnolia.info/browse/MAGNOLIA-2331
>             Project: Magnolia
>          Issue Type: Bug
>    Affects Versions: 3.6.1
>            Reporter: Sameer Charles
>            Assignee: Boris Kraft
>            Priority: Minor
>
> I have the following exception and related WARN each time I activate a 
> website node.
> Default installation, no changes to workflow etc..
> This happens always:
> IWARN   info.magnolia.context.AbstractRepositoryStrategy 
> AbstractRepositoryStrategy.java(release:153) 19.08.2008 17:25:58  session has 
> been already closed website
> WARN   info.magnolia.context.AbstractRepositoryStrategy 
> AbstractRepositoryStrategy.java(release:153) 19.08.2008 17:25:58  session has 
> been already closed website
> and this randomly:
> -----------------------------------------------------------------------------------------------
> WARN   info.magnolia.module.workflow.jcr.JCRExpressionStore 
> JCRExpressionStore.java(getHierarchyManager:293) 19.08.2008 17:25:45  The 
> workflow expression session has pending changes. Will clean the session
> java.lang.Exception
>         at 
> info.magnolia.module.workflow.jcr.JCRExpressionStore.getHierarchyManager(JCRExpressionStore.java:293)
>         at 
> info.magnolia.module.workflow.jcr.JCRExpressionStore.storeExpression(JCRExpressionStore.java:105)
>         at 
> openwfe.org.engine.impl.expool.AbstractExpressionStore.loadEngineEnvironment(AbstractExpressionStore.java:136)
>         at 
> openwfe.org.engine.impl.expool.SimpleExpressionPool.fetchEngineEnvironment(SimpleExpressionPool.java:406)
>         at 
> openwfe.org.engine.impl.expool.CachedExpressionPool.fetchEngineEnvironment(CachedExpressionPool.java:232)
>         at 
> openwfe.org.engine.impl.expool.SimpleExpressionPool.reschedule(SimpleExpressionPool.java:1330)
>         at 
> openwfe.org.engine.impl.expool.SimpleExpressionPool.trigger(SimpleExpressionPool.java:1393)
>         at openwfe.org.time.Scheduler$Entry.trigger(Scheduler.java:490)
>         at openwfe.org.time.Scheduler.wakeup(Scheduler.java:461)
>         at openwfe.org.time.Scheduler$SchedulerThread.run(Scheduler.java:577)

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

        

----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/
----------------------------------------------------------------

Reply via email to