[jboss-jira] [JBoss JIRA] (AS7-5348) ArchiveDeployer.deployInternal() always uses null rootCause
Brian Stansberry (JIRA)
jira-events at lists.jboss.org
Mon Aug 13 10:18:15 EDT 2012
[ https://issues.jboss.org/browse/AS7-5348?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Stansberry updated AS7-5348:
----------------------------------
Fix Version/s: 7.2.0.Alpha1
Git Pull Request: https://github.com/jbossas/jboss-as/pull/2876 (was: https://github.com/jbossas/jboss-as/pull/2876)
Affects Version/s: (was: 7.2.0.CR1)
I removed the "7.2.0.CR1" Affects Version as we haven't done any 7.2.x releases. If this affects a 7.1.2 or earlier, please go ahead and restore.
> ArchiveDeployer.deployInternal() always uses null rootCause
> -----------------------------------------------------------
>
> Key: AS7-5348
> URL: https://issues.jboss.org/browse/AS7-5348
> Project: Application Server 7
> Issue Type: Bug
> Components: Test Suite
> Reporter: James Livingston
> Assignee: Ondrej Zizka
> Fix For: 7.2.0.Alpha1
>
>
> deployInternal() in ArchiveDeployer (from arquillian/) walks back along the chain of initialCause exceptions to attach the root cause to the thrown exception, presumably in an attempt to reduce the clutter in the output.
> The way it does so is incorrect and will always result in rootCause=null. I think that it should just attach "ex" as-is, but if stripping the intermediate exceptions is what is desired, then the while condition should be "rootCause != null && rootCause.getCause() != null", so that it extracts the last one.
> –
> Throwable rootCause = ex.getCause();
> while (null != rootCause) { rootCause = rootCause.getCause(); }
> throw new DeploymentException("Cannot deploy: " + name, rootCause);
> –
--
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