You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Benjamin Pasero (JIRA)" <ji...@apache.org> on 2008/04/14 16:35:04 UTC

[jira] Created: (LUCENE-1263) NullPointerException in java.util.Hashtable from executing a Query

NullPointerException in java.util.Hashtable from executing a Query
------------------------------------------------------------------

                 Key: LUCENE-1263
                 URL: https://issues.apache.org/jira/browse/LUCENE-1263
             Project: Lucene - Java
          Issue Type: Bug
          Components: Search
    Affects Versions: 2.1
            Reporter: Benjamin Pasero


Lately we are seeing this stacktrace showing up when executing a Query. Any ideas?

java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:482)
at org.apache.lucene.index.MultiReader.norms(MultiReader.java:167)
at org.apache.lucene.search.spans.SpanWeight.scorer(SpanWeight.java:72)
at org.apache.lucene.search.DisjunctionMaxQuery$DisjunctionMaxWeight.scorer(DisjunctionMaxQuery.java:131)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:130)
at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:100)
at org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:192)
at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:66)
at org.apache.lucene.search.Hits.(Hits.java:45)
at org.apache.lucene.search.Searcher.search(Searcher.java:45)
at org.apache.lucene.search.Searcher.search(Searcher.java:37)

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


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


[jira] Updated: (LUCENE-1263) NullPointerException in java.util.Hashtable from executing a Query

Posted by "Michael Busch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Busch updated LUCENE-1263:
----------------------------------

    Priority: Minor  (was: Major)

> NullPointerException in java.util.Hashtable from executing a Query
> ------------------------------------------------------------------
>
>                 Key: LUCENE-1263
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1263
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.1
>            Reporter: Benjamin Pasero
>            Priority: Minor
>
> Lately we are seeing this stacktrace showing up when executing a Query. Any ideas?
> java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:482)
> at org.apache.lucene.index.MultiReader.norms(MultiReader.java:167)
> at org.apache.lucene.search.spans.SpanWeight.scorer(SpanWeight.java:72)
> at org.apache.lucene.search.DisjunctionMaxQuery$DisjunctionMaxWeight.scorer(DisjunctionMaxQuery.java:131)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:130)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:100)
> at org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:192)
> at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:66)
> at org.apache.lucene.search.Hits.(Hits.java:45)
> at org.apache.lucene.search.Searcher.search(Searcher.java:45)
> at org.apache.lucene.search.Searcher.search(Searcher.java:37)

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


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


[jira] Commented: (LUCENE-1263) NullPointerException in java.util.Hashtable from executing a Query

Posted by "Benjamin Pasero (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590377#action_12590377 ] 

Benjamin Pasero commented on LUCENE-1263:
-----------------------------------------

This seems to be caused by an empty span-near-query. The term was filtered out by a stopword list. Any ideas?

> NullPointerException in java.util.Hashtable from executing a Query
> ------------------------------------------------------------------
>
>                 Key: LUCENE-1263
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1263
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.1
>            Reporter: Benjamin Pasero
>
> Lately we are seeing this stacktrace showing up when executing a Query. Any ideas?
> java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:482)
> at org.apache.lucene.index.MultiReader.norms(MultiReader.java:167)
> at org.apache.lucene.search.spans.SpanWeight.scorer(SpanWeight.java:72)
> at org.apache.lucene.search.DisjunctionMaxQuery$DisjunctionMaxWeight.scorer(DisjunctionMaxQuery.java:131)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:130)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:100)
> at org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:192)
> at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:66)
> at org.apache.lucene.search.Hits.(Hits.java:45)
> at org.apache.lucene.search.Searcher.search(Searcher.java:45)
> at org.apache.lucene.search.Searcher.search(Searcher.java:37)

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


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


[jira] Commented: (LUCENE-1263) NullPointerException in java.util.Hashtable from executing a Query

Posted by "Mark Miller (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12646396#action_12646396 ] 

