You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Bernd Fehling (Created) (JIRA)" <ji...@apache.org> on 2012/02/01 10:01:00 UTC

[jira] [Created] (SOLR-3084) SolrException from QueryResponseWriter initWriters

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


[jira] [Commented] (SOLR-3084) default="true" causes NPE -> SolrException from QueryResponseWriter initWriters

Posted by "Bernd Fehling (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13198597#comment-13198597 ] 

Bernd Fehling commented on SOLR-3084:
-------------------------------------

Thanks a lot for checking my patch.

                
> default="true" causes NPE -> 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
>            Assignee: Bernd Fehling
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-3084.patch, SOLR-3084.patch
>
>
> 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}, .....
> 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)
> ... 

--
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


[jira] [Resolved] (SOLR-3084) default="true" causes NPE -> SolrException from QueryResponseWriter initWriters

Posted by "Hoss Man (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man resolved SOLR-3084.
----------------------------

    Resolution: Fixed

Thanks for reporting this and helping get to the bottom of it Bernd!

Committed revision 1239316. - trunk
Committed revision 1239327. - 3x
                
> default="true" causes NPE -> 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
>            Assignee: Bernd Fehling
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-3084.patch, SOLR-3084.patch
>
>
> 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}, .....
> 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)
> ... 

--
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


[jira] [Resolved] (SOLR-3084) SolrException from QueryResponseWriter initWriters

Posted by "Bernd Fehling (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Fehling resolved SOLR-3084.
---------------------------------

    Resolution: Fixed
    
> 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
>
>         Attachments: SOLR-3084.patch
>
>
> 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}, .....
> 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)
> ... 

--
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


[jira] [Updated] (SOLR-3084) SolrException from QueryResponseWriter initWriters

Posted by "Bernd Fehling (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Fehling updated SOLR-3084:
--------------------------------

    Description: 
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}, .....
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.




  was:
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}, .....
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.




    
> 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
>
>         Attachments: SOLR-3084.patch
>
>
> 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}, .....
> 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


[jira] [Updated] (SOLR-3084) SolrException from QueryResponseWriter initWriters

Posted by "Bernd Fehling (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Fehling updated SOLR-3084:
--------------------------------

    Attachment: SOLR-3084.patch
    
> 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
>
>         Attachments: SOLR-3084.patch
>
>
> 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


[jira] [Updated] (SOLR-3084) SolrException from QueryResponseWriter initWriters

Posted by "Bernd Fehling (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Fehling updated SOLR-3084:
--------------------------------

    Description: 
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}, .....
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.




  was:
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.




    
> 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
>
>         Attachments: SOLR-3084.patch
>
>
> 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}, .....
> 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


[jira] [Updated] (SOLR-3084) default="true" causes NPE -> SolrException from QueryResponseWriter initWriters

Posted by "Hoss Man (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man updated SOLR-3084:
---------------------------

    Assignee: Bernd Fehling
     Summary: default="true" causes NPE -> SolrException from QueryResponseWriter initWriters  (was: SolrException from QueryResponseWriter initWriters)
    
> default="true" causes NPE -> 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
>            Assignee: Bernd Fehling
>             Fix For: 3.6, 4.0
>
>         Attachments: SOLR-3084.patch, SOLR-3084.patch
>
>
> 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}, .....
> 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)
> ... 

--
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


[jira] [Commented] (SOLR-3084) SolrException from QueryResponseWriter initWriters

Posted by "Bernd Fehling (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197701#comment-13197701 ] 

Bernd Fehling commented on SOLR-3084:
-------------------------------------

It turned out that log.warn is always triggered, also for the first default queryResponseWriter.

{code:xml}
if(info.isDefault()){
  defaultResponseWriter = writer;
  if(defaultResponseWriter != null)
    log.warn("Multiple default queryResponseWriter registered ignoring: " + old.getClass().getName());
}
{code}


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

{code:xml}
if(info.isDefault()){
  if(defaultResponseWriter != null)
    log.warn("Multiple default queryResponseWriter registered ignoring: " + old.getClass().getName());
  defaultResponseWriter = writer;
}
{code}


                
> 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
>
>         Attachments: SOLR-3084.patch
>
>
> 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}, .....
> 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)
> ... 

--
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


[jira] [Updated] (SOLR-3084) SolrException from QueryResponseWriter initWriters

Posted by "Hoss Man (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man updated SOLR-3084:
---------------------------

    Attachment: SOLR-3084.patch

Updated patch to fix the check to not use "old" at all.

also tweaked a test config so that 'default="true"' was used, making this failure extremely evident in tests (w/o this patch)
                
> 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
>
>         Attachments: SOLR-3084.patch, SOLR-3084.patch
>
>
> 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}, .....
> 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)
> ... 

--
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


[jira] [Updated] (SOLR-3084) SolrException from QueryResponseWriter initWriters

Posted by "Bernd Fehling (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bernd Fehling updated SOLR-3084:
--------------------------------

    Description: 
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}, .....
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)
... 



  was:
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}, .....
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.




    
> 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
>
>         Attachments: SOLR-3084.patch
>
>
> 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}, .....
> 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)
> ... 

--
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


[jira] [Reopened] (SOLR-3084) SolrException from QueryResponseWriter initWriters

Posted by "Hoss Man (Reopened) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3084?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man reopened SOLR-3084:
----------------------------


Bernd: I'm not sure why you resolved this?  it definitely looks like a very annoying and serious bug that would burn anyone overriding the "default" responseWriter -- and not even in a way that would give them a useful error message

the problem isn't just the order of the assignment as you fix in your patch, but also that:

* this check assumes "old" is non-null, which this check has no buisness assuming
* that "old" is in some way a reflection of the duplicate "defaults" ... which is completely un-true.
                
> 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
>
>         Attachments: SOLR-3084.patch
>
>
> 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}, .....
> 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)
> ... 

--
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