You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Alan Ezust <al...@gmail.com> on 2006/07/30 16:31:55 UTC

java.lang.IllegalAccessError: tried to access method org.apache.lucene.search.HitDoc.

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


New work on Perfect Skip List (mg4j work)

Posted by eks dev <ek...@yahoo.co.uk>.
looks interesting:

http://vigna.dsi.unimi.it/ftp/papers/CompressedPerfectEmbeddedSkipLists.pdf




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


Re: java.lang.IllegalAccessError: tried to access method org.apache.lucene.search.HitDoc.

Posted by Chris Hostetter <ho...@fucit.org>.
What JVM are you using?

Can you post a small sample program (or better yet: jUnit test) that
causes this problem ?

: Date: Sun, 30 Jul 2006 07:31:55 -0700
: From: Alan Ezust <al...@gmail.com>
: Reply-To: java-user@lucene.apache.org
: To: java-user@lucene.apache.org
: Subject: java.lang.IllegalAccessError: tried to access method
:     org.apache.lucene.search.HitDoc.<init>
:
: 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
:



-Hoss


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