[arquillian-issues] [JBoss JIRA] (ARQ-1066) ArchiveDeployer.deployInternal() always uses null rootCause

James Livingston (JIRA) jira-events at lists.jboss.org
Mon Aug 13 02:26:14 EDT 2012


     [ https://issues.jboss.org/browse/ARQ-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Livingston resolved ARQ-1066.
-----------------------------------

    Resolution: Rejected


Wrong project
                
> ArchiveDeployer.deployInternal() always uses null rootCause
> -----------------------------------------------------------
>
>                 Key: ARQ-1066
>                 URL: https://issues.jboss.org/browse/ARQ-1066
>             Project: Arquillian
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Base Implementation
>            Reporter: James Livingston
>
> ArchiveDeployer.deployInternal() 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 arquillian-issues mailing list