lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Ezust" <alan.ez...@gmail.com>
Subject java.lang.IllegalAccessError: tried to access method org.apache.lucene.search.HitDoc.<init>
Date Sun, 30 Jul 2006 14:31:55 GMT
I'm having difficulty getting Lucene to work for me, and it keeps
coming back to this HitDoc class.

At the moment ,whenever I call the IndexBuilder.search method,
this what I get:

[error] WorkThread: java.lang.IllegalAccessError: tried to access
method org.apache.lucene.search.HitDoc.<init>(FI)V from class
org.apache.lucene.search.Hits
[error] WorkThread:  at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:94)
[error] WorkThread:  at org.apache.lucene.search.Hits.<init>(Hits.java:53)
[error] WorkThread:  at
org.apache.lucene.search.Searcher.search(Searcher.java:44)
[error] WorkThread:  at
org.apache.lucene.search.Searcher.search(Searcher.java:36)
[error] WorkThread:  at
infoviewer.lucene.IndexBuilder.search(IndexBuilder.java:118)
[error] WorkThread:  at
infoviewer.lucene.SearchPanel$ActionHandler$1.run(SearchPanel.java:190)
[error] WorkThread:  at
org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:194)
[error] WorkThread:  at
org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:161)


I tried moving class HitDoc out of Hits.java and into its own
HitDoc.java file, and making the class and ctor public, but I still
get this error... So now I'm really confused.

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


Mime
View raw message