java.lang.StringIndexOutOfBoundsException

String index out of range: -1

Samebug tips2

You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"


This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web4607

  • String index out of range: -1
  • via GitHub by dlsniper
    , 1 year ago
    String index out of range: 1
  • Stack trace

    • java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1967)[?:1.8.0_60] at com.dotmarketing.cache.LiveCache.addToLiveAssetToCache(LiveCache.java:103)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at com.dotmarketing.cache.LiveCache.getPathFromCache(LiveCache.java:301)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at com.dotmarketing.cache.LiveCache.getPathFromCache(LiveCache.java:179)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at com.dotmarketing.velocity.VelocityServlet.doLiveMode(VelocityServlet.java:402)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at com.dotmarketing.velocity.VelocityServlet.service(VelocityServlet.java:242)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)[servlet-api.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.18] at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)[tomcat-websocket.jar:8.0.18] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:721)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)[catalina.jar:8.0.18] at com.dotmarketing.filters.CMSFilter.doFilter(CMSFilter.java:231)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.18] at com.dotmarketing.filters.AutoLoginFilter.doFilter(AutoLoginFilter.java:61)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.18] at com.dotmarketing.cms.urlmap.filters.URLMapFilter.doFilter(URLMapFilter.java:307)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.18] at com.dotmarketing.filters.TimeMachineFilter.doFilter(TimeMachineFilter.java:49)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.18] at com.dotmarketing.filters.ThreadNameFilter.doFilter(ThreadNameFilter.java:90)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.18] at com.dotmarketing.filters.CookiesFilter.doFilter(CookiesFilter.java:33)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.18] at com.dotmarketing.filters.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:146)[dotcms_3.5.1_3.5-8-g8506266.jar:?] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)[catalina.jar:8.0.18] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina.jar:8.0.18] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)[catalina.jar:8.0.18] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)[catalina.jar:8.0.18] at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)[catalina.jar:8.0.18] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)[catalina.jar:8.0.18] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)[catalina.jar:8.0.18] at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)[catalina.jar:8.0.18] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)[catalina.jar:8.0.18] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:516)[catalina.jar:8.0.18] at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1086)[tomcat-coyote.jar:8.0.18] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659)[tomcat-coyote.jar:8.0.18] at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)[tomcat-coyote.jar:8.0.18] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558)[tomcat-coyote.jar:8.0.18] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515)[tomcat-coyote.jar:8.0.18] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[?:1.8.0_60] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[?:1.8.0_60] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)[tomcat-util.jar:8.0.18] at java.lang.Thread.run(Thread.java:745)[?:1.8.0_60]

    Write tip

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

    Users with the same issue

    Once, 1 month ago
    7 times, 2 months ago
    2 times, 7 months ago
    2 times, 7 months ago
    17 times, 8 months ago
    95 more bugmates