Anytime I activate the autocomplete function of Aapche Solr, it cripples queries with the following error:

An HTTP error 500 occurred. apachesolr_autocomplete

Any suggestions

Comments

janusman’s picture

Please post a portion of your apache error log to see what is failing.

tsbah’s picture

I reactivated Apache Solr autocomplete and as stated the search function no longer works.

Here is the apache relevant error_log section:

[Sat Jul 24 13:06:03 2010] [notice] mod_python: Creating 4 session mutexes based on 256 max processes and 0 max threads.
[Sat Jul 24 13:06:04 2010] [warn] RSA server certificate CommonName (CN) `neene' does NOT match server name!?
[Sat Jul 24 13:06:04 2010] [notice] Apache/2.2.15 (Unix) DAV/2 mod_jk/1.2.28 PHP/5.3.2 mod_python/3.2.8 Python/2.4.3 mod_ssl/2.2.15 OpenSSL/0.9.8e-fips-rhel5 SVN/1.4.2 mod_perl/2.0.4 Perl/v5.8.8 configured -- resuming normal operations
janusman’s picture

Status: Active » Postponed (maintainer needs more info)

It seems your site is not properly logging errors... or the module silently failed somehow.

Please state how you got the 500 error... what URL is that? Or did you somehow extract that 500 error from inside an AJAX request using Firebug or such?

Also some possible workarounds or further diagnostics:

* Also, does the same happen on a fresh install of Drupal + apachesolr? (Or by disabling all of the other contrib modules you might have)

* What happens if you try using the DEV version?

* Is your Drupal core patched in any way?

adamelleston’s picture

I am getting the same error.

I have got an install of pressflow drupal 6.17 with a handful of core modules enabled and feeds.

The error in my log file is

org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr-example path=/select params={spellcheck=true&facet=true&facet.mincount=1&spellcheck.q=&facet.limit=25&json.nl=map&wt=json&rows=0&version=1.2&start=0&q=&facet.prefix=wonderful&facet.field=spell&fq=(nodeaccess_all:0+OR+hash:mwdw0l)} status=500 QTime=4
Oct 12, 2010 5:14:15 PM org.apache.solr.common.SolrException log
 SEVERE: java.lang.NullPointerException
        at java.io.StringReader.<init>(StringReader.java:33)

I have tried disabling all contrib modules that I can but no luck.

I also tried the dev version but instead of getting the error it just goes on forever and I got this message after install

Notice: Undefined index: class in apachesolr_autocomplete_form_search_block_form_alter() (line 46 of /home/pressflow/pressflowsite/public_html/sites/all/modules/apachesolr/contrib/apachesolr_autocomplete/apachesolr_autocomplete.module).
janusman’s picture

@adamelleston: thanks for the report.

Could you:
* report back with what version of Solr you are using?
* confirm if you have the proper schema.xml and solrconfig.xml files that are included with the installed version of apachesolr.module?

adamelleston’s picture

@janusman we are just in the process of settings up a drupal cloud server environment setup and believe that solr is being installed from fresh. Once that is ready I will test again on this new setup and let you know if the problem is still there or if its fixed.

janusman’s picture

Great. I just released version 1.1 yesterday, so make sure you use that too =)

adamelleston’s picture

@janusman the new server environment with 1.1 works a treat. Module is a great addition :)

allie micka’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Looks like this was resolved in 2010!