lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Atsuo Ishimoto <>
Subject Re: Loading Java class dynamically fails
Date Fri, 05 Nov 2010 06:01:38 GMT
Hi, Andi

I use

    Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
    Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing)

on Windows7.

I don't know context class loader much too, but it looks sometimes
used for beans, RMI or such.
In the main thread, context class loader is set by default, but
threads created in Python are not.
Threads created by Java has context class loader by default too. I
don't know why.

I'll try to write a patch. Thank you.

On Fri, Nov 5, 2010 at 2:43 PM, Andi Vajda <> wrote:

> What is a context class loader ?
> If calling setContextClassLoader() solves the problem then this could be
> done by passing the context class loader as a new optional parameter to
> attachCurrentThread(). Where does this class loader come from and why isn't
> it set in the first place ? What version of Java is this and whose VM ?
> If you'd like to propose a patch that would be welcome.
> Andi..
Atsuo Ishimoto
Twitter: atsuoishimoto

View raw message