java.lang.StringIndexOutOfBoundsException: String index out of range: 4

XWiki.org JIRA | Jerome Velociter | 5 years ago
  1. 0

    I fails with : {code} java.lang.StringIndexOutOfBoundsException: String index out of range: 4 at java.lang.StringBuffer.charAt(StringBuffer.java:162) at com.novell.ldap.LDAPDN.escapeRDN(Unknown Source) at com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.escapeLDAPDNValue(XWikiLDAPConnection.java:381) at com.xpn.xwiki.plugin.ldap.XWikiLDAPConfig.getLDAPBindDN(XWikiLDAPConfig.java:400) at com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:91) 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.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:132) at Script1.run(Script1.groovy:84) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:576) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:614) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:585) at com.xpn.xwiki.plugin.scheduler.GroovyJob.executeJob(GroovyJob.java:85) at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525) {code}

    XWiki.org JIRA | 5 years ago | Jerome Velociter
    java.lang.StringIndexOutOfBoundsException: String index out of range: 4
  2. 0

    'null' URL allowed in maven service configurable

    YouTrack | 5 years ago
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  3. 0

    Problem java.lang.StringIndexOutOfBoundsException: String index out of range: 0 occured when trying to process 'http://www.indefighter.com/hp/news/index.php?action=show&id=58' at step ABOUT_TO_BEGIN_PROCESSOR in ExtractorHTML (in thread 'ToeThread #47: http://www.indefighter.com/hp/news/index.php?action=show&id=58'; in processor 'ExtractorHTML') java.lang.StringIndexOutOfBoundsException: String index out of range: 0 Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.StringBuffer.charAt(StringBuffer.java:162) at gnu.inet.encoding.NFKC.canonicalOrdering(NFKC.java:161) at gnu.inet.encoding.NFKC.normalizeNFKC(NFKC.java:58) at gnu.inet.encoding.Stringprep.nameprep(Stringprep.java:42) at gnu.inet.encoding.IDNA.toASCII(IDNA.java:89) at gnu.inet.encoding.IDNA.toASCII(IDNA.java:55) at org.archive.net.UURIFactory.fixupDomainlabel(UURIFactory.java:646) at org.archive.net.UURIFactory.fixupAuthority(UURIFactory.java:608) at org.archive.net.UURIFactory.fixup(UURIFactory.java:470) at org.archive.net.UURIFactory.create(UURIFactory.java:340) at org.archive.net.UURIFactory.getInstance(UURIFactory.java:289) at org.archive.crawler.datamodel.CrawlURI.createAndAddLinkRelativeToBase(CrawlURI.java:1314) at org.archive.crawler.extractor.ExtractorHTML.addLinkFromString(ExtractorHTML.java:477) at org.archive.crawler.extractor.ExtractorHTML.processLink(ExtractorHTML.java:462) at org.archive.crawler.extractor.ExtractorHTML.processGeneralTag(ExtractorHTML.java:285) at org.archive.crawler.extractor.ExtractorHTML.extract(ExtractorHTML.java:611) at org.archive.crawler.extractor.ExtractorHTML.extract(ExtractorHTML.java:557) at org.archive.crawler.extractor.Extractor.innerProcess(Extractor.java:67) at org.archive.crawler.framework.Processor.process(Processor.java:112) at org.archive.crawler.framework.ToeThread.processCrawlUri(ToeThread.java:302) at org.archive.crawler.framework.ToeThread.run(ToeThread.java:151)

    JIRA | 8 years ago | Olaf Freyer
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Problem java.lang.StringIndexOutOfBoundsException: String index out of range: 0 occured when trying to process 'http://www.indefighter.com/hp/news/index.php?action=show&id=58' at step ABOUT_TO_BEGIN_PROCESSOR in ExtractorHTML (in thread 'ToeThread #47: http://www.indefighter.com/hp/news/index.php?action=show&id=58'; in processor 'ExtractorHTML') java.lang.StringIndexOutOfBoundsException: String index out of range: 0 Stacktrace: java.lang.StringIndexOutOfBoundsException: String index out of range: 0 at java.lang.StringBuffer.charAt(StringBuffer.java:162) at gnu.inet.encoding.NFKC.canonicalOrdering(NFKC.java:161) at gnu.inet.encoding.NFKC.normalizeNFKC(NFKC.java:58) at gnu.inet.encoding.Stringprep.nameprep(Stringprep.java:42) at gnu.inet.encoding.IDNA.toASCII(IDNA.java:89) at gnu.inet.encoding.IDNA.toASCII(IDNA.java:55) at org.archive.net.UURIFactory.fixupDomainlabel(UURIFactory.java:646) at org.archive.net.UURIFactory.fixupAuthority(UURIFactory.java:608) at org.archive.net.UURIFactory.fixup(UURIFactory.java:470) at org.archive.net.UURIFactory.create(UURIFactory.java:340) at org.archive.net.UURIFactory.getInstance(UURIFactory.java:289) at org.archive.crawler.datamodel.CrawlURI.createAndAddLinkRelativeToBase(CrawlURI.java:1314) at org.archive.crawler.extractor.ExtractorHTML.addLinkFromString(ExtractorHTML.java:477) at org.archive.crawler.extractor.ExtractorHTML.processLink(ExtractorHTML.java:462) at org.archive.crawler.extractor.ExtractorHTML.processGeneralTag(ExtractorHTML.java:285) at org.archive.crawler.extractor.ExtractorHTML.extract(ExtractorHTML.java:611) at org.archive.crawler.extractor.ExtractorHTML.extract(ExtractorHTML.java:557) at org.archive.crawler.extractor.Extractor.innerProcess(Extractor.java:67) at org.archive.crawler.framework.Processor.process(Processor.java:112) at org.archive.crawler.framework.ToeThread.processCrawlUri(ToeThread.java:302) at org.archive.crawler.framework.ToeThread.run(ToeThread.java:151)

    JIRA | 8 years ago | Olaf Freyer
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
  6. 0

    Assigning values to variables in constructors

    Coderanch | 7 years ago | Andrew Stallard
    java.lang.StringIndexOutOfBoundsException: String index out of range: 5

    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: 4

      at java.lang.StringBuffer.charAt()
    2. Java RT
      StringBuffer.charAt
      1. java.lang.StringBuffer.charAt(StringBuffer.java:162)
      1 frame
    3. LDAP Class Libraries for Java (JLDAP)
      LDAPDN.escapeRDN
      1. com.novell.ldap.LDAPDN.escapeRDN(Unknown Source)
      1 frame
    4. com.xpn.xwiki
      XWikiLDAPConnection.open
      1. com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.escapeLDAPDNValue(XWikiLDAPConnection.java:381)
      2. com.xpn.xwiki.plugin.ldap.XWikiLDAPConfig.getLDAPBindDN(XWikiLDAPConfig.java:400)
      3. com.xpn.xwiki.plugin.ldap.XWikiLDAPConnection.open(XWikiLDAPConnection.java:91)
      3 frames
    5. 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
    6. Groovy
      AbstractCallSite.call
      1. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229)
      2. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52)
      3. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
      4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      5. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:132)
      5 frames
    7. Unknown
      Script1.run
      1. Script1.run(Script1.groovy:84)
      1 frame
    8. Groovy
      GroovyShell.evaluate
      1. groovy.lang.GroovyShell.evaluate(GroovyShell.java:576)
      2. groovy.lang.GroovyShell.evaluate(GroovyShell.java:614)
      3. groovy.lang.GroovyShell.evaluate(GroovyShell.java:585)
      3 frames
    9. com.xpn.xwiki
      AbstractJob.execute
      1. com.xpn.xwiki.plugin.scheduler.GroovyJob.executeJob(GroovyJob.java:85)
      2. com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:75)
      2 frames
    10. quartz
      SimpleThreadPool$WorkerThread.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:202)
      2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
      2 frames