FAQ
SpellcheckComponent throws NullPointerException on restart without build
------------------------------------------------------------------------

Key: SOLR-648
URL: https://issues.apache.org/jira/browse/SOLR-648
Project: Solr
Issue Type: Bug
Affects Versions: 1.3
Reporter: Geoffrey Young


from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e:

"I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
where the analyzer variable is only set on the build command. Therefore,
when the index is reloaded, but not built after starting solr, issuing a
query with the spellcheck.q parameter will cause a NullPointerException to
be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
constructor seems to fix the problem."


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Search Discussions

  • Geoffrey Young (JIRA) at Jul 23, 2008 at 3:28 pm
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Geoffrey Young updated SOLR-648:
    --------------------------------

    Description:
    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e

    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."


    was:
    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e:

    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."


    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young

    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Yonik Seeley (JIRA) at Jul 23, 2008 at 4:02 pm
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Yonik Seeley updated SOLR-648:
    ------------------------------

    Fix Version/s: 1.3
    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young
    Fix For: 1.3


    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Shalin Shekhar Mangar (JIRA) at Jul 23, 2008 at 5:18 pm
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Shalin Shekhar Mangar reassigned SOLR-648:
    ------------------------------------------

    Assignee: Shalin Shekhar Mangar
    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young
    Assignee: Shalin Shekhar Mangar
    Fix For: 1.3


    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Jonathan Lee (JIRA) at Jul 23, 2008 at 6:02 pm
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Jonathan Lee updated SOLR-648:
    ------------------------------

    Attachment: SOLR-648.patch

    Here is the patch that was originally sent by email, which probably needs to be changed: http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4ACB4E4.AE1F%25jonathan_lee@comcast.com%3e
    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young
    Assignee: Shalin Shekhar Mangar
    Fix For: 1.3

    Attachments: SOLR-648.patch


    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Shalin Shekhar Mangar (JIRA) at Jul 25, 2008 at 10:03 am
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Shalin Shekhar Mangar updated SOLR-648:
    ---------------------------------------

    Attachment: SOLR-648.patch

    This fixes the NullPointerException. The changes are:
    * The signature of the init method is changed to init(NamedList, SolrCore)
    * All analyzer defining code is moved to AbstractLuceneSpellChecker#init from the build methods in IndexBasedSpellChecker and FileBasedSpellChecker.

    I'll add a test and then give another patch shortly.
    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young
    Assignee: Shalin Shekhar Mangar
    Fix For: 1.3

    Attachments: SOLR-648.patch, SOLR-648.patch


    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Shalin Shekhar Mangar (JIRA) at Jul 25, 2008 at 10:19 am
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Work on SOLR-648 started by Shalin Shekhar Mangar.
    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young
    Assignee: Shalin Shekhar Mangar
    Fix For: 1.3

    Attachments: SOLR-648.patch, SOLR-648.patch


    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Shalin Shekhar Mangar (JIRA) at Jul 25, 2008 at 1:33 pm
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Shalin Shekhar Mangar updated SOLR-648:
    ---------------------------------------

    Attachment: SOLR-648.patch

    Added testcase as SpellCheckComponentTest#testReloadOnStart which reproduces the bug reported in this issue.

    Grant, would you like to review this patch? It contains minor API change so you'll need to revisit the custom SolrSpellChecker implementation you had. I'd like to commit this asap so that I can continue with SOLR-622.

    An alternate way would have been to change the signature of the SolrSpellChecker.reload method to take in atleast the SolrCore or the same params as the build method.
    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young
    Assignee: Shalin Shekhar Mangar
    Fix For: 1.3

    Attachments: SOLR-648.patch, SOLR-648.patch, SOLR-648.patch


    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Grant Ingersoll (JIRA) at Jul 25, 2008 at 1:51 pm
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616889#action_12616889 ]

    Grant Ingersoll commented on SOLR-648:
    --------------------------------------

    I perused the patch and it looks reasonable since we are just getting the ResourceLoader from the Core there anyway. It does look like we should add a test case for this issue.
    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young
    Assignee: Shalin Shekhar Mangar
    Fix For: 1.3

    Attachments: SOLR-648.patch, SOLR-648.patch, SOLR-648.patch


    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Shalin Shekhar Mangar (JIRA) at Jul 25, 2008 at 2:00 pm
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616892#action_12616892 ]

    Shalin Shekhar Mangar commented on SOLR-648:
    --------------------------------------------

    Yes, I've added a testcase which fails otherwise.
    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young
    Assignee: Shalin Shekhar Mangar
    Fix For: 1.3

    Attachments: SOLR-648.patch, SOLR-648.patch, SOLR-648.patch


    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Shalin Shekhar Mangar (JIRA) at Jul 25, 2008 at 2:32 pm
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

    Shalin Shekhar Mangar resolved SOLR-648.
    ----------------------------------------

    Resolution: Fixed

    Committed.

    Thanks Jonathan and Geoffrey!
    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young
    Assignee: Shalin Shekhar Mangar
    Fix For: 1.3

    Attachments: SOLR-648.patch, SOLR-648.patch, SOLR-648.patch


    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
  • Shalin Shekhar Mangar (JIRA) at Jul 25, 2008 at 2:41 pm
    [ https://issues.apache.org/jira/browse/SOLR-648?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12616907#action_12616907 ]

    shalinmangar edited comment on SOLR-648 at 7/25/08 7:39 AM:
    ---------------------------------------------------------------------

    Committed revision 679816.

    Thanks Jonathan and Geoffrey!

    was (Author: shalinmangar):
    Committed.

    Thanks Jonathan and Geoffrey!
    SpellcheckComponent throws NullPointerException on restart without build
    ------------------------------------------------------------------------

    Key: SOLR-648
    URL: https://issues.apache.org/jira/browse/SOLR-648
    Project: Solr
    Issue Type: Bug
    Affects Versions: 1.3
    Reporter: Geoffrey Young
    Assignee: Shalin Shekhar Mangar
    Fix For: 1.3

    Attachments: SOLR-648.patch, SOLR-648.patch, SOLR-648.patch


    from http://mail-archives.apache.org/mod_mbox/lucene-solr-user/200807.mbox/%3cC4AC838E.ADE7%25jonathan_lee@comcast.com%3e
    "I believe there is a bug in IndexBased- and FileBasedSpellChecker.java
    where the analyzer variable is only set on the build command. Therefore,
    when the index is reloaded, but not built after starting solr, issuing a
    query with the spellcheck.q parameter will cause a NullPointerException to
    be thrown (SpellCheckComponent.java:158). Moving the analyzer logic to the
    constructor seems to fix the problem."
    --
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupsolr-dev @
categorieslucene
postedJul 23, '08 at 3:26p
activeJul 25, '08 at 2:41p
posts12
users1
websitelucene.apache.org...

1 user in discussion

Shalin Shekhar Mangar (JIRA): 12 posts

People

Translate

site design / logo © 2019 Grokbase