]
Carlo de Wolf updated JBAS-8669:
--------------------------------
Attachment: JBAS-8669.patch
StringIndexOutOfBoundsException when deploying applications with 3
characters or less
-------------------------------------------------------------------------------------
Key: JBAS-8669
URL:
https://issues.jboss.org/browse/JBAS-8669
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 6.0.0.CR1
Reporter: Rico Neubauer
Assignee: Carlo de Wolf
Fix For: 6.0.0.Final
Attachments: JBAS-8669.diff, JBAS-8669.patch
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: