Otis:
Yes, it's not a problem of lucene, IndexOrderSearcher is a class of weblucene, it
extends IndexSearcher. According to the lucene's javadoc, the subclass of
IndexSearcher should have access to IndexSearcher.reader field, because there is no
specifier before the field 'reader'. Now my problem is the weblucene works fine the
most time, but about half a month ago the problem happened, even if my webpp runs
under a separated JVM.
May the modification of the server's setting causes the problem, but I'm not sure, or
may be I shouldn't post the message here -- please pardon me, I really want to get
some clues about the error. Thanks!
- Original Message -
From: "Otis Gospodnetic" <[EMAIL PROTECTED]>
To: "Lucene Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 15, 2003 5:36 PM
Subject: Re: A strange Error--IllegalAccessError: tried to access field
org.apache.lucene.search.IndexSearcher.reader
> Please note that the class that caused the error,
> org.apache.lucene.search.IndexOrderSearcher, is not really a Lucene
> class. You got that class from http://sf.net/projects/weblucene, most
> likely.
>
> Otis
>
> --- lhelper <[EMAIL PROTECTED]> wrote:
> > Hi.
> >
> > I get a strange problem with my web application recentlly. The webapp
> > runs under:
> > resin-2.1.10
> > j2sdk1.4.2_01
> > redhat linux 2.4.20
> >
> > I use a subclass of IndexSearcher, IndexOrderSearcher, search the
> > index, and output the result use a servlet. The webapp works fine the
> > most time, but, about half a month ago, I got the following error
> > when I restart resin:
> >
> > 500 Servlet Exception
> > java.lang.IllegalAccessError: tried to access field
> > org.apache.lucene.search.IndexSearcher.reader
> > from class org.apache.lucene.search.IndexOrderSearcher
> > at org.apache.lucene.search.IndexOrderSearcher.search(Unknown
> > Source)
> > at org.apache.lucene.search.Hits.getMoreDocs(Hits.java:90)
> > at org.apache.lucene.search.Hits.(Hits.java:80)
> > at org.apache.lucene.search.Searcher.search(Searcher.java:71)
> > at org.apache.lucene.search.Searcher.search(Searcher.java:65)
> > at
> >
> com.chedong.weblucene.search.DOMSearcher.searchWebLuceneResultSet(Unknown
> > Source)
> > at com.chedong.weblucene.search.DOMSearcher.search(Unknown Source)
> > at com.chedong.weblucene.WebLuceneServlet.doGet(Unknown Source)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:126)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
> > at
> >
> com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
> > at com.caucho.http.filter.GzipFilter.doFilter(GzipFilter.java:127)
> > at
> >
> com.caucho.server.http.FilterChainFilter.doFilter(FilterChainFilter.java:88)
> > at com.caucho.server.http.Invocation.service(Invocation.java:315)
> > at
> >
> com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
> > at
> >
> com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:344)
> > at
> >
> com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)
> > at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
> > at java.lang.Thread.run(Thread.java:534)
> >
> > But After the server rebooted, everything gets right again.
> > I have suspected that all applications runing in just one JVM causes
> > the Error, so I separated the applications with multiple JVMs, but
> > the problem remains. Can anybody give me some clue about this Error?
> >
> > Thanks!
> > lhelper
>
>
> __
> Do you Yahoo!?
> The New Yahoo! Shopping - with improved product search
> http://shopping.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>