-
Notifications
You must be signed in to change notification settings - Fork 95
Description
In one of repos I'm getting error (on java console, search is just endless 'loading...') for a query http://localhost:8080/?q=q&lan=Unknown&repo=Requirements
Haven't got it for anywhere else, no more detail information in logs.
It will not happen for http://localhost:8080/?q=q&repo=Requirements
nor http://localhost:8080/?q=q&lan=Unknown
The repo holds crap load of random documents, and I wanted to list unknowns to maybe categorise them in some way.
[qtp395660352-21767] ERROR spark.http.matching.GeneralError - java.lang.StringIndexOutOfBoundsException: String index out of range: 45 at java.lang.String.substring(Unknown Source) at com.searchcode.app.service.CodeMatcher.highlightLine(CodeMatcher.java:289) at com.searchcode.app.service.CodeMatcher.highlightLine(CodeMatcher.java:291) at com.searchcode.app.service.CodeMatcher.findMatchingLines(CodeMatcher.java:165) at com.searchcode.app.service.CodeMatcher.matchResults(CodeMatcher.java:65) at com.searchcode.app.service.CodeMatcher.formatResults(CodeMatcher.java:50) at com.searchcode.app.service.route.SearchRouteService.codeSearch(SearchRouteService.java:99) at com.searchcode.app.App.lambda$null$14(App.java:128) at spark.ResponseTransformerRouteImpl$1.handle(ResponseTransformerRouteImpl.java:47) at spark.http.matching.Routes.execute(Routes.java:61) at spark.http.matching.MatcherFilter.doFilter(MatcherFilter.java:130) at spark.embeddedserver.jetty.JettyHandler.doHandle(JettyHandler.java:50) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:189) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119) at org.eclipse.jetty.server.Server.handle(Server.java:517) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:261) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) at java.lang.Thread.run(Unknown Source)