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 #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Could not update statistic
com.plugtree.solrmeter.model.exception.StatisticConnectionException: 
java.lang.NullPointerException

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/UsedCars
 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

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

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for creating this issue. Do you have by any chance some disabled caches 
in your Solr instance? this IS a SolrMeter bug, as it should simply omit the 
missing cache, but that's the reason why it's failing. 
Even if the title of the issue is different, the stacktrace is the same as 
http://code.google.com/p/solrmeter/issues/detail?id=92 and the issue is better 
described here: 
http://groups.google.com/group/solrmeter/browse_thread/thread/d5ef95fce30f6e7f/6
35623bbb38a1c49

This issue is not yet fixed.

Original comment by tflo...@gmail.com on 23 Feb 2012 at 2:47