You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Rich Johnson (JIRA)" <ji...@apache.org> on 2007/07/05 18:00:04 UTC

[jira] Created: (LUCENE-951) PATCH MultiLevelSkipListReader NullPointerException

PATCH MultiLevelSkipListReader NullPointerException
---------------------------------------------------

                 Key: LUCENE-951
                 URL: https://issues.apache.org/jira/browse/LUCENE-951
             Project: Lucene - Java
          Issue Type: Bug
          Components: Index
    Affects Versions: 2.2
            Reporter: Rich Johnson


 When Reconstructing Document Using Luke Tool, received NullPointerException.

java.lang.NullPointerException
        at org.apache.lucene.index.MultiLevelSkipListReader.loadSkipLevels(MultiLevelSkipListReader.java:188)
        at org.apache.lucene.index.MultiLevelSkipListReader.skipTo(MultiLevelSkipListReader.java:97)
        at org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:164)
        at org.getopt.luke.Luke$2.run(Unknown Source)

Luke version 0.7.1

I emailed with Luke author Andrzej Bialecki and he suggested the attached patch file which fixed the problem.


-- 
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-951) PATCH MultiLevelSkipListReader NullPointerException

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

Michael Busch updated LUCENE-951:
---------------------------------

    Attachment: lucene-951.patch

With this patch reusing the same TermPositions object for different terms
works fine now. It includes a testcase that shows the bug. All tests pass.

> PATCH MultiLevelSkipListReader NullPointerException
> ---------------------------------------------------
>
>                 Key: LUCENE-951
>                 URL: https://issues.apache.org/jira/browse/LUCENE-951
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.2
>            Reporter: Rich Johnson
>            Assignee: Michael Busch
>         Attachments: lucene-951.patch, MultiLevelSkipListReader.patch
>
>
>  When Reconstructing Document Using Luke Tool, received NullPointerException.
> java.lang.NullPointerException
>         at org.apache.lucene.index.MultiLevelSkipListReader.loadSkipLevels(MultiLevelSkipListReader.java:188)
>         at org.apache.lucene.index.MultiLevelSkipListReader.skipTo(MultiLevelSkipListReader.java:97)
>         at org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:164)
>         at org.getopt.luke.Luke$2.run(Unknown Source)
> Luke version 0.7.1
> I emailed with Luke author Andrzej Bialecki and he suggested the attached patch file which fixed the problem.

-- 
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-951) PATCH MultiLevelSkipListReader NullPointerException

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

Rich Johnson updated LUCENE-951:
--------------------------------

    Attachment: MultiLevelSkipListReader.patch

> PATCH MultiLevelSkipListReader NullPointerException
> ---------------------------------------------------
>
>                 Key: LUCENE-951
>                 URL: https://issues.apache.org/jira/browse/LUCENE-951
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.2
>            Reporter: Rich Johnson
>         Attachments: MultiLevelSkipListReader.patch
>
>
>  When Reconstructing Document Using Luke Tool, received NullPointerException.
> java.lang.NullPointerException
>         at org.apache.lucene.index.MultiLevelSkipListReader.loadSkipLevels(MultiLevelSkipListReader.java:188)
>         at org.apache.lucene.index.MultiLevelSkipListReader.skipTo(MultiLevelSkipListReader.java:97)
>         at org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:164)
>         at org.getopt.luke.Luke$2.run(Unknown Source)
> Luke version 0.7.1
> I emailed with Luke author Andrzej Bialecki and he suggested the attached patch file which fixed the problem.

-- 
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-951) PATCH MultiLevelSkipListReader NullPointerException

Posted by "Yonik Seeley (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12510415 ] 

Yonik Seeley commented on LUCENE-951:
-------------------------------------

Interesting... I wonder why none of our current tests hit this bug.

> PATCH MultiLevelSkipListReader NullPointerException
> ---------------------------------------------------
>
>                 Key: LUCENE-951
>                 URL: https://issues.apache.org/jira/browse/LUCENE-951
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.2
>            Reporter: Rich Johnson
>         Attachments: MultiLevelSkipListReader.patch
>
>
>  When Reconstructing Document Using Luke Tool, received NullPointerException.
> java.lang.NullPointerException
>         at org.apache.lucene.index.MultiLevelSkipListReader.loadSkipLevels(MultiLevelSkipListReader.java:188)
>         at org.apache.lucene.index.MultiLevelSkipListReader.skipTo(MultiLevelSkipListReader.java:97)
>         at org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:164)
>         at org.getopt.luke.Luke$2.run(Unknown Source)
> Luke version 0.7.1
> I emailed with Luke author Andrzej Bialecki and he suggested the attached patch file which fixed the problem.

