You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Vamsavardhana Reddy (JIRA)" <ji...@apache.org> on 2009/03/05 09:23:56 UTC
[jira] Updated: (OPENEJB-1005) org.apache.openejb.config.WebModule
constructor throws StringIndexOutOfBoundsException on windows
[ https://issues.apache.org/jira/browse/OPENEJB-1005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vamsavardhana Reddy updated OPENEJB-1005:
-----------------------------------------
Description:
org.apache.openejb.config.WebModule constructor has the following line:
contextRoot = jarLocation.substring(jarLocation.lastIndexOf('/'));
On windows, the jarLocation does not contain a "/" since the file separator is "\". This is resulting in StringIndexOutOfBoundsException. Stack trace is given below:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1762)
at java.lang.String.substring(String.java:1735)
at org.apache.openejb.config.WebModule.<init>(WebModule.java:51)
at org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:544)
at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:445)
at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:154)
...
was:
org.apache.openejb.config.WebModule constructor has the following line:
contextRoot = jarLocation.substring(jarLocation.lastIndexOf('/'));
On windows, the jarLocation does not contain a "/" since the path separator is "\". This is resulting in StringIndexOutOfBoundsException. Stack trace is given below:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1762)
at java.lang.String.substring(String.java:1735)
at org.apache.openejb.config.WebModule.<init>(WebModule.java:51)
at org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:544)
at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:445)
at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:154)
...
> org.apache.openejb.config.WebModule constructor throws StringIndexOutOfBoundsException on windows
> -------------------------------------------------------------------------------------------------
>
> Key: OPENEJB-1005
> URL: https://issues.apache.org/jira/browse/OPENEJB-1005
> Project: OpenEJB
> Issue Type: Bug
> Components: container system
> Affects Versions: 3.0, 3.0.1, 3.1, 3.1.1
> Environment: Windows XP
> Reporter: Vamsavardhana Reddy
> Fix For: 3.0.1, 3.1.1, 3.0.x
>
>
> org.apache.openejb.config.WebModule constructor has the following line:
> contextRoot = jarLocation.substring(jarLocation.lastIndexOf('/'));
> On windows, the jarLocation does not contain a "/" since the file separator is "\". This is resulting in StringIndexOutOfBoundsException. Stack trace is given below:
> java.lang.StringIndexOutOfBoundsException: String index out of range: -1
> at java.lang.String.substring(String.java:1762)
> at java.lang.String.substring(String.java:1735)
> at org.apache.openejb.config.WebModule.<init>(WebModule.java:51)
> at org.apache.openejb.config.DeploymentLoader.createWebModule(DeploymentLoader.java:544)
> at org.apache.openejb.config.DeploymentLoader.addWebModule(DeploymentLoader.java:445)
> at org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:154)
> ...
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.