Note that there are some explanatory texts on larger screens.

plurals
  1. POSolrCore shuts down, throws NullPointerException
    primarykey
    data
    text
    <p>I am configuring Solr for the very first time. Google has yielded very little insight. I see questions postesd that are similar to my issue, but not the same.</p> <p>I have a SolrCore called collection1 in ~/solr-home/solr. I have verified that its configuration is read by Solr when it starts up. Here is the declaration for my core in ~solr-home/solr/solr.xml:</p> <pre><code> &lt;cores adminPath="/admin/cores" defaultCoreName="collection1" host="${host:}" hostPort="${jetty.port:}" hostContext="${hostContext:}" zkClientTimeout="${zkClientTimeout:15000}"&gt; &lt;core name="collection1" instanceDir="collection1" /&gt; </code></pre> <p></p> <p>Solr is running on Ubuntu. I am attempting to inmport from Microsoft SQL Server running on Windows, but I don't get as far as making the JDBC connection. Here is my data import declaration:</p> <pre><code> &lt;requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImporHandler"&gt; &lt;lst name="defaults"&gt; &lt;str name="config"&gt;data-config.xml&lt;/str&gt; &lt;/lst&gt; </code></pre> <p></p> <p>My core seems like it is starting up at first. From the log file:</p> <pre><code>INFO: Creating SolrCore 'collection1' using instanceDir: solr/collection1 May 09, 2013 2:52:22 PM org.apache.solr.core.SolrResourceLoader &lt;init&gt; INFO: new SolrResourceLoader for directory: 'solr/collection1/' May 09, 2013 2:52:22 PM org.apache.solr.core.SolrResourceLoader replaceClassLoader INFO: Adding 'file:/home/moon/solr-home/solr/collection1/lib/solr-dataimporthandler-4.2.0.jar' to classloader May 09, 2013 2:52:22 PM org.apache.solr.core.SolrResourceLoader replaceClassLoader INFO: Adding 'file:/home/moon/solr-home/solr/collection1/lib/solr-dataimporthandler-extras-4.2.0.jar' to classloader </code></pre> <p>...</p> <pre><code>INFO: [collection1] Opening new SolrCore at solr/collection1/, dataDir=/solr-home/data/ May 09, 2013 2:52:25 PM org.apache.solr.core.JmxMonitoredMap &lt;init&gt; INFO: JMX monitoring is enabled. Adding Solr mbeans to JMX Server: com.sun.jmx.mbeanserver.JmxMBeanServer@4645a73 May 09, 2013 2:52:25 PM org.apache.solr.core.SolrCore initListeners INFO: [collection1] Added SolrEventListener for newSearcher: org.apache.solr.core.QuerySenderListener{queries=[]} May 09, 2013 2:52:25 PM org.apache.solr.core.SolrCore initListeners INFO: [collection1] Added SolrEventListener for firstSearcher: org.apache.solr.core.QuerySenderListener{queries=[{q=static firstSearcher warming in solrconfig.xml}]} </code></pre> <p>... but then a little while later it shuts down:</p> <pre><code>May 09, 2013 2:52:25 PM org.apache.solr.search.SolrIndexSearcher &lt;init&gt; INFO: Opening Searcher@5b27f008 main May 09, 2013 2:52:25 PM org.apache.solr.core.SolrCore close INFO: [collection1] CLOSING SolrCore org.apache.solr.core.SolrCore@78a38bfb May 09, 2013 2:52:25 PM org.apache.solr.core.QuerySenderListener newSearcher INFO: QuerySenderListener sending requests to Searcher@5b27f008 main{StandardDirectoryReader(segments_1:1)} May 09, 2013 2:52:25 PM org.apache.solr.update.SolrCoreState decrefSolrCoreState INFO: Closing SolrCoreState May 09, 2013 2:52:25 PM org.apache.solr.update.DefaultSolrCoreState closeIndexWriter INFO: SolrCoreState ref count has reached 0 - closing IndexWriter </code></pre> <p>... and then it throws a NullPointerException:</p> <pre><code>May 09, 2013 2:52:25 PM org.apache.solr.common.SolrException log SEVERE: java.lang.NullPointerException at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:181) at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135) at org.apache.solr.core.SolrCore.execute(SolrCore.java:1817) at org.apache.solr.core.QuerySenderListener.newSearcher(QuerySenderListener.java:64) at org.apache.solr.core.SolrCore$5.call(SolrCore.java:1606) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:722) </code></pre> <p>Thank You for any help you can give me.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload