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 6BA48963B for ; Wed, 25 Jul 2012 06:45:30 +0000 (UTC) Received: (qmail 27004 invoked by uid 500); 25 Jul 2012 06:45:29 -0000 Delivered-To: apmail-giraph-user-archive@giraph.apache.org Received: (qmail 26935 invoked by uid 500); 25 Jul 2012 06:45:29 -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 26910 invoked by uid 99); 25 Jul 2012 06:45:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2012 06:45:28 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aljoscha.krettek@googlemail.com designates 209.85.160.52 as permitted sender) Received: from [209.85.160.52] (HELO mail-pb0-f52.google.com) (209.85.160.52) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jul 2012 06:45:23 +0000 Received: by pbbro8 with SMTP id ro8so987709pbb.11 for ; Tue, 24 Jul 2012 23:45:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=U7V7ZBy0s/fX/Rhb1jW79DLs/y7jFpKshouJemKXaik=; b=GGbCBD7hX2qmoTXBHmE8byb1lfPBjEAT5QlnrDgh1ABf9C9kAmCYTcCAb2yqXISNgt ik+x9z6bM3ppqjlcHzO60zchN6Tru50vk07FkYPavwPZ8Sb3BBBmy236VLaqIgJqhuBb qjpz4ZD6Y1C/+7IVJA5jdC5jKYm4J3eMOjoin8pq4MebbHTSYSkSLOBdqUNjUoPkcvIj q067KcuRkX4I+ZVbJKgGJkVhl8D0LwK00iQKMTX6w3g/zcQbytU/ciFE2DGwbiU23nWr EjZYy9vI3rn9CLox/xFNMgRlg8WaZScs4QELAkNGHQkCRBWDQFVHIGwOdlTAT3I0bWFf CXfA== MIME-Version: 1.0 Received: by 10.68.225.231 with SMTP id rn7mr50607506pbc.13.1343198703147; Tue, 24 Jul 2012 23:45:03 -0700 (PDT) Received: by 10.68.223.169 with HTTP; Tue, 24 Jul 2012 23:45:03 -0700 (PDT) In-Reply-To: References: Date: Wed, 25 Jul 2012 08:45:03 +0200 Message-ID: Subject: Re: Exception when replacing EdgeListVertex VertexValue with my own class From: Aljoscha Krettek To: user@giraph.apache.org Content-Type: multipart/alternative; boundary=047d7b2ed3c590588e04c5a1d1ed X-Virus-Checked: Checked by ClamAV on apache.org --047d7b2ed3c590588e04c5a1d1ed Content-Type: text/plain; charset=ISO-8859-1 Hi Jon du you have a public constructor that takes no arguments? That is required for it to work and it seems to be the problem here. -- aljoscha On Wed, Jul 25, 2012 at 8:27 AM, Jonathan Bishop wrote: > Hi, > > I have been investigating the exception below. It happens when I attempt to replace the vertex value class, which had been LongWritable, with a new class I am writing, MyGraphVertexValue. > > I am using Giraph-0.1. I have declared MyGraphVertex public so I am not sure why this would be happening. > > > Thanks, > > Jon > > > > java.lang.IllegalAccessException: Class org.apache.giraph.graph.BspUtils can not access a member of class MyGraphVertexValue with modifiers "" > at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:95) > > at java.lang.Class.newInstance0(Class.java:366) > at java.lang.Class.newInstance(Class.java:325) > at org.apache.giraph.graph.BspUtils.createVertexValue(BspUtils.java:379) > > --047d7b2ed3c590588e04c5a1d1ed Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Jon
du you have a public constructor that takes no arguments? That i= s required for it to work and it seems to be the problem here.
--
aljoscha

On Wed= , Jul 25, 2012 at 8:27 AM, Jonathan Bishop <jbishop.rwc@gmail.com&= gt; wrote:
Hi,

I have been investigating th= e exception below. It happens when I attempt to replace the vertex value cl= ass, which had been LongWritable, with a new class I am writing, MyGraphVer= texValue.

I am using Giraph-0.1. I have declared MyGraphVertex public so I am not= sure why this would be happening.


Thanks,

Jon



java.lang.IllegalAccessException:= Class org.apache.giraph.graph.BspUtils can not access a member of class My= GraphVertexValue with modifiers ""
at sun.reflect.Reflection.= ensureMemberAccess(Reflection.java:95)
at java.lang.Class.newInstance0(Class.java:366)
at java.lang.Class.new= Instance(Class.java:325)
at org.apache.giraph.graph.BspUtils.createVert= exValue(BspUtils.java:379)


--047d7b2ed3c590588e04c5a1d1ed--