-- 
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] Resolved: (LUCENE-951) PATCH MultiLevelSkipListReader NullPointerException

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

Michael Busch resolved LUCENE-951.
----------------------------------

       Resolution: Fixed
    Lucene Fields: [New, Patch Available]  (was: [Patch Available, New])

Committed. Thanks, Rich!

> PATCH MultiLevelSkipListReader NullPointerException
> ---------------------------------------------------
>
>                 Key: LUCENE-951
>                 URL: https://issues.apache.org/jira/browse/LUCENE-951
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.2
>            Reporter: Rich Johnson
>            Assignee: Michael Busch
>         Attachments: lucene-951.patch, MultiLevelSkipListReader.patch
>
>
>  When Reconstructing Document Using Luke Tool, received NullPointerException.
> java.lang.NullPointerException
>         at org.apache.lucene.index.MultiLevelSkipListReader.loadSkipLevels(MultiLevelSkipListReader.java:188)
>         at org.apache.lucene.index.MultiLevelSkipListReader.skipTo(MultiLevelSkipListReader.java:97)
>         at org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:164)
>         at org.getopt.luke.Luke$2.run(Unknown Source)
> Luke version 0.7.1
> I emailed with Luke author Andrzej Bialecki and he suggested the attached patch file which fixed the problem.

-- 
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-951) PATCH MultiLevelSkipListReader NullPointerException

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

Michael Busch commented on LUCENE-951:
--------------------------------------

Shame on me, this is a pretty bad typo!
Rich, thank you for finding this. The patch is good. I'll
add a testcase that hits this bug and commit it shortly.

> PATCH MultiLevelSkipListReader NullPointerException
> ---------------------------------------------------
>
>                 Key: LUCENE-951
>                 URL: https://issues.apache.org/jira/browse/LUCENE-951
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.2
>            Reporter: Rich Johnson
>            Assignee: Michael Busch
>         Attachments: MultiLevelSkipListReader.patch
>
>
>  When Reconstructing Document Using Luke Tool, received NullPointerException.
> java.lang.NullPointerException
>         at org.apache.lucene.index.MultiLevelSkipListReader.loadSkipLevels(MultiLevelSkipListReader.java:188)
>         at org.apache.lucene.index.MultiLevelSkipListReader.skipTo(MultiLevelSkipListReader.java:97)
>         at org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:164)
>         at org.getopt.luke.Luke$2.run(Unknown Source)
> Luke version 0.7.1
> I emailed with Luke author Andrzej Bialecki and he suggested the attached patch file which fixed the problem.

-- 
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] Assigned: (LUCENE-951) PATCH MultiLevelSkipListReader NullPointerException

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

Michael Busch reassigned LUCENE-951:
------------------------------------

    Assignee: Michael Busch

> PATCH MultiLevelSkipListReader NullPointerException
> ---------------------------------------------------
>
>                 Key: LUCENE-951
>                 URL: https://issues.apache.org/jira/browse/LUCENE-951
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.2
>            Reporter: Rich Johnson
>            Assignee: Michael Busch
>         Attachments: MultiLevelSkipListReader.patch
>
>
>  When Reconstructing Document Using Luke Tool, received NullPointerException.
> java.lang.NullPointerException
>         at org.apache.lucene.index.MultiLevelSkipListReader.loadSkipLevels(MultiLevelSkipListReader.java:188)
>         at org.apache.lucene.index.MultiLevelSkipListReader.skipTo(MultiLevelSkipListReader.java:97)
>         at org.apache.lucene.index.SegmentTermDocs.skipTo(SegmentTermDocs.java:164)
>         at org.getopt.luke.Luke$2.run(Unknown Source)
> Luke version 0.7.1
> I emailed with Luke author Andrzej Bialecki and he suggested the attached patch file which fixed the problem.

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