lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kai Burjack (JIRA)" <j...@apache.org>
Subject [jira] Created: (LUCENE-1271) ClassCastException when using ParallelMultiSearcher.search(Query query, Filter filter, int n, Sort sort)
Date Wed, 23 Apr 2008 14:35:21 GMT
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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message