cancel
Showing results for 
Search instead for 
Did you mean: 

SOLR error - JSONObject["min"] is not a long

upforsin
Star Collaborator
Star Collaborator

When trying to execute "/share/proxy/alfresco/api/solrstats/site/test123?facet=content.mimetype" I'm getting an empty resultset. After an investigation, I noticed SOLR returns null values:

[...]content.mimetype:{"":{"sumOfSquares":0,"min":null,"max":null,"mean":"NaN","count":0,"missing":2,"sum":0,"stddev":0},[...]

and in the SolrStatsResult.java there is a JSONException error.

org.json.JSONException: JSONObject["min"] is not a long.

It looks like there is a mimetype without a name "", might it be a problem?

I noticed The problem occurs while there are created Data List records (they do not have mimetype)

I checked in on both clean Alfresco Community 6.1 and clean 7.1

howkymike
Alfresco Developer
0 REPLIES 0