java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Oracle Community | 3004 | 1 decade ago
  1. 0

    SP2 StringIndexOutOfBoundsException deploying webapp

    Google Groups | 1 decade ago | Alex Li
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    WLS 6.1, SP2, Error Deploying WAR, Manifest file problem

    Oracle Community | 1 decade ago | 3004
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  4. 0

    MANIFEST.MF; 72 char limit; strange line break; StringIndexOutOfBoundsException; HELP!

    Google Groups | 1 decade ago | Paul Rowe
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    String index out of range: -1

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1525)
    1 frame
  3. weblogic.utils.jars
    Manifest.stream
    1. weblogic.utils.jars.ManifestEntry.stream(ManifestEntry.java:166)
    2. weblogic.utils.jars.Manifest.stream(Manifest.java:81)
    2 frames
  4. Atmosphere weblogic
    HttpServer.loadWebApp
    1. weblogic.servlet.internal.WebAppHelper.resolveManifestName(WebAppHelper.java:398)
    2. weblogic.servlet.internal.WebAppHelper.extractClassFiles(WebAppHelper.java:234)
    3. weblogic.servlet.internal.WebAppServletContext.extractClassFiles(WebAppServletContext.java:3407)
    4. weblogic.servlet.internal.WebAppServletContext.setDocroot(WebAppServletContext.java:3376)
    5. weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:862)
    6. weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:815)
    7. weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:428)
    7 frames
  5. weblogic.j2ee
    J2EEService.addDeployment
    1. weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
    2. weblogic.j2ee.Application.addComponent(Application.java:163)
    3. weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:117)
    3 frames
  6. weblogic.management.mbeans
    WebServer.addWebDeployment
    1. weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:329)
    2. weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    3. weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:76)
    3 frames
  7. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  8. weblogic.management.internal
    ConfigurationMBeanImpl.invoke
    1. weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
    2. weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
    3. weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
    3 frames
  9. Java RT
    MBeanServerImpl.invoke
    1. com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    2. com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    2 frames
  10. weblogic.management.internal
    MBeanProxy.invoke
    1. weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    2. weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    2 frames
  11. Unknown
    $Proxy30.addWebDeployment
    1. $Proxy30.addWebDeployment(Unknown Source)
    1 frame
  12. weblogic.management.configuration
    WebServerMBean_CachingStub.addWebDeployment
    1. weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServerMBean_CachingStub.java:1121)
    1 frame
  13. weblogic.management.mbeans
    DeploymentTarget.addDeployment
    1. weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:315)
    2. weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java:144)
    2 frames
  14. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  15. weblogic.management.internal
    ConfigurationMBeanImpl.invoke
    1. weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:636)
    2. weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:621)
    3. weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:359)
    3 frames
  16. Java RT
    MBeanServerImpl.invoke
    1. com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    2. com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    2 frames
  17. weblogic.management.internal
    ConfigurationMBeanImpl.invoke
    1. weblogic.management.internal.ConfigurationMBeanImpl.updateConfigMBeans(ConfigurationMBeanImpl.java:491)
    2. weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java:361)
    2 frames
  18. Java RT
    MBeanServerImpl.invoke
    1. com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1555)
    2. com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
    2 frames
  19. weblogic.management.internal
    MBeanProxy.invoke
    1. weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:468)
    2. weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:209)
    2 frames
  20. Unknown
    $Proxy14.addDeployment
    1. $Proxy14.addDeployment(Unknown Source)
    1 frame
  21. weblogic.management.internal
    ConfigurationMBeanImpl.setAttribute
    1. weblogic.management.internal.DynamicMBeanImpl.updateDeployments(DynamicMBeanImpl.java:1516)
    2. weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:895)
    3. weblogic.management.internal.DynamicMBeanImpl.setAttribute(DynamicMBeanImpl.java:847)
    4. weblogic.management.internal.ConfigurationMBeanImpl.setAttribute(ConfigurationMBeanImpl.java:295)
    4 frames
  22. Java RT
    MBeanServerImpl.setAttribute
    1. com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1356)
    2. com.sun.management.jmx.MBeanServerImpl.setAttribute(MBeanServerImpl.java:1331)
    2 frames
  23. weblogic.management.internal
    MBeanProxy.invoke
    1. weblogic.management.internal.MBeanProxy.setAttribute(MBeanProxy.java:322)
    2. weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:204)
    2 frames
  24. Unknown
    $Proxy11.setTargets
    1. $Proxy11.setTargets(Unknown Source)
    1 frame
  25. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  26. weblogic.management.console
    ActionServlet.doPost
    1. weblogic.management.console.info.FilteredMBeanAttribute.doSet(FilteredMBeanAttribute.java:92)
    2. weblogic.management.console.actions.mbean.DoEditMBeanAction.perform(DoEditMBeanAction.java:135)
    3. weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
    4. weblogic.management.console.actions.internal.ActionServlet.doPost(ActionServlet.java:85)
    4 frames
  27. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    2. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    2 frames
  28. Atmosphere weblogic
    ServletRequestImpl.execute
    1. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:265)
    2. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:200)
    3. weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2495)
    4. weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2204)
    4 frames
  29. weblogic.kernel
    ExecuteThread.run
    1. weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    2. weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    2 frames