From issues at jboss.org Tue Sep 22 05:12:00 2015 From: issues at jboss.org (Trong Tran (JIRA)) Date: Tue, 22 Sep 2015 05:12:00 -0400 (EDT) Subject: [gatein-issues] [JBoss JIRA] (GTNPORTAL-3218) The global chromattic session context doesn't close properly In-Reply-To: References: Message-ID: [ https://issues.jboss.org/browse/GTNPORTAL-3218?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12795529#comment-12795529 ] Trong Tran edited comment on GTNPORTAL-3218 at 9/22/15 5:11 AM: ---------------------------------------------------------------- I have closed https://github.com/gatein/gatein-portal/pull/615 as the fix is not complete. was (Author: trong.tran): The fix it not complete > The global chromattic session context doesn't close properly > ------------------------------------------------------------ > > Key: GTNPORTAL-3218 > URL: https://issues.jboss.org/browse/GTNPORTAL-3218 > Project: GateIn Portal > Issue Type: Bug > Reporter: Trong Tran > Assignee: Trong Tran > Fix For: 3.9.0.Final > > > The following unit testcase doesn't work, it fails in the second openning of the context : > {code} > public void testGlobalSessionClose() { > chromatticManager.beginRequest(); > try { > test1LF.openContext(); > // do something > test1LF.closeContext(false); // close without persisting changes to DB > // > test1LF.openContext(); > test1LF.closeContext(true); > } > finally { > chromatticManager.endRequest(true); > } > } > {code} > it raises an exception of java.lang.IllegalStateException: A context is already opened -- This message was sent by Atlassian JIRA (v6.4.11#64026)