[gatein-issues] [JBoss JIRA] (GTNPORTAL-3218) The global chromattic session context doesn't close properly
Trong Tran (JIRA)
jira-events at lists.jboss.org
Tue Aug 6 07:07:26 EDT 2013
[ https://issues.jboss.org/browse/GTNPORTAL-3218?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Trong Tran updated GTNPORTAL-3218:
----------------------------------
Description:
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
was:
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(true);
//
test1LF.openContext();
test1LF.closeContext(true);
}
finally {
chromatticManager.endRequest(true);
}
}
{code}
it raises an exception of java.lang.IllegalStateException: A context is already opened
> 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
> Security Level: Public(Everyone can see)
> Reporter: Trong Tran
> Labels: backlogs
> Fix For: 3.7.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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list