[jboss-jira] [JBoss JIRA] (AS7-4451) ServerSetupTasks don't get cleaned up if there was a problem
Stuart Douglas (JIRA)
jira-events at lists.jboss.org
Tue Apr 10 20:52:54 EDT 2012
[ https://issues.jboss.org/browse/AS7-4451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stuart Douglas resolved AS7-4451.
---------------------------------
Resolution: Done
> ServerSetupTasks don't get cleaned up if there was a problem
> ------------------------------------------------------------
>
> Key: AS7-4451
> URL: https://issues.jboss.org/browse/AS7-4451
> Project: Application Server 7
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 7.1.1.Final
> Reporter: Kabir Khan
> Assignee: Stuart Douglas
> Fix For: 7.1.2.Final-redhat1
>
>
> Running the testsuite with the Turkish Locale as described in https://issues.jboss.org/browse/AS7-4450 fails during the server setup tasks. The setup task seems to hang around causing problems in later tests using ServerSetupTasks. If LdapLoginModuleTestCase is @Ignored the subsequent tests pass.
> {code}
> public synchronized void handleBeforeDeployment(@Observes BeforeDeploy event, Container container) throws Exception {
>
> --- SNIP ---
> final Class<? extends ServerSetupTask>[] classes = setup.value();
> if (current.isEmpty()) {
> for (Class<? extends ServerSetupTask> clazz : classes) {
> Constructor<? extends ServerSetupTask> ctor = clazz.getDeclaredConstructor();
> ctor.setAccessible(true);
> current.add(ctor.newInstance());
> }
> } else {
> //this should never happen
> for (int i = 0; i < current.size(); ++i) {
> if (classes[i] != current.get(i).getClass()) {
> // <<<<<<<< This error gets thrown <<<<<<<<<<<
> throw new RuntimeException("Mismatched ServerSetupTask current is " + current + " but " + currentClass + " is expecting " + Arrays.asList(classes));
> }
> }
> }
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list