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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via XWiki.org JIRA by Jerome Velociter, 1 year ago
String index out of range: 4
via Oracle Community by 807599, 11 months ago
String index out of range: 0
via Stack Overflow by user3423682
, 2 years ago
String index out of range: 0
via sourceforge.net by Unknown author, 1 year ago
String index out of range: 0
via Google Groups by Mike B, 1 month ago
String index out of range: 4
java.lang.StringIndexOutOfBoundsException: String index out of range: 4
at java.lang.StringBuffer.charAt(StringBuffer.java:162)
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 undefined.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)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Know the solutions? Share your knowledge to help other developers to debug faster.