[JBoss JIRA] Created: (JBREFLECT-101) Replace Cached tests by duplicate run of ClassPoolTestCase with cache enabled
by Flavia Rainone (JIRA)
Replace Cached tests by duplicate run of ClassPoolTestCase with cache enabled
-----------------------------------------------------------------------------
Key: JBREFLECT-101
URL: https://jira.jboss.org/jira/browse/JBREFLECT-101
Project: JBoss Reflection
Issue Type: Task
Components: Class Pool
Affects Versions: JBossReflection.2.2.0-Alpha3
Reporter: Flavia Rainone
Assignee: Flavia Rainone
Fix For: JBossReflection.2.2.0-Alpha4
All Cached test classes simply inherit a test class and sets the "org.jboss.classpool.policy" system property value to "org.jboss.util.TimedCachePolicy".
Below is an example of such test class:
public class CachedArchiveClassPoolTestCase extends ArchiveClassPoolTestCase
{
public CachedArchiveClassPoolTestCase(String name)
{
super(name);
}
@Override
protected void setUp() throws Exception
{
super.setUp();
System.setProperty(CtClassCacheFactory.POLICY_CLASS, TimedCachePolicy.class.getName());
}
}
These classes should be replaced by a second run of the extended ClassPoolTestCases with the system property configured as described.
--
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
16 years, 2 months
[JBoss JIRA] Created: (JBAS-7786) DataSourcePersistentManager storeSessionData attempts to continue using a db connection after an exception
by Brian Stansberry (JIRA)
DataSourcePersistentManager storeSessionData attempts to continue using a db connection after an exception
----------------------------------------------------------------------------------------------------------
Key: JBAS-7786
URL: https://jira.jboss.org/jira/browse/JBAS-7786
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering, Web (Tomcat) service
Affects Versions: JBossAS-6.0.0.M2, JBossAS-6.0.0.M1
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Fix For: JBossAS-6.0.0.M3
RDBMSStoreBase.storeSessionData has some logic to try to handle situations where a new session insert fails because the db already has a record[1] by instead updating that existing record. This logic is flawed because it doesn't rollback the existing db connection and get a new one before attempting this. Result is the error shown in the forum thread.
Fix is to rollback the connection and get a new one.
[1] This scenario can occur if an expired session is still in the db, the client browser presents the old session cookie, and JBoss Web allows a new session with the old id. I'm not certain but I believe JBW 3 actually no longer allows this???
--
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
16 years, 2 months