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

Sonatype JIRA | Deleted User | 8 years ago
  1. 0

    Dropped 1.3.0 war into tomcat, upon startup get the following: SEVERE: Error deploying web application archive mvn.war java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1938) at org.sonatype.nexus.log4j.AbstractConcisePatternConverter.simplify(AbstractConcisePatternConverter.java:96) at org.sonatype.nexus.log4j.CategoryConcisePatternConverter.appendConciseCategory(CategoryConcisePatternConverter.java:53) at org.sonatype.nexus.log4j.CategoryConcisePatternConverter.getConciseName(CategoryConcisePatternConverter.java:40) at org.sonatype.nexus.log4j.AbstractConcisePatternConverter.convert(AbstractConcisePatternConverter.java:43) at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64) at org.apache.log4j.PatternLayout.format(PatternLayout.java:503) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301) at org.apache.log4j.WriterAppender.append(WriterAppender.java:159) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.log(Category.java:853) at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:597) at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:179) at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:252) at java.util.logging.Logger.log(Logger.java:472) at java.util.logging.Logger.doLog(Logger.java:494) at java.util.logging.Logger.logp(Logger.java:694) at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:167) at org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:135) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3847) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

    Sonatype JIRA | 8 years ago | Deleted User
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  2. 0

    Dropped 1.3.0 war into tomcat, upon startup get the following: SEVERE: Error deploying web application archive mvn.war java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1938) at org.sonatype.nexus.log4j.AbstractConcisePatternConverter.simplify(AbstractConcisePatternConverter.java:96) at org.sonatype.nexus.log4j.CategoryConcisePatternConverter.appendConciseCategory(CategoryConcisePatternConverter.java:53) at org.sonatype.nexus.log4j.CategoryConcisePatternConverter.getConciseName(CategoryConcisePatternConverter.java:40) at org.sonatype.nexus.log4j.AbstractConcisePatternConverter.convert(AbstractConcisePatternConverter.java:43) at org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64) at org.apache.log4j.PatternLayout.format(PatternLayout.java:503) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301) at org.apache.log4j.WriterAppender.append(WriterAppender.java:159) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65) at org.apache.log4j.Category.callAppenders(Category.java:203) at org.apache.log4j.Category.forcedLog(Category.java:388) at org.apache.log4j.Category.log(Category.java:853) at org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:597) at org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:179) at org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:252) at java.util.logging.Logger.log(Logger.java:472) at java.util.logging.Logger.doLog(Logger.java:494) at java.util.logging.Logger.logp(Logger.java:694) at org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:167) at org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:135) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3847) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)

    Sonatype JIRA | 8 years ago | Deleted User
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  3. 0

    "500 Internal Server Error" response from asynchronous AquaLogic proxy

    Oracle Community | 8 years ago | 650837
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    StringIndexOutOfBoundsException thrown in BcelWeaver

    Eclipse Bugzilla | 9 years ago | mhuffman
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  6. 0

    StringIndexOutOfBoundsException in com.googlecode.sardine.SardineImpl.getResources(SardineImpl.java:221)

    GitHub | 4 years ago | dkocher
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2

  1. richard77 2 times, last 2 days ago
  2. kjhdofjosvs 2 times, last 6 days ago
  3. archenroot 17 times, last 2 weeks ago
  4. Alexandru Popa 2 times, last 3 weeks ago
  5. poroszd 3 times, last 4 weeks ago
18 more registered users
58 unregistered visitors
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: -2

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1938)
    1 frame
  3. org.sonatype.nexus
    AbstractConcisePatternConverter.convert
    1. org.sonatype.nexus.log4j.AbstractConcisePatternConverter.simplify(AbstractConcisePatternConverter.java:96)
    2. org.sonatype.nexus.log4j.CategoryConcisePatternConverter.appendConciseCategory(CategoryConcisePatternConverter.java:53)
    3. org.sonatype.nexus.log4j.CategoryConcisePatternConverter.getConciseName(CategoryConcisePatternConverter.java:40)
    4. org.sonatype.nexus.log4j.AbstractConcisePatternConverter.convert(AbstractConcisePatternConverter.java:43)
    4 frames
  4. Apache Log4j
    Category.log
    1. org.apache.log4j.helpers.PatternConverter.format(PatternConverter.java:64)
    2. org.apache.log4j.PatternLayout.format(PatternLayout.java:503)
    3. org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:301)
    4. org.apache.log4j.WriterAppender.append(WriterAppender.java:159)
    5. org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)
    6. org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:65)
    7. org.apache.log4j.Category.callAppenders(Category.java:203)
    8. org.apache.log4j.Category.forcedLog(Category.java:388)
    9. org.apache.log4j.Category.log(Category.java:853)
    9 frames
  5. SLF4J LOG4J-12 Binding
    Log4jLoggerAdapter.log
    1. org.slf4j.impl.Log4jLoggerAdapter.log(Log4jLoggerAdapter.java:597)
    1 frame
  6. JUL to SLF4J bridge
    SLF4JBridgeHandler.publish
    1. org.slf4j.bridge.SLF4JBridgeHandler.callLocationAwareLogger(SLF4JBridgeHandler.java:179)
    2. org.slf4j.bridge.SLF4JBridgeHandler.publish(SLF4JBridgeHandler.java:252)
    2 frames
  7. Java RT
    Logger.logp
    1. java.util.logging.Logger.log(Logger.java:472)
    2. java.util.logging.Logger.doLog(Logger.java:494)
    3. java.util.logging.Logger.logp(Logger.java:694)
    3 frames
  8. TomEE Juli
    DirectJDKLog.error
    1. org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:167)
    2. org.apache.juli.logging.DirectJDKLog.error(DirectJDKLog.java:135)
    2 frames
  9. Glassfish Core
    Catalina.start
    1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3847)
    2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
    3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    6. org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
    7. org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
    8. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
    9. org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
    10. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
    11. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
    12. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    13. org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    14. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    15. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    16. org.apache.catalina.core.StandardService.start(StandardService.java:516)
    17. org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    18. org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    18 frames
  10. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  11. Glassfish Core
    Bootstrap.start
    1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    1 frame
  12. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  13. Commons Daemon
    DaemonLoader.start
    1. org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:177)
    1 frame