lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Fehling (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (SOLR-3084) SolrException from QueryResponseWriter initWriters
Date Wed, 01 Feb 2012 09:01:00 GMT
SolrException from QueryResponseWriter initWriters
--------------------------------------------------

                 Key: SOLR-3084
                 URL: https://issues.apache.org/jira/browse/SOLR-3084
             Project: Solr
          Issue Type: Bug
          Components: Response Writers
            Reporter: Bernd Fehling
             Fix For: 3.6, 4.0


This is from issue SOLR-2718 and came up after backporting that issue to branch_3x.
After that backport I get a SolrException.

Jan 31, 2012 1:50:15 PM org.apache.solr.core.SolrCore initListeners
INFO: [] Added SolrEventListener for firstSearcher: org.apache.solr.core.QuerySenderListener{queries=[{q=*:*,start=0,rows=10,spellcheck.build=true},
{q=(text:(*:*).....
Jan 31, 2012 2:00:10 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: QueryResponseWriter init failure
    at org.apache.solr.core.SolrCore.initWriters(SolrCore.java:1499)
    at org.apache.solr.core.SolrCore.<init>(SolrCore.java:557)
    at org.apache.solr.core.CoreContainer.create(CoreContainer.java:466)
    at org.apache.solr.core.CoreContainer.load(CoreContainer.java:319)
... 

It turned out that log.warn is always triggered, also for the first default queryResponseWriter.
    if(info.isDefault()){
       defaultResponseWriter = writer;
       if(defaultResponseWriter != null)
          log.warn("Multiple default queryResponseWriter registered ignoring: " + old.getClass().getName());
    }

Solution is to place "defaultResponseWriter = writer;" after the if clause.




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message