]
Ales Justin reassigned JBAS-8669:
---------------------------------
Assignee: Carlo de Wolf (was: Ales Justin)
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: Carlo de Wolf
Attachments: JBAS-8669.diff
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: