[jira] Created: (LUCENE-1271) ClassCastException when using ParallelMultiSearcher.search(Query query, Filter filter, int n, Sort sort)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (LUCENE-1271) ClassCastException when using ParallelMultiSearcher.search(Query query, Filter filter, int n, Sort sort)

Shalin Shekhar Mangar (Jira)
ClassCastException when using ParallelMultiSearcher.search(Query query, Filter filter, int n, Sort sort)
--------------------------------------------------------------------------------------------------------

                 Key: LUCENE-1271
                 URL: https://issues.apache.org/jira/browse/LUCENE-1271
             Project: Lucene - Java
          Issue Type: Bug
          Components: Search
    Affects Versions: 2.3.1, 2.3
         Environment: MS Windows XP (SP 2), JDK 1.5.0 Update 12
            Reporter: Kai Burjack
            Priority: Critical


Stacktrace-Output in Console:
Exception in thread "MultiSearcher thread #1" java.lang.ClassCastException: org.apache.lucene.search.ScoreDoc
        at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:105)
        at org.apache.lucene.util.PriorityQueue.upHeap(PriorityQueue.java:139)
        at org.apache.lucene.util.PriorityQueue.put(PriorityQueue.java:53)
        at org.apache.lucene.util.PriorityQueue.insertWithOverflow(PriorityQueue.java:78)
        at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:63)
        at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:272)
Exception in thread "MultiSearcher thread #2" java.lang.ClassCastException: org.apache.lucene.search.ScoreDoc
        at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:105)
        at org.apache.lucene.util.PriorityQueue.upHeap(PriorityQueue.java:139)
        at org.apache.lucene.util.PriorityQueue.put(PriorityQueue.java:53)
        at org.apache.lucene.util.PriorityQueue.insertWithOverflow(PriorityQueue.java:78)
        at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:63)
        at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:272)

Stack-Trace in resulting exception while performing the JUnit-Test:
java.lang.ClassCastException: org.apache.lucene.search.ScoreDoc
        at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:105)
        at org.apache.lucene.util.PriorityQueue.downHeap(PriorityQueue.java:155)
        at org.apache.lucene.util.PriorityQueue.pop(PriorityQueue.java:106)
        at org.apache.lucene.search.ParallelMultiSearcher.search(ParallelMultiSearcher.java:146)
        at org.apache.lucene.search.Searcher.search(Searcher.java:78)

        at <class calling the Searcher.search(Query query, Filter filter, int n, Sort sort) method with filter:<null> and sort:<null>>
       
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at junit.framework.TestCase.runTest(TestCase.java:154)
        at junit.framework.TestCase.runBare(TestCase.java:127)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
        at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
        at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)



--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (LUCENE-1271) ClassCastException when using ParallelMultiSearcher.search(Query query, Filter filter, int n, Sort sort)

Shalin Shekhar Mangar (Jira)

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

Kai Burjack updated LUCENE-1271:
--------------------------------

    Priority: Minor  (was: Critical)

Work-around used is whenever no sorting is needed, calling the Searcher.search(Query query, Filter filter, int n, Sort sort) method with sort = new Sort(new SortField("score", SortField.SCORE, false))

