Return-Path: X-Original-To: apmail-giraph-user-archive@www.apache.org Delivered-To: apmail-giraph-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9703610A9C for ; Fri, 21 Jun 2013 12:22:35 +0000 (UTC) Received: (qmail 54860 invoked by uid 500); 21 Jun 2013 12:22:35 -0000 Delivered-To: apmail-giraph-user-archive@giraph.apache.org Received: (qmail 54782 invoked by uid 500); 21 Jun 2013 12:22:34 -0000 Mailing-List: contact user-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@giraph.apache.org Delivered-To: mailing list user@giraph.apache.org Received: (qmail 54763 invoked by uid 99); 21 Jun 2013 12:22:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2013 12:22:33 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of laurens.rietveld@gmail.com designates 74.125.83.54 as permitted sender) Received: from [74.125.83.54] (HELO mail-ee0-f54.google.com) (74.125.83.54) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2013 12:22:29 +0000 Received: by mail-ee0-f54.google.com with SMTP id t10so4610493eei.13 for ; Fri, 21 Jun 2013 05:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=C/y2gJq5Ww00YOXNE3gBM4Kyw0Xr6eJeQhNFNKmNAU8=; b=aGi+69c/4J5uSig7oFsk5Cow011Rqmw2btqqAKKI/lbw01U3IkQ8slLkL/kawsnupB Q7dI5PcKfmxzSTfF8MlmHiPk5jN9L15br9ggpn6d8t2sY981oEZs2I+/93fBv3kCFp2f 7hzVYPAF3bqrSHOMHsa3rznRxDrMTKMXlPJ6zvWn/Uu5sPdSh9NsJzG9TOjb/t5SuwHV BXSDoX33Tsq4lia3M82TZMv3xp4De2skD1A217Pzq2JBau77sbvVNYtqrPUE21417l22 pMltPvA/+sNzEskcLNTwTj5z8B3LXSW1Bp1h/4kj51sxbuKZTxT77IsfdVk0GPgOXZVu 7BCw== MIME-Version: 1.0 X-Received: by 10.14.241.136 with SMTP id g8mr12373918eer.104.1371817327595; Fri, 21 Jun 2013 05:22:07 -0700 (PDT) Received: by 10.223.81.68 with HTTP; Fri, 21 Jun 2013 05:22:07 -0700 (PDT) In-Reply-To: References: Date: Fri, 21 Jun 2013 14:22:07 +0200 Message-ID: Subject: Re: DefaultVertexValueFactory can not access a member of class ... From: Laurens Rietveld To: user@giraph.apache.org Content-Type: multipart/alternative; boundary=001a1132ecb682353004dfa91c6c X-Virus-Checked: Checked by ClamAV on apache.org --001a1132ecb682353004dfa91c6c Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Nvm.. Solved already. Caused by missing 'public' constructor modifiers in the writable class On Fri, Jun 21, 2013 at 1:41 PM, Laurens Rietveld < laurens.rietveld@gmail.com> wrote: > I'm using giraph trunk, and getting the following error: > > Caused by: java.lang.IllegalAccessException: Class org.apache.giraph.grap= h.DefaultVertexValueFactory can not access a member of class nl.vu.giraph.G= iraph.BCNode with modifiers "" > at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65) > at java.lang.Class.newInstance0(Class.java:349) > at java.lang.Class.newInstance(Class.java:308) > at org.apache.giraph.graph.DefaultVertexValueFactory.createVertexValue(D= efaultVertexValueFactory.java:48) > > > Here, BCNode is our own class which implements Writable. All works fine u= ntil we've reached 'map 100%'. Then it stalls. Is there something I'm not c= onsidering here? The code I use for BCNode is found here: https://github.co= m/LaurensRietveld/GiraphAnalysis/blob/master/src/main/java/org/data2semanti= cs/giraph/BCNode.java > > The class I execute in giraph is found here: https://github.com/LaurensRi= etveld/GiraphAnalysis/blob/master/src/main/java/org/data2semantics/giraph/B= etweennessCentrality.java > > The command I execute is the following: > > hadoop jar giraph.jar org.apache.giraph.GiraphRunner nl.vu.giraph.Giraph.= BetweennessCentrality -vif nl.vu.giraph.Giraph.BcInputReader -vip input/inp= ut -of org.apache.giraph.io.formats.IdWithValueTextOutputFormat -op output = -w 7 > > > Could someone give me some pointers? > > > > > ps. all code is accessible here: https://github.com/LaurensRietveld/Girap= hAnalysis > > --001a1132ecb682353004dfa91c6c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Nvm.. Solved already. Caused by missing 'public' c= onstructor modifiers in the writable class




On Fri, Ju= n 21, 2013 at 1:41 PM, Laurens Rietveld <laurens.rietveld@gmail.c= om> wrote:
I'm using giraph trunk,= and getting the following error:

Caused by: java.l=
ang.IllegalAccessException: Class org.apache.giraph.graph.DefaultVertexValu=
eFactory can not access a member of class nl.vu.giraph.Giraph.BCNode with m=
odifiers ""
	at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:65)
	at java.lang.Class.newInstance0(Class.java:349)
	at java.lang.Class.newInstance(Class.java:308)
	at org.apache.giraph.graph.DefaultVertexValueFactory.createVertexValue(Def=
aultVertexValueFactory.java:48)

Here, BCNode is ou=
r own class which implements Writable. All works fine until we've reach=
ed 'map 100%'. Then it stalls. Is there something I'm not consi=
dering here? The code I use for BCNode is found here: https://github.com/LaurensRietveld/GiraphAnalysis/blob/master/src/main/jav=
a/org/data2semantics/giraph/BCNode.java
The class I execute in giraph is found here: https://github.com/LaurensRietveld/GiraphAnalysis/blob/master/s=
rc/main/java/org/data2semantics/giraph/BetweennessCentrality.java
The command I execute is the following:
hadoop jar giraph.ja=
r org.apache.giraph.GiraphRunner nl.vu.giraph.Giraph.BetweennessCentrality =
-vif nl.vu.giraph.Giraph.BcInputReader -vip input/input -of org.apache.gira=
ph.io.formats.IdWithValueTextOutputFormat -op output -w 7

Could someone give me some pointers?


ps. all code is accessible here:=
 https://github.com/LaurensRietveld/Giraph=
Analysis

--001a1132ecb682353004dfa91c6c--