Andy Lester (JIRA | 29 Jun 2012 20:55
Picon
Favicon

[jira] [Created] (SOLR-3584) NPE when trying to spellcheck.build

Andy Lester created SOLR-3584:
---------------------------------

             Summary: NPE when trying to spellcheck.build
                 Key: SOLR-3584
                 URL: https://issues.apache.org/jira/browse/SOLR-3584
             Project: Solr
          Issue Type: Bug
          Components: spellchecker
    Affects Versions: 3.6
         Environment: uname -a
Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
            Reporter: Andy Lester

I'm trying to force indexing of my spellchecker component on my "titles" core.

/solr/titles/suggest?q=at&spellcheck=true gives me back no results.

/solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as

null java.lang.NullPointerException at
org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109)
at ....

--
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
Andy Lester (JIRA | 29 Jun 2012 20:55
Picon
Favicon

[jira] [Commented] (SOLR-3584) NPE when trying to spellcheck.build


    [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404117#comment-13404117
] 

Andy Lester commented on SOLR-3584:
-----------------------------------

Full NPE:

HTTP Status 500 - null java.lang.NullPointerException at
org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109)
at
org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:165)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129) at
org.apache.solr.core.SolrCore.execute(SolrCore.java:1376) at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365) at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260) at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555) at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
(Continue reading)

