Servlet Error: StringIndexOutOfBounds

An unexpected servlet error has occurred.

Message:



String index out of range: -2

Stack Trace:



java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(String.java:1911) at org.apache.lucene.chunk.ChunkMarkPos.getTextTo(ChunkMarkPos.java:74) at org.cdlib.xtf.textEngine.SnippetMaker$1.copyUpTo(SnippetMaker.java:229) at org.cdlib.xtf.textEngine.SnippetMaker$1.endSpan(SnippetMaker.java:274) at org.apache.lucene.mark.ContextMarker.emitMarks(ContextMarker.java:411) at org.apache.lucene.mark.ContextMarker.mark(ContextMarker.java:242) at org.apache.lucene.mark.ContextMarker.markField(ContextMarker.java:192) at org.cdlib.xtf.textEngine.SnippetMaker.makeSnippets(SnippetMaker.java:214) at org.cdlib.xtf.textEngine.DocHitImpl.snippet(DocHitImpl.java:424) at org.cdlib.xtf.textEngine.QueryResult.structureDocHits(QueryResult.java:259) at org.cdlib.xtf.textEngine.QueryResult.hitsToString(QueryResult.java:142) at org.cdlib.xtf.crossQuery.CrossQuery.formatHits(CrossQuery.java:497) at org.cdlib.xtf.crossQuery.CrossQuery.apply(CrossQuery.java:209) at org.cdlib.xtf.crossQuery.CrossQuery.doGet(CrossQuery.java:153) at javax.servlet.http.HttpServlet.service(HttpServlet.java:626) at org.cdlib.xtf.servletBase.TextServlet.service(TextServlet.java:442) at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:524) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1626) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:622) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)

If you have questions, need further technical assistance, or believe that you have reached this page in error, send email to the APS (webmaster@amphilsoc.org).