Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-8669

StringIndexOutOfBoundsException when deploying applications with 3 characters or less

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 6.1.0
    • 6.0.0.CR1
    • None
    • None
    • Hide

      Deploy an archive whose name has 3 characters or less.

      Show
      Deploy an archive whose name has 3 characters or less.

    Description

      Deploy an archive (in my case programmatically using MainDeployer, but should not matter), whose name has 3 characters or less.
      org.jboss.as.naming.javaee.NamingJavaEEApplicationInformer tries to truncate the last 4 characters, which results in
      java.lang.StringIndexOutOfBoundsException: String index out of range: -1
      at java.lang.String.substring(String.java:1937)
      at org.jboss.as.naming.javaee.NamingJavaEEApplicationInformer.getApplicationName(NamingJavaEEApplicationInformer.java:30)
      at org.jboss.reloaded.naming.deployers.AppNamingDeployer.internalDeploy(AppNamingDeployer.java:63)
      at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
      at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-cdewolf Carlo de Wolf
              r.neubauer@seeburger.de Rico Neubauer (Inactive)
              Votes:
              4 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: