[ 
https://issues.apache.org/jira/browse/SOLR-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098333#comment-13098333
 ] 

Mike Lerley edited comment on SOLR-2650 at 9/6/11 8:39 PM:
-----------------------------------------------------------

I seem to be having the same problem.  I've just tried the latest code from 
branch_3x (r1165749) and it's still a problem.  Note that I'm trying to output 
JSON, not XML. I get a similar exception:
{noformat}
Sep 6, 2011 4:11:31 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.ArrayIndexOutOfBoundsException: 49
        at org.apache.solr.search.DocSlice$1.nextDoc(DocSlice.java:117)
        at 
org.apache.solr.response.JSONWriter.writeDocList(JSONResponseWriter.java:492)
        at 
org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:129)
        at 
org.apache.solr.response.JSONWriter.writeNamedListAsMapWithDups(JSONResponseWriter.java:180)
        at 
org.apache.solr.response.JSONWriter.writeNamedList(JSONResponseWriter.java:296)
        at 
org.apache.solr.response.JSONWriter.writeResponse(JSONResponseWriter.java:93)
        at 
org.apache.solr.response.JSONResponseWriter.write(JSONResponseWriter.java:52)
        at 
org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:343)
        at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:265)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        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:127)
        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:298)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:679)
{noformat}

I seem to be able to trigger it using quoted strings, among other random 
things.  I hope this can get fixed soon.

      was (Author: mlerley):
    I seem to be having the same problem.  I've just tried the latest code from 
branch_3x (r1165749) and it's still a problem.  I get a similar exception:
{noformat}
Sep 6, 2011 4:11:31 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.ArrayIndexOutOfBoundsException: 49
        at org.apache.solr.search.DocSlice$1.nextDoc(DocSlice.java:117)
        at 
org.apache.solr.response.JSONWriter.writeDocList(JSONResponseWriter.java:492)
        at 
org.apache.solr.response.TextResponseWriter.writeVal(TextResponseWriter.java:129)
        at 
org.apache.solr.response.JSONWriter.writeNamedListAsMapWithDups(JSONResponseWriter.java:180)
        at 
org.apache.solr.response.JSONWriter.writeNamedList(JSONResponseWriter.java:296)
        at 
org.apache.solr.response.JSONWriter.writeResponse(JSONResponseWriter.java:93)
        at 
org.apache.solr.response.JSONResponseWriter.write(JSONResponseWriter.java:52)
        at 
org.apache.solr.servlet.SolrDispatchFilter.writeResponse(SolrDispatchFilter.java:343)
        at 
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:265)
        at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        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:127)
        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:298)
        at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
        at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:679)
{noformat}

I seem to be able to trigger it using quoted strings, among other random 
things.  I hope this can get fixed soon.
  
> Empty docs array on response with grouping and result pagination
> ----------------------------------------------------------------
>
>                 Key: SOLR-2650
>                 URL: https://issues.apache.org/jira/browse/SOLR-2650
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.3
>            Reporter: Massimo Schiavon
>         Attachments: grouping_patch.txt
>
>
> Requesting a certain number of rows and setting start parameter to a greater 
> value returns 0 results with grouping enabled.
> For example, requesting:
> http://localhost:8080/solr/web/select/?q=*:*&rows=1&start=2
> (grouping and highlighting are enabled by default)
> I get this response:
> [...]
>       response: {
>           numFound: 117852
>           start: 2
>           docs: [ ]
>       }
>       highlighting: {
>             0938630598: {
>                   title: [ "..." ]
>                   content: [ "..." ]
>             }
>       }
> [...]
> docs array is empty while the highlighted values of the document are present
> Debugging the request in
> org.apache.solr.search.Grouping.Command.createSimpleResponse() at row 534
> [...]
>      int len = Math.min(numGroups, docsGathered);
>       if (offset > len) {
>         len = 0;
>       }
> [...]
> The initial vars values are:
> numGroups = 1
> docsGathered = 3
> offset = 2
> so after the execution len = 0
> I've tried commenting the if statement and this resolves the issue but could 
> introduce some other bugs.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to