Grokbase Groups Lucene dev June 2016
FAQ
[ https://issues.apache.org/jira/browse/SOLR-9093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Rowe reopened SOLR-9093:
------------------------------

Reopening to backport to 5.6 and 5.5.2.
fix TopGroupsShardResponseProcessor.java:105 NullPointerException
-----------------------------------------------------------------

Key: SOLR-9093
URL: https://issues.apache.org/jira/browse/SOLR-9093
Project: Solr
Issue Type: Bug
Reporter: Christine Poerschke
Assignee: Christine Poerschke
Priority: Minor
Fix For: 5.6, 6.0.1, 6.1, master (7.0)


e.g. http://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/16693/testReport/junit/org.apache.solr/TestDistributedSearch/test/
{code}
org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://127.0.0.1:44706//collection1: java.lang.NullPointerException
at org.apache.solr.search.grouping.distributed.responseprocessor.TopGroupsShardResponseProcessor.process(TopGroupsShardResponseProcessor.java:105)
at org.apache.solr.handler.component.QueryComponent.handleGroupedResponses(QueryComponent.java:753)
at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:736)
at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:420)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:155)
at org.apache.solr.core.SolrCore.execute(SolrCore.java:2016)
...
{code}
A minimalistic fix would be
{code}
- if (t instanceof SolrServerException) {
+ if (t instanceof SolrServerException && t.getCause() != null) {
{code}
but perhaps equally valid would be to tweak the logic, similar to the [SearchHandler.java#L440|https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java#L440] logic, the difference being cause vs. root-cause for SolrServerException exceptions and throwable vs. throwable.cause for other exceptions.


--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Search Discussions

  • Steve Rowe (JIRA) at Jun 17, 2016 at 9:18 pm
    [ https://issues.apache.org/jira/browse/SOLR-9093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15336974#comment-15336974 ]

    Steve Rowe edited comment on SOLR-9093 at 6/17/16 9:17 PM:
    -----------------------------------------------------------

    Reopening to backport to 5.5.2.


    was (Author: steve_rowe):
    Reopening to backport to 5.6 and 5.5.2.
    fix TopGroupsShardResponseProcessor.java:105 NullPointerException
    -----------------------------------------------------------------

    Key: SOLR-9093
    URL: https://issues.apache.org/jira/browse/SOLR-9093
    Project: Solr
    Issue Type: Bug
    Reporter: Christine Poerschke
    Assignee: Christine Poerschke
    Priority: Minor
    Fix For: 5.6, 6.0.1, 6.1, 5.5.2, master (7.0)


    e.g. http://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/16693/testReport/junit/org.apache.solr/TestDistributedSearch/test/
    {code}
    org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://127.0.0.1:44706//collection1: java.lang.NullPointerException
    at org.apache.solr.search.grouping.distributed.responseprocessor.TopGroupsShardResponseProcessor.process(TopGroupsShardResponseProcessor.java:105)
    at org.apache.solr.handler.component.QueryComponent.handleGroupedResponses(QueryComponent.java:753)
    at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:736)
    at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:420)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:155)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:2016)
    ...
    {code}
    A minimalistic fix would be
    {code}
    - if (t instanceof SolrServerException) {
    + if (t instanceof SolrServerException && t.getCause() != null) {
    {code}
    but perhaps equally valid would be to tweak the logic, similar to the [SearchHandler.java#L440|https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java#L440] logic, the difference being cause vs. root-cause for SolrServerException exceptions and throwable vs. throwable.cause for other exceptions.


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • ASF subversion and git services (JIRA) at Jun 17, 2016 at 9:18 pm
    [ https://issues.apache.org/jira/browse/SOLR-9093?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15336979#comment-15336979 ]

    ASF subversion and git services commented on SOLR-9093:
    -------------------------------------------------------

    Commit 8f04a8843e0834997c08665875219eb747b60fff in lucene-solr's branch refs/heads/branch_5_5 from [~cpoerschke]
    [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=8f04a88 ]

    SOLR-9093: Fix NullPointerException in TopGroupsShardResponseProcessor.

    fix TopGroupsShardResponseProcessor.java:105 NullPointerException
    -----------------------------------------------------------------

    Key: SOLR-9093
    URL: https://issues.apache.org/jira/browse/SOLR-9093
    Project: Solr
    Issue Type: Bug
    Reporter: Christine Poerschke
    Assignee: Christine Poerschke
    Priority: Minor
    Fix For: 5.6, 6.0.1, 6.1, 5.5.2, master (7.0)


    e.g. http://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/16693/testReport/junit/org.apache.solr/TestDistributedSearch/test/
    {code}
    org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://127.0.0.1:44706//collection1: java.lang.NullPointerException
    at org.apache.solr.search.grouping.distributed.responseprocessor.TopGroupsShardResponseProcessor.process(TopGroupsShardResponseProcessor.java:105)
    at org.apache.solr.handler.component.QueryComponent.handleGroupedResponses(QueryComponent.java:753)
    at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:736)
    at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:420)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:155)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:2016)
    ...
    {code}
    A minimalistic fix would be
    {code}
    - if (t instanceof SolrServerException) {
    + if (t instanceof SolrServerException && t.getCause() != null) {
    {code}
    but perhaps equally valid would be to tweak the logic, similar to the [SearchHandler.java#L440|https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java#L440] logic, the difference being cause vs. root-cause for SolrServerException exceptions and throwable vs. throwable.cause for other exceptions.


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • Steve Rowe (JIRA) at Jun 17, 2016 at 9:18 pm
    [ https://issues.apache.org/jira/browse/SOLR-9093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Steve Rowe resolved SOLR-9093.
    ------------------------------
            Resolution: Fixed
         Fix Version/s: 5.5.2
    fix TopGroupsShardResponseProcessor.java:105 NullPointerException
    -----------------------------------------------------------------

    Key: SOLR-9093
    URL: https://issues.apache.org/jira/browse/SOLR-9093
    Project: Solr
    Issue Type: Bug
    Reporter: Christine Poerschke
    Assignee: Christine Poerschke
    Priority: Minor
    Fix For: 5.6, 5.5.2, master (7.0), 6.1, 6.0.1


    e.g. http://jenkins.thetaphi.de/job/Lucene-Solr-master-Linux/16693/testReport/junit/org.apache.solr/TestDistributedSearch/test/
    {code}
    org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException: Error from server at http://127.0.0.1:44706//collection1: java.lang.NullPointerException
    at org.apache.solr.search.grouping.distributed.responseprocessor.TopGroupsShardResponseProcessor.process(TopGroupsShardResponseProcessor.java:105)
    at org.apache.solr.handler.component.QueryComponent.handleGroupedResponses(QueryComponent.java:753)
    at org.apache.solr.handler.component.QueryComponent.handleResponses(QueryComponent.java:736)
    at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:420)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:155)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:2016)
    ...
    {code}
    A minimalistic fix would be
    {code}
    - if (t instanceof SolrServerException) {
    + if (t instanceof SolrServerException && t.getCause() != null) {
    {code}
    but perhaps equally valid would be to tweak the logic, similar to the [SearchHandler.java#L440|https://github.com/apache/lucene-solr/blob/master/solr/core/src/java/org/apache/solr/handler/component/SearchHandler.java#L440] logic, the difference being cause vs. root-cause for SolrServerException exceptions and throwable vs. throwable.cause for other exceptions.


    --
    This message was sent by Atlassian JIRA
    (v6.3.4#6332)

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedJun 17, '16 at 9:16p
activeJun 17, '16 at 9:18p
posts4
users1
websitelucene.apache.org

1 user in discussion

Steve Rowe (JIRA): 4 posts

People

Translate

site design / logo © 2019 Grokbase