You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Bernd Fehling <be...@uni-bielefeld.de> on 2012/01/31 14:21:00 UTC

SolrException with branch_3x

On January 11th I downloaded branch_3x with svn into eclipse (indigo).
Compiled and tested it without problems.
Today I updated my branch_3x from repository.
Compiled fine but get now SolrException when starting.

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 isn't able to init QueryResponseWriter on startup :-(
My config hasn't changed since 3 weeks ago.
Can't find any issue in CHANGES.txt belonging to this.


And something else to mention, in SolrCore.java initWriters at lines 1491 to 1495:
if(info.isDefault()){
    defaultResponseWriter = writer;
    if(defaultResponseWriter != null)
      log.warn("Multiple default queryResponseWriter registered ignoring: " + old.getClass().getName());
}

This will also log.warn for the first defaultResponseWriter.
I would place "defaultResponseWriter = writer;" _AFTER_ the if/log.warn.


Regards,
Bernd

SOLVED: SolrException with branch_3x

Posted by Bernd Fehling <be...@uni-bielefeld.de>.
After changing the below suggested lines and compiling the branch_3x runs fine now.
SolrException is gone.

Regards,
Bernd

Am 31.01.2012 14:21, schrieb Bernd Fehling:
> On January 11th I downloaded branch_3x with svn into eclipse (indigo).
> Compiled and tested it without problems.
> Today I updated my branch_3x from repository.
> Compiled fine but get now SolrException when starting.
>
> 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 isn't able to init QueryResponseWriter on startup :-(
> My config hasn't changed since 3 weeks ago.
> Can't find any issue in CHANGES.txt belonging to this.
>
>
> And something else to mention, in SolrCore.java initWriters at lines 1491 to 1495:
> if(info.isDefault()){
> defaultResponseWriter = writer;
> if(defaultResponseWriter != null)
> log.warn("Multiple default queryResponseWriter registered ignoring: " + old.getClass().getName());
> }
>
> This will also log.warn for the first defaultResponseWriter.
> I would place "defaultResponseWriter = writer;" _AFTER_ the if/log.warn.
>
>
> Regards,
> Bernd