On 1/14/2016 3:55 AM, Vincenzo D'Amore wrote:
> Few days ago I had a nullpointer exception with solr 5.4.0 few days ago.
>
> This was the exception.
>
> java.lang.NullPointerException at
> org.apache.solr.search.QParser.getParser(QParser.java:315) at
> org.apache.solr.handler.component.QueryComponent.prepare(QueryComponent.java:159)
<snip>
> Well, maybe I took the longest way, but having the ability to debug the
> running application pointed exactly the problem.
>
> I had a misstyped defType in solrconfig.xml

That exception, especially given the lack of an error message, is very
unhelpful.  The average person wouldn't be able to deduce that it was a
config problem.

Perhaps the code in QParser that threw the NPE needs a null check,
logging/throwing a useful error when it is tripped.

What exactly did your solrconfig.xml have that was incorrect?

Thanks,
Shawn

Reply via email to