[jboss-jira] [JBoss JIRA] Created: (JBAS-8669) StringIndexOutOfBoundsException when deploying applications with 3 characters or less
Rico Neubauer (JIRA)
jira-events at lists.jboss.org
Fri Nov 26 06:54:30 EST 2010
StringIndexOutOfBoundsException when deploying applications with 3 characters or less
-------------------------------------------------------------------------------------
Key: JBAS-8669
URL: https://jira.jboss.org/browse/JBAS-8669
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Deployers
Affects Versions: 6.0.0.CR1
Reporter: Rico Neubauer
Assignee: Ales Justin
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)
--
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