Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 69660 invoked from network); 13 Sep 2006 03:57:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 03:57:52 -0000 Received: (qmail 19517 invoked by uid 500); 13 Sep 2006 03:57:51 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 19497 invoked by uid 500); 13 Sep 2006 03:57:51 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 19488 invoked by uid 99); 13 Sep 2006 03:57:51 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Sep 2006 20:57:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from ([209.237.227.198:50990] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id A3/01-07463-BC187054 for ; Tue, 12 Sep 2006 20:58:03 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EFEA1714350 for ; Wed, 13 Sep 2006 03:54:23 +0000 (GMT) Message-ID: <17012228.1158119663980.JavaMail.jira@brutus> Date: Tue, 12 Sep 2006 20:54:23 -0700 (PDT) From: "Owen O'Malley (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Resolved: (HADOOP-104) Reflexive access to non-public class with public ctor requires setAccessible (with some JVMs) In-Reply-To: <1783007685.1143241639315.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HADOOP-104?page=all ] Owen O'Malley resolved HADOOP-104. ---------------------------------- Fix Version/s: 0.5.0 Resolution: Duplicate Assignee: Hairong Kuang > Reflexive access to non-public class with public ctor requires setAccessible (with some JVMs) > --------------------------------------------------------------------------------------------- > > Key: HADOOP-104 > URL: http://issues.apache.org/jira/browse/HADOOP-104 > Project: Hadoop > Issue Type: Bug > Reporter: Michel Tourn > Assigned To: Hairong Kuang > Fix For: 0.5.0 > > Attachments: setaccessible.patch > > > Multiple times I have hit this problem which prevents the NameNode from starting. > The only fix I had so far was to loose all my DFS data... > Exception in thread "main" java.lang.RuntimeException: java.lang.IllegalAccessException: > Class org.apache.hadoop.io.WritableFactories can not access a member of > class org.apache.hadoop.dfs.Block with modifiers "public" > at org.apache.hadoop.io.WritableFactories.newInstance(WritableFactories.java:49) > at org.apache.hadoop.io.ArrayWritable.readFields(ArrayWritable.java:81) > at org.apache.hadoop.dfs.FSDirectory.loadFSEdits(FSDirectory.java:374) > at org.apache.hadoop.dfs.FSDirectory.loadFSImage(FSDirectory.java:347) > at org.apache.hadoop.dfs.FSDirectory.(FSDirectory.java:258) > at org.apache.hadoop.dfs.FSNamesystem.(FSNamesystem.java:151) > at org.apache.hadoop.dfs.NameNode.(NameNode.java:82) > According to this, > http://forum.java.sun.com/thread.jspa?threadID=704100&messageID=4082902 > this is a known issue when using > reflexive access to a non-public class with public ctor > (class org.apache.hadoop.dfs.Block is such a class) > This problem may not occur with all JVM releases. > (I build on 1.5.0-b64 and run on 1.5.0_05-b05) > This problem only occured for me when > I upgrade code or change XML configuration AND > have existing files in the DFS. > This problem does not occur when I just stop / restart the NameServer. > In any case, the attached patch fixes it by calling setAccessible > before constructing the instance with reflection. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira