What request did you submit when this happened? Because
I don't think merely declaring the component matters unless you
use it, so I doubt that'd make any difference...

Best
Erick

2010/9/15 Michał Flasiński <michal.flasin...@hybris.de>

> Hi,
> When I use 1.4 version, I get exception:
>
> ERROR [SolrCore] java.lang.NullPointerException
>     at
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:173)
>     at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:131)
>     at org.apache.solr.core.SolrCore.execute(SolrCore.java:1316)
>     at
> org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:52)
>     at org.apache.solr.core.SolrCore$3.call(SolrCore.java:1146)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>     at java.lang.Thread.run(Thread.java:619)
>
> I saw that this request handler is declared in solrconfig.xml file:
>
>       <searchComponent name="tvComponent"
>             class="org.apache.solr.handler.component.TermVectorComponent"
> />
>       <!--
>             A Req Handler for working with the tvComponent. This is purely
> as an
>             example. You will likely want to add the component to your
> already
>             specified request handlers.
>       -->
>       <requestHandler name="tvrh"
>             class="org.apache.solr.handler.component.SearchHandler">
>             <lst name="defaults">
>                   <bool name="tv">true</bool>
>             </lst>
>             <arr name="last-components">
>                   <str>tvComponent</str>
>             </arr>
>       </requestHandler>
>
> Is it safe to just remove this fragment as a workaround ? (I don't need
> TermVectorComponent).
> Do you know what may cause NPE ?
>
> Cheers,
> Michal
>
>

Reply via email to