[jboss-jira] [JBoss JIRA] Updated: (JBDEPLOY-276) End of file new line in aliases.txt creates empty alias
Pontus Ullgren (JIRA)
jira-events at lists.jboss.org
Tue Jul 12 03:15:23 EDT 2011
[ https://issues.jboss.org/browse/JBDEPLOY-276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pontus Ullgren updated JBDEPLOY-276:
------------------------------------
Attachment: JBDEPLOY-276.diff.gz
Here is a untested patch that should solve the problem. Untested since yet been unable to figure out howto build the package.
> End of file new line in aliases.txt creates empty alias
> -------------------------------------------------------
>
> Key: JBDEPLOY-276
> URL: https://issues.jboss.org/browse/JBDEPLOY-276
> Project: JBoss Deployers
> Issue Type: Bug
> Components: vfs
> Affects Versions: JBDEPLOY-2.2.1.GA
> Reporter: Pontus Ullgren
> Priority: Minor
> Attachments: JBDEPLOY-276.diff.gz
>
>
> A empty line in aliases.txt will result in a alias without name being created.
> This becomes obvious when two modules happens to have a empty new line in the end of the aliases.txt file the result is then
> Caused by: java.lang.IllegalStateException:
> _Alias_AbstractKernelController[29048474] is already installed.
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:716)
> My suggestion is to simply filter out any empty line in org.jboss.deployers.vfs.plugins.dependency.AliasesParserDeployer#parse(...).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list