Andy Lester (JIRA | 29 Jun 2012 20:57
Picon
Favicon

[jira] [Comment Edited] (SOLR-3584) NPE when trying to spellcheck.build


    [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404119#comment-13404119
] 

Andy Lester edited comment on SOLR-3584 at 6/29/12 6:57 PM:
------------------------------------------------------------

Relevant config from my solrconfig.xml

{{
    <!--
    Suggester from page 223 of Apache Solr 3 Enterprise Search Server
    -->
    <searchComponent name="suggest" class="solr.SpellCheckComponent">
        <lst name="spellChecker">
            <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
            <str name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookup</str>
            <str name="field">titlea</str>
            <float name="threshold">0.005</float>
            <str name="buildOnCommit">true</str>
            <int name="weightBuckets">100</int>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler">
        <lst name="defaults">
            <str name="spellcheck">true</str>
            <str name="spellcheck.dictionary">a_suggest</str>
            <str name="spellcheck.onlyMorePopular">true</str>
            <str name="spellcheck.count">5</str>
(Continue reading)

Andy Lester (JIRA | 29 Jun 2012 20:57
Picon
Favicon

[jira] [Commented] (SOLR-3584) NPE when trying to spellcheck.build


    [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404119#comment-13404119
] 

Andy Lester commented on SOLR-3584:
-----------------------------------

Relevant config from my solrconfig.xml

    <!--
    Suggester from page 223 of Apache Solr 3 Enterprise Search Server
    -->
    <searchComponent name="suggest" class="solr.SpellCheckComponent">
        <lst name="spellChecker">
            <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
            <str name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookup</str>
            <str name="field">titlea</str>
            <float name="threshold">0.005</float>
            <str name="buildOnCommit">true</str>
            <int name="weightBuckets">100</int>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler">
        <lst name="defaults">
            <str name="spellcheck">true</str>
            <str name="spellcheck.dictionary">a_suggest</str>
            <str name="spellcheck.onlyMorePopular">true</str>
            <str name="spellcheck.count">5</str>
            <str name="spellcheck.collate">true</str>
(Continue reading)

Andy Lester (JIRA | 29 Jun 2012 20:59
Picon
Favicon

[jira] [Comment Edited] (SOLR-3584) NPE when trying to spellcheck.build


    [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404119#comment-13404119
] 

Andy Lester edited comment on SOLR-3584 at 6/29/12 6:58 PM:
------------------------------------------------------------

Relevant config from my solrconfig.xml

{code:xml}
    <!--
    Suggester from page 223 of Apache Solr 3 Enterprise Search Server
    -->
    <searchComponent name="suggest" class="solr.SpellCheckComponent">
        <lst name="spellChecker">
            <str name="classname">org.apache.solr.spelling.suggest.Suggester</str>
            <str name="lookupImpl">org.apache.solr.spelling.suggest.fst.FSTLookup</str>
            <str name="field">titlea</str>
            <float name="threshold">0.005</float>
            <str name="buildOnCommit">true</str>
            <int name="weightBuckets">100</int>
        </lst>
    </searchComponent>
    <requestHandler name="/suggest" class="solr.SearchHandler">
        <lst name="defaults">
            <str name="spellcheck">true</str>
            <str name="spellcheck.dictionary">a_suggest</str>
            <str name="spellcheck.onlyMorePopular">true</str>
            <str name="spellcheck.count">5</str>
(Continue reading)

Andy Lester (JIRA | 29 Jun 2012 21:01
Picon
Favicon

[jira] [Commented] (SOLR-3584) NPE when trying to spellcheck.build


    [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404125#comment-13404125
] 

Andy Lester commented on SOLR-3584:
-----------------------------------

My Tomcat catalina.out log file doesn't have anything different:

INFO: [titles] webapp=/solr path=/suggest params={spellcheck=true&q=at&spellcheck.build=true}
status=500 QTime=0 
Jun 29, 2012 1:53:37 PM org.apache.solr.common.SolrException log
SEVERE: java.lang.NullPointerException
        at org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109)
        at org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:165)
        at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:129)
        at org.apache.solr.core.SolrCore.execute(SolrCore.java:1376)
        at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:365)
        at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:260)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
(Continue reading)

James Dyer (JIRA | 29 Jun 2012 21:16
Picon
Favicon

[jira] [Resolved] (SOLR-3584) NPE when trying to spellcheck.build


     [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer resolved SOLR-3584.
------------------------------

    Resolution: Invalid

Andy,

Please use the user's mailing list for questions like this.

I think you just have a little config problem.  In solrconfig.xml, under <lst name="spellChecker">, add
<str name="name">a_suggest</str> .

> NPE when trying to spellcheck.build
> -----------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
(Continue reading)

Andy Lester (JIRA | 29 Jun 2012 21:22
Picon
Favicon

[jira] [Commented] (SOLR-3584) NPE when trying to spellcheck.build


    [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404142#comment-13404142
] 

Andy Lester commented on SOLR-3584:
-----------------------------------

I was doing as instructed by Chris Hostetter (hoss) in #solr.  He said: "please file a bug, because no matter
how badly you might have munged your configs, or sent a bad request, Solr shouldn't just throw an NPE,
someone should be catching it and giving you back a useful message about the context"

                
> NPE when trying to spellcheck.build
> -----------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at
(Continue reading)

James Dyer (JIRA | 29 Jun 2012 21:36
Picon
Favicon

[jira] [Updated] (SOLR-3584) Solr shouldn't throw NPE when spellcheck dictionary isn'


     [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer updated SOLR-3584:
-----------------------------

    Priority: Minor  (was: Major)
     Summary: Solr shouldn't throw NPE when spellcheck dictionary isn'  (was: NPE when trying to spellcheck.build)

> Solr shouldn't throw NPE when spellcheck dictionary isn'
> --------------------------------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>            Priority: Minor
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at
org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109)
at ....
(Continue reading)

James Dyer (JIRA | 29 Jun 2012 21:38
Picon
Favicon

[jira] [Updated] (SOLR-3584) Solr shouldn't throw NPE on config errors


     [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer updated SOLR-3584:
-----------------------------

    Summary: Solr shouldn't throw NPE on config errors  (was: Solr shouldn't throw NPE when spellcheck
dictionary isn')

> Solr shouldn't throw NPE on config errors
> -----------------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>            Priority: Minor
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at
org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109)
at ....
(Continue reading)

Andy Lester (JIRA | 29 Jun 2012 21:38
Picon
Favicon

[jira] [Commented] (SOLR-3584) Solr shouldn't throw NPE when spellcheck dictionary isn'


    [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13404144#comment-13404144
] 

Andy Lester commented on SOLR-3584:
-----------------------------------

It seems that the cause is in the <searchComponent> section.  I had <lst name="spellChecker"> where it
should have been <lst name="spellchecker">.  I can reliably get the NPE by switching to the
miscapitalized version.

> Solr shouldn't throw NPE when spellcheck dictionary isn'
> --------------------------------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>            Priority: Minor
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at
(Continue reading)

James Dyer (JIRA | 29 Jun 2012 21:38
Picon
Favicon

[jira] [Updated] (SOLR-3584) Spellcheck shouldn't throw NPE on config errors


     [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer updated SOLR-3584:
-----------------------------

    Summary: Spellcheck shouldn't throw NPE on config errors  (was: Solr shouldn't throw NPE on config errors)

> Spellcheck shouldn't throw NPE on config errors
> -----------------------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>            Priority: Minor
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at
org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109)
at ....

(Continue reading)

Hoss Man (JIRA | 30 Jun 2012 03:52
Picon
Favicon

[jira] [Updated] (SOLR-1725) Script based UpdateRequestProcessorFactory


     [
https://issues.apache.org/jira/browse/SOLR-1725?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hoss Man updated SOLR-1725:
---------------------------

    Attachment: SOLR-1725.patch

Updated patch, changes...

* refactor TestBadConfig and BadIndexSchemaTest to use common base class
* add TestBadConfig tests that bad script processor configs should fail on init
* add initEngine call to inform so errors are triggered at startup
* tweak SolrCore init error reporting to make the underlying msg more visible
* tweak script processor error reporting to have better error msgs
* test wrapping of errors thrown by the script functions
* explicitly check that ScriptEngine is Invocable
* make tests use assume() on existence of javascript engine since JVMs aren't garunteed to support it
* make processor fail hard if a method is missing from a script
* revert unneccessary SolrResourceLoader change
* fixed rmuirs charset suggestions

...the only thing from my previous list i didn't get to today was polishing up the javadocs (still some TODOs
in there about scoping)

---

FWIW: Erik and i had a (VERY) breif exchange on IRC last night about the "NoSuchMethod" problem in which he
pointed me to his earlier comment about a simpler syntax for just dealing with "processAdd" as it's own
(Continue reading)

James Dyer (JIRA | 29 Jun 2012 21:38
Picon
Favicon

[jira] [Reopened] (SOLR-3584) Solr shouldn't throw NPE on config errors


     [
https://issues.apache.org/jira/browse/SOLR-3584?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Dyer reopened SOLR-3584:
------------------------------

Re-open with a clarified title

> Solr shouldn't throw NPE on config errors
> -----------------------------------------
>
>                 Key: SOLR-3584
>                 URL: https://issues.apache.org/jira/browse/SOLR-3584
>             Project: Solr
>          Issue Type: Bug
>          Components: spellchecker
>    Affects Versions: 3.6
>         Environment: uname -a
> Linux hostname 2.6.32-131.6.1.el6.x86_64 #1 SMP Mon Sep 26 10:18:37 GMT 2011 x86_64 x86_64 x86_64 GNU/Linux
>            Reporter: Andy Lester
>            Priority: Minor
>
> I'm trying to force indexing of my spellchecker component on my "titles" core.
> /solr/titles/suggest?q=at&spellcheck=true gives me back no results.
> /solr/titles/suggest?q=at&spellcheck=true&spellcheck.build=true gives me an NPE starting as
> null java.lang.NullPointerException at
org.apache.solr.handler.component.SpellCheckComponent.prepare(SpellCheckComponent.java:109)
at ....

(Continue reading)


Gmane