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

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Liferay Deployer (Jenkins plugin) | Technopolis S.A.
    via by Unknown author,
  • SOOBE
    via GitHub by tobinibot
    ,
  • Plugin exception
    via GitHub by tobinibot
    ,
  • StringOutOfBoundsException
    via GitHub by tobinibot
    ,
    • java.lang.StringIndexOutOfBoundsException: String index out of range: 43 at java.lang.String.charAt(String.java:686) at com.liferay.portal.kernel.util.Base64.decode(Base64.java:52) at com.liferay.portal.util.PortalImpl.getBasicAuthUserId(PortalImpl.java:1172) at com.liferay.portal.util.PortalImpl.getBasicAuthUserId(PortalImpl.java:1153) at com.liferay.portal.util.PortalUtil.getBasicAuthUserId(PortalUtil.java:281) at com.liferay.portal.servlet.filters.secure.SecureFilter.basicAuth(SecureFilter.java:112) at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:288) at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:59) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109) at com.liferay.portal.kernel.servlet.PortalClassLoaderFilter.doFilter(PortalClassLoaderFilter.java:74) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:204) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:109) at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:96) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)

    Users with the same issue

    poroszd
    poroszd12 times, last one,
    olle.hallin
    olle.hallin1 times, last one,
    linxiaolong
    linxiaolong1 times, last one,
    jokester
    jokester1 times, last one,
    tyson925
    tyson9251 times, last one,
    30 more bugmates