Return-Path: Delivered-To: apmail-lucene-pylucene-dev-archive@minotaur.apache.org Received: (qmail 25828 invoked from network); 5 Nov 2010 06:01:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Nov 2010 06:01:36 -0000 Received: (qmail 48591 invoked by uid 500); 5 Nov 2010 06:02:08 -0000 Delivered-To: apmail-lucene-pylucene-dev-archive@lucene.apache.org Received: (qmail 48330 invoked by uid 500); 5 Nov 2010 06:02:06 -0000 Mailing-List: contact pylucene-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: pylucene-dev@lucene.apache.org Delivered-To: mailing list pylucene-dev@lucene.apache.org Received: (qmail 48322 invoked by uid 99); 5 Nov 2010 06:02:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 06:02:05 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of atsuoishimoto@gmail.com designates 74.125.82.176 as permitted sender) Received: from [74.125.82.176] (HELO mail-wy0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Nov 2010 06:01:59 +0000 Received: by wyg36 with SMTP id 36so2856293wyg.35 for ; Thu, 04 Nov 2010 23:01:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=1OfsVIG+dnzLykVlrc4ydvFHCjV23dxhEDks271rHJI=; b=ZodjCJN/AUZq56bT3inx4WQEVve0lej35xHwVTOKDbUYd68eWO0ephlEe69ejOoEf9 fQwCrnY/x6gvtvNkszTitljdCr0JwStM31sJcwCT/z67bDcH6zv3r1LbWbZE6IB4gruy 2V38n4Vc5PBShODVCI48olClPgbJnV/quInAU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=NTxUcgJWt4f3U/W435MpUXo8wyfAekT2n0K6YXW5NoZGrofeX54H4HyeDiK6XPxdIn AZ9Lpq81F7XmwmsWShdaROe1s+Cg61ZFXlspoAG2JgPsjRrqVadiiPQ44jnqUqVJkDib cfCiZWbaIEWsuYVnDbF5YTyFZUeF05h+p400g= MIME-Version: 1.0 Received: by 10.227.20.14 with SMTP id d14mr1631337wbb.90.1288936898147; Thu, 04 Nov 2010 23:01:38 -0700 (PDT) Sender: atsuoishimoto@gmail.com Received: by 10.227.43.2 with HTTP; Thu, 4 Nov 2010 23:01:38 -0700 (PDT) In-Reply-To: <02741465-57B9-4945-BF02-34812456CB5D@apache.org> References: <02741465-57B9-4945-BF02-34812456CB5D@apache.org> Date: Fri, 5 Nov 2010 15:01:38 +0900 X-Google-Sender-Auth: NCBtUpw5NIxT5rBrNMEExGdiLsA Message-ID: Subject: Re: Loading Java class dynamically fails From: Atsuo Ishimoto To: pylucene-dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org 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 Mail: ishimoto@gembook.org Blog: http://d.hatena.ne.jp/atsuoishimoto/ Twitter: atsuoishimoto