[jboss-jira] [JBoss JIRA] Created: (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:06:23 EDT 2011


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


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