You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Janne Majaranta (JIRA)" <ji...@apache.org> on 2010/02/03 18:31:28 UTC

[jira] Created: (SOLR-1753) StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search

StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search
-------------------------------------------------------------------------------------------------------------

                 Key: SOLR-1753
                 URL: https://issues.apache.org/jira/browse/SOLR-1753
             Project: Solr
          Issue Type: Bug
    Affects Versions: 1.4, 1.5
         Environment: Windows
            Reporter: Janne Majaranta


When using the StatsComponent with a sharded request and getting statistics over facets, a NullPointerException is thrown.

Stacktrace:
java.lang.NullPointerException at org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:54) at 
org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:82) at 
org.apache.solr.handler.component.StatsComponent.handleResponses(StatsComponent.java:116) at 
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:290) at 
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at 
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) 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: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(Unknown Source) 


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1753) StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi updated SOLR-1753:
---------------------------------

    Affects Version/s:     (was: 1.5)
        Fix Version/s: 1.5

> StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1753
>                 URL: https://issues.apache.org/jira/browse/SOLR-1753
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Windows
>            Reporter: Janne Majaranta
>            Assignee: Koji Sekiguchi
>             Fix For: 1.5
>
>         Attachments: SOLR-1753.patch
>
>
> When using the StatsComponent with a sharded request and getting statistics over facets, a NullPointerException is thrown.
> Stacktrace:
> java.lang.NullPointerException at org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:54) at 
> org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:82) at 
> org.apache.solr.handler.component.StatsComponent.handleResponses(StatsComponent.java:116) at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:290) at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at 
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) 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: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(Unknown Source) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SOLR-1753) StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi resolved SOLR-1753.
----------------------------------

    Resolution: Fixed

Committed revision 906781. Thanks Janne!

> StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1753
>                 URL: https://issues.apache.org/jira/browse/SOLR-1753
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Windows
>            Reporter: Janne Majaranta
>            Assignee: Koji Sekiguchi
>             Fix For: 1.5
>
>         Attachments: SOLR-1753.patch
>
>
> When using the StatsComponent with a sharded request and getting statistics over facets, a NullPointerException is thrown.
> Stacktrace:
> java.lang.NullPointerException at org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:54) at 
> org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:82) at 
> org.apache.solr.handler.component.StatsComponent.handleResponses(StatsComponent.java:116) at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:290) at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at 
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) 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: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(Unknown Source) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SOLR-1753) StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search

Posted by "Janne Majaranta (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Janne Majaranta updated SOLR-1753:
----------------------------------

    Attachment: SOLR-1753.patch

The attached patch seems to fix the issue.

Seems a bit too easy however. Am I missing something ?

> StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1753
>                 URL: https://issues.apache.org/jira/browse/SOLR-1753
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4, 1.5
>         Environment: Windows
>            Reporter: Janne Majaranta
>         Attachments: SOLR-1753.patch
>
>
> When using the StatsComponent with a sharded request and getting statistics over facets, a NullPointerException is thrown.
> Stacktrace:
> java.lang.NullPointerException at org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:54) at 
> org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:82) at 
> org.apache.solr.handler.component.StatsComponent.handleResponses(StatsComponent.java:116) at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:290) at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at 
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) 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: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(Unknown Source) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (SOLR-1753) StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12829914#action_12829914 ] 

Koji Sekiguchi commented on SOLR-1753:
--------------------------------------

Patch looks good! Will commit shortly.

> StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1753
>                 URL: https://issues.apache.org/jira/browse/SOLR-1753
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Windows
>            Reporter: Janne Majaranta
>            Assignee: Koji Sekiguchi
>             Fix For: 1.5
>
>         Attachments: SOLR-1753.patch
>
>
> When using the StatsComponent with a sharded request and getting statistics over facets, a NullPointerException is thrown.
> Stacktrace:
> java.lang.NullPointerException at org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:54) at 
> org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:82) at 
> org.apache.solr.handler.component.StatsComponent.handleResponses(StatsComponent.java:116) at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:290) at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at 
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) 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: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(Unknown Source) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (SOLR-1753) StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search

Posted by "Koji Sekiguchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Koji Sekiguchi reassigned SOLR-1753:
------------------------------------

    Assignee: Koji Sekiguchi

> StatsComponent throws java.lang.NullPointerException when getting statistics for facets in distributed search
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-1753
>                 URL: https://issues.apache.org/jira/browse/SOLR-1753
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Windows
>            Reporter: Janne Majaranta
>            Assignee: Koji Sekiguchi
>             Fix For: 1.5
>
>         Attachments: SOLR-1753.patch
>
>
> When using the StatsComponent with a sharded request and getting statistics over facets, a NullPointerException is thrown.
> Stacktrace:
> java.lang.NullPointerException at org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:54) at 
> org.apache.solr.handler.component.StatsValues.accumulate(StatsValues.java:82) at 
> org.apache.solr.handler.component.StatsComponent.handleResponses(StatsComponent.java:116) at 
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:290) at 
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316) at 
> org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:338) at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:241) 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: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(Unknown Source) 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.