[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lucene-user
Subject:    Re: java.lang.IllegalAccessError: tried to access method
From:       Chris Hostetter <hossman_lucene () fucit ! org>
Date:       2006-07-31 8:06:06
Message-ID: Pine.LNX.4.58.0607310104330.1277 () hal ! rescomp ! berkeley ! edu
[Download RAW message or body]


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 <alan.ezust@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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic