techact / solrmeter

Automatically exported from code.google.com/p/solrmeter
0 stars 0 forks source link

Could not update statistic com.plugtree.solrmeter.model.exception.StatisticConnectionException: java.lang.NullPointerException #98

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open the solrmeter-0.2.0-jar-with-dependencies_3_1_4_0.jar
2. Go to Settings and change the following fields:
 2.1 URL Solr = http://dev.search.local/solr/products
 2.2 Use Facets = false
 2.3 Use Filter Queries = false
 2.4 Query File Path = D:\example/queries.txt
 2.5 Extra Parameters = indent=true
 2.6 Add Random Extra Params = false
3. and get the following error from the log file:
[Thread-218]|ERROR|[CacheHistoryStatistic]|17:12:57,956 | Could not update 
statistic
com.plugtree.solrmeter.model.exception.StatisticConnectionException: 
java.lang.NullPointerException
    at com.plugtree.solrmeter.model.statistic.RequestHandlerConnection.getData(RequestHandlerConnection.java:72)
    at com.plugtree.solrmeter.model.statistic.CacheHistoryStatistic.updateData(CacheHistoryStatistic.java:115)
    at com.plugtree.solrmeter.model.statistic.CacheHistoryStatistic$StatisticUpdateThread.run(CacheHistoryStatistic.java:155)
Caused by: java.lang.NullPointerException
    at com.plugtree.solrmeter.model.statistic.RequestHandlerConnection.getCacheData(RequestHandlerConnection.java:79)
    at com.plugtree.solrmeter.model.statistic.RequestHandlerConnection.getData(RequestHandlerConnection.java:62)
    ... 2 more

Please provide any additional information below.

Original issue reported on code.google.com by Mirodil...@gmail.com on 23 Feb 2012 at 12:21

GoogleCodeExporter commented 8 years ago
This NPE appears when one or more Solr caches are commented. 

Original comment by tflo...@gmail.com on 24 Feb 2012 at 5:40