I've enabled the apachesolr_autocomplete module and every time I type a character into the searchbox, I get an error dialog with the following text
An error occurred.
http://localhost/drupal/apachesolr_autocomplete
<br />
<b>Fatal error</b>: Uncaught exception 'Exception' with message '&quot;500&quot; Status: Internal Server Error&lt;html&gt;&lt;head&gt;&lt;title&gt;Apache Tomcat/6.0.24 - Error report&lt;/title&gt;&lt;style&gt;&lt;!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--&gt;&lt;/style&gt; &lt;/head&gt;&lt;body&gt;&lt;h1&gt;HTTP Status 500 - null
java.lang.NullPointerException
at java.io.StringReader.&amp;lt;init&amp;gt;(StringReader.java:50)
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:197)
at org.apache.solr.search.LuceneQParser.parse(LuceneQParserPlugin.j in <b>/opt/lampp/htdocs/drupal/sites/all/modules/apachesolr/Drupal_Apache_Solr_Service.php</b> on line <b>272</b><br />
Using core theme and happens with devel enabled and disabled.
Comments
Comment #1
janusman commentedCould you try to paste the appropriate portion of the Solr log here too? Thanks.
Comment #2
nigelbabu commentedWhere do I find the Solr log? (on an Ubuntu machine using tomcat-solr)
Comment #3
janusman commentedGood question =) I only know where to find it when running the bundled Jetty server =)
Comment #4
nigelbabu commentedWell, gimme that, I'll run the bundled jetty server and try to get the logs. Anything that can help you figure out what's going wrong :)
Comment #5
janusman commented=) Look in the example/logs directory and you will see logs divided by date.
Comment #6
kentr commentedRelated:
- #950872: Don't show server errors in UI
Comment #7
Sylvain_G commentedI did reproduce it too
XHR http://xxxx/apachesolr_autocomplete?query=test&limit=50×tamp=130391...
response :
Solr Logs:
Otherwise solr search, facets etc works like a charm.
java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
Solr version 1.4.1
Solr
Hope it helps
Comment #8
Sylvain_G commentedMoving to 6.x-1.3 and update Solr config with drupal-1.3 schema seems to fix my issue
Comment #9
janusman commented@Sylvain_G: hope you can answer some questions.
-when you mention "moving to 6.x-1.3" ... that's the version for which module?
-what versions of ApacheSolr, ApacheSolr autocomplete and the schema.xml and solrconfig.xml files are you using in #8 AND in #7?
Thanks
Comment #10
Sylvain_G commented@janusman i upgrade apachesolr and apachesolr_autocomplete to last version and use the provided schema.xml (drupal-1.4) and solrconfig.xml