IllegalAccessError with faceted queries

90 views
Skip to first unread message

Devi

unread,
Jun 18, 2012, 8:46:16 AM6/18/12
to zoie
Hi,

Hourglass with zoie 3.1.0 ran smoothly until a while ago and suddenly
the IllegalAccessError is cropping up now, with any faceted query. The
non-faceted queries still run as expected.

The first line of the traceback is "SEVERE:
java.lang.IllegalAccessError: class
org.apache.lucene.index.MultiZoieTermDocs cannot access its superclass
org.apache.lucene.index.DirectoryReader$MultiTermDocs"

This looks like a class loading problem to me. The class
org.apache.lucene.index.MultiZoieTermDocs is from zoie-core-3.1.0.jar
and the superclass org.apache.lucene.index.DirectoryReader
$MultiTermDocs is from lucene-core-3.5.0.jar. I see that the lucene
jar is picked up from the WEB-INF/lib dir of the jetty webapp and zoie
jar is picked up from solr/lib by Solr. Copying lucene jar into solr/
lib and zoie jar into WEB-INF/lib didn't solve the problem.

I wonder how and why this makes ONLY faceted queries fail. Can anybody
shed some light on this please?

Devi

unread,
Jun 25, 2012, 5:23:02 AM6/25/12
to zoie


On Jun 18, 5:46 pm, Devi <asld...@gmail.com> wrote:
> Hi,
>
> Hourglass with zoie 3.1.0 ran smoothly until a while ago and suddenly
> the IllegalAccessError is cropping up now, with any faceted query. The
> non-faceted queries still run as expected.
>
> The first line of the traceback is "SEVERE:
> java.lang.IllegalAccessError: class
> org.apache.lucene.index.MultiZoieTermDocs cannot access its superclass
> org.apache.lucene.index.DirectoryReader$MultiTermDocs"
>
> This looks like a class loading problem to me. The class
> org.apache.lucene.index.MultiZoieTermDocs is from zoie-core-3.1.0.jar
> and the superclass org.apache.lucene.index.DirectoryReader
> $MultiTermDocs is from lucene-core-3.5.0.jar. I see that the lucene
> jar is picked up from the WEB-INF/lib dir of the jetty webapp and zoie
> jar is picked up from solr/lib by Solr.

> Copying lucene jar into solr/
> lib and zoie jar into WEB-INF/lib didn't solve the problem.

This has solved the problem indeed. Copying zoie related jars into WEB-
INF/lib directory and restarting solr, fixed it.

John Wang

unread,
Jun 25, 2012, 12:58:02 PM6/25/12
to zo...@googlegroups.com
Cool!

Solr does some sort of weird classloading... It tries to be a container ;)

-John


--
You received this message because you are subscribed to the Google Groups "zoie" group.
To post to this group, send email to zo...@googlegroups.com.
To unsubscribe from this group, send email to zoie+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/zoie?hl=en.


Genuine Yu

unread,
Jun 26, 2012, 5:06:12 AM6/26/12
to zo...@googlegroups.com
Yes ,I also had this problem..  It's the classloader problem...


2012/6/26 John Wang <john...@gmail.com>
Reply all
Reply to author
Forward
0 new messages