Mark Miller commented on LUCENE-1263:
-------------------------------------

I cannot duplicate your problem. Are you sure this an issue with Lucene and not your code? Any hints on recreating it?

> NullPointerException in java.util.Hashtable from executing a Query
> ------------------------------------------------------------------
>
>                 Key: LUCENE-1263
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1263
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.1
>            Reporter: Benjamin Pasero
>            Priority: Minor
>
> Lately we are seeing this stacktrace showing up when executing a Query. Any ideas?
> java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:482)
> at org.apache.lucene.index.MultiReader.norms(MultiReader.java:167)
> at org.apache.lucene.search.spans.SpanWeight.scorer(SpanWeight.java:72)
> at org.apache.lucene.search.DisjunctionMaxQuery$DisjunctionMaxWeight.scorer(DisjunctionMaxQuery.java:131)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:130)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:100)
> at org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:192)
> at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:66)
> at org.apache.lucene.search.Hits.(Hits.java:45)
> at org.apache.lucene.search.Searcher.search(Searcher.java:45)
> at org.apache.lucene.search.Searcher.search(Searcher.java:37)

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


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


[jira] Commented: (LUCENE-1263) NullPointerException in java.util.Hashtable from executing a Query

Posted by "Benjamin Pasero (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591647#action_12591647 ] 

Benjamin Pasero commented on LUCENE-1263:
-----------------------------------------

The problem is actually a SpanNearQuery with an empty list of Spans, zero slop and TRUE for the inOrder attribute. I have special cased this in our lucene usage so that we dont run into this issue again. Still I think it should not cause this NPE in Lucene.

> NullPointerException in java.util.Hashtable from executing a Query
> ------------------------------------------------------------------
>
>                 Key: LUCENE-1263
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1263
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.1
>            Reporter: Benjamin Pasero
>            Priority: Minor
>
> Lately we are seeing this stacktrace showing up when executing a Query. Any ideas?
> java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:482)
> at org.apache.lucene.index.MultiReader.norms(MultiReader.java:167)
> at org.apache.lucene.search.spans.SpanWeight.scorer(SpanWeight.java:72)
> at org.apache.lucene.search.DisjunctionMaxQuery$DisjunctionMaxWeight.scorer(DisjunctionMaxQuery.java:131)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:130)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:100)
> at org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:192)
> at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:66)
> at org.apache.lucene.search.Hits.(Hits.java:45)
> at org.apache.lucene.search.Searcher.search(Searcher.java:45)
> at org.apache.lucene.search.Searcher.search(Searcher.java:37)

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


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


[jira] Commented: (LUCENE-1263) NullPointerException in java.util.Hashtable from executing a Query

Posted by "Michael Busch (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12590408#action_12590408 ] 

Michael Busch commented on LUCENE-1263:
---------------------------------------

Benjamin,

could you provide more information about how your queries look like and how they're created?

It looks like the SpanQuery your are trying to execute has a field value of null.

> NullPointerException in java.util.Hashtable from executing a Query
> ------------------------------------------------------------------
>
>                 Key: LUCENE-1263
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1263
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.1
>            Reporter: Benjamin Pasero
>
> Lately we are seeing this stacktrace showing up when executing a Query. Any ideas?
> java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:482)
> at org.apache.lucene.index.MultiReader.norms(MultiReader.java:167)
> at org.apache.lucene.search.spans.SpanWeight.scorer(SpanWeight.java:72)
> at org.apache.lucene.search.DisjunctionMaxQuery$DisjunctionMaxWeight.scorer(DisjunctionMaxQuery.java:131)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:130)
> at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:100)
> at org.apache.lucene.search.MultiSearcher.search(MultiSearcher.java:192)
> at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:66)
> at org.apache.lucene.search.Hits.(Hits.java:45)
> at org.apache.lucene.search.Searcher.search(Searcher.java:45)
> at org.apache.lucene.search.Searcher.search(Searcher.java:37)

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


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