> ClassCastException when using ParallelMultiSearcher.search(Query query, Filter filter, int n, Sort sort)
> --------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-1271
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1271
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.3, 2.3.1
>         Environment: MS Windows XP (SP 2), JDK 1.5.0 Update 12
>            Reporter: Kai Burjack
>            Priority: Minor
>
> Stacktrace-Output in Console:
> Exception in thread "MultiSearcher thread #1" java.lang.ClassCastException: org.apache.lucene.search.ScoreDoc
> at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:105)
> at org.apache.lucene.util.PriorityQueue.upHeap(PriorityQueue.java:139)
> at org.apache.lucene.util.PriorityQueue.put(PriorityQueue.java:53)
> at org.apache.lucene.util.PriorityQueue.insertWithOverflow(PriorityQueue.java:78)
> at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:63)
> at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:272)
> Exception in thread "MultiSearcher thread #2" java.lang.ClassCastException: org.apache.lucene.search.ScoreDoc
> at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:105)
> at org.apache.lucene.util.PriorityQueue.upHeap(PriorityQueue.java:139)
> at org.apache.lucene.util.PriorityQueue.put(PriorityQueue.java:53)
> at org.apache.lucene.util.PriorityQueue.insertWithOverflow(PriorityQueue.java:78)
> at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:63)
> at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:272)
> Stack-Trace in resulting exception while performing the JUnit-Test:
> java.lang.ClassCastException: org.apache.lucene.search.ScoreDoc
> at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:105)
> at org.apache.lucene.util.PriorityQueue.downHeap(PriorityQueue.java:155)
> at org.apache.lucene.util.PriorityQueue.pop(PriorityQueue.java:106)
> at org.apache.lucene.search.ParallelMultiSearcher.search(ParallelMultiSearcher.java:146)
> at org.apache.lucene.search.Searcher.search(Searcher.java:78)
> at <class calling the Searcher.search(Query query, Filter filter, int n, Sort sort) method with filter:<null> and sort:<null>>
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

--
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (LUCENE-1271) ClassCastException when using ParallelMultiSearcher.search(Query query, Filter filter, int n, Sort sort)

Shalin Shekhar Mangar (Jira)
In reply to this post by Shalin Shekhar Mangar (Jira)

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

Mark Miller updated LUCENE-1271:
--------------------------------

    Fix Version/s: 3.1

> ClassCastException when using ParallelMultiSearcher.search(Query query, Filter filter, int n, Sort sort)
> --------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-1271
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1271
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Search
>    Affects Versions: 2.3, 2.3.1
>         Environment: MS Windows XP (SP 2), JDK 1.5.0 Update 12
>            Reporter: Kai Burjack
>            Priority: Minor
>             Fix For: 3.1
>
>
> Stacktrace-Output in Console:
> Exception in thread "MultiSearcher thread #1" java.lang.ClassCastException: org.apache.lucene.search.ScoreDoc
> at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:105)
> at org.apache.lucene.util.PriorityQueue.upHeap(PriorityQueue.java:139)
> at org.apache.lucene.util.PriorityQueue.put(PriorityQueue.java:53)
> at org.apache.lucene.util.PriorityQueue.insertWithOverflow(PriorityQueue.java:78)
> at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:63)
> at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:272)
> Exception in thread "MultiSearcher thread #2" java.lang.ClassCastException: org.apache.lucene.search.ScoreDoc
> at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:105)
> at org.apache.lucene.util.PriorityQueue.upHeap(PriorityQueue.java:139)
> at org.apache.lucene.util.PriorityQueue.put(PriorityQueue.java:53)
> at org.apache.lucene.util.PriorityQueue.insertWithOverflow(PriorityQueue.java:78)
> at org.apache.lucene.util.PriorityQueue.insert(PriorityQueue.java:63)
> at org.apache.lucene.search.MultiSearcherThread.run(ParallelMultiSearcher.java:272)
> Stack-Trace in resulting exception while performing the JUnit-Test:
> java.lang.ClassCastException: org.apache.lucene.search.ScoreDoc
> at org.apache.lucene.search.FieldDocSortedHitQueue.lessThan(FieldDocSortedHitQueue.java:105)
> at org.apache.lucene.util.PriorityQueue.downHeap(PriorityQueue.java:155)
> at org.apache.lucene.util.PriorityQueue.pop(PriorityQueue.java:106)
> at org.apache.lucene.search.ParallelMultiSearcher.search(ParallelMultiSearcher.java:146)
> at org.apache.lucene.search.Searcher.search(Searcher.java:78)
> at <class calling the Searcher.search(Query query, Filter filter, int n, Sort sort) method with filter:<null> and sort:<null>>
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at junit.framework.TestCase.runTest(TestCase.java:154)
> at junit.framework.TestCase.runBare(TestCase.java:127)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:118)
> at junit.framework.TestSuite.runTest(TestSuite.java:208)
> at junit.framework.TestSuite.run(TestSuite.java:203)
> at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

--
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: [hidden email]
For additional commands, e-mail: [hidden email]