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

Samebug tips

  1. ,

    Thrown by the methods of the String class to indicate that an index is either negative, or greater than the size of the string itself. You are probably using the wrong index when accessing substring of the array.

  2. ,
    via GitHub by Omertron

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

Solutions on the web

via openxava by dalcaraz
, 1 year ago
String index out of range: -1
via YouTrack by Unknown author, 2 years ago
via YouTrack by Unknown author, 2 years ago
via YouTrack by Unknown author, 2 years ago
via YouTrack by Unknown author, 2 years ago
java.lang.StringIndexOutOfBoundsException: String index out of range: -1	at java.lang.String.substring(String.java:1937)	at org.openxava.component.MetaComponent.getPackageNameWithSlashWithoutModel(MetaComponent.java:411)	at org.openxava.tab.impl.EntityTab.getDataProvider(EntityTab.java:517)	at org.openxava.tab.impl.EntityTab.nextChunk(EntityTab.java:299)	at org.openxava.tab.impl.TableModelBean.getRow(TableModelBean.java:121)	at org.openxava.tab.impl.TableModelBean.getValueAt(TableModelBean.java:172)	at org.openxava.tab.impl.XTableModelDecoratorBase.getValueAt(XTableModelDecoratorBase.java:63)	at org.openxava.tab.impl.HiddenXTableModel.getValueAt(HiddenXTableModel.java:70)	at org.openxava.calculators.DescriptionsCalculator.read(DescriptionsCalculator.java:127)	at org.openxava.calculators.DescriptionsCalculator.calculate(DescriptionsCalculator.java:80)	at org.openxava.calculators.DescriptionsCalculator.getDescriptions(DescriptionsCalculator.java:173)	at org.apache.jsp.xava.comparatorsDescriptionsList_jsp._jspService(comparatorsDescriptionsList_jsp.java:172)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)	at org.apache.jsp.xava.list_jsp._jspService(list_jsp.java:715)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)	at org.apache.jsp.xava.editors.collectionEditor_jsp._jspService(collectionEditor_jsp.java:1012)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)	at org.apache.jsp.xava.collection_jsp._jspService(collection_jsp.java:145)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)	at org.apache.jsp.xava.detail_jsp._jspService(detail_jsp.java:534)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)	at org.apache.jsp.xava.detail_jsp._jspService(detail_jsp.java:600)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)	at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)	at org.apache.jsp.xava.core_jsp._jspService(core_jsp.java:279)	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)	at org.openxava.web.servlets.Servlets.getURIAsString(Servlets.java:120)	at org.openxava.web.servlets.Servlets.getURIAsString(Servlets.java:99)	at org.openxava.web.dwr.Module.getURIAsString(Module.java:189)	at org.openxava.web.dwr.Module.fillResult(Module.java:208)	at org.openxava.web.dwr.Module.request(Module.java:85)	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.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)	at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)	at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)	at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)	at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)	at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)	at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)	at java.lang.Thread.run(Thread.java:662)