Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5D0492009E2 for ; Wed, 1 Jun 2016 16:43:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5B4F1160A4C; Wed, 1 Jun 2016 14:43:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A13F8160A45 for ; Wed, 1 Jun 2016 16:43:05 +0200 (CEST) Received: (qmail 36024 invoked by uid 500); 1 Jun 2016 14:43:04 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 36014 invoked by uid 99); 1 Jun 2016 14:43:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jun 2016 14:43:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 70E3BC260A for ; Wed, 1 Jun 2016 14:43:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.423 X-Spam-Level: ** X-Spam-Status: No, score=2.423 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_ENVFROM_END_DIGIT=0.25, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id RVkgB69deL2c for ; Wed, 1 Jun 2016 14:43:02 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 773325F4E6 for ; Wed, 1 Jun 2016 14:43:02 +0000 (UTC) Received: from malf.nabble.com (unknown [162.253.133.59]) by mbob.nabble.com (Postfix) with ESMTP id 8A84E292AD17 for ; Wed, 1 Jun 2016 07:24:54 -0700 (PDT) Date: Wed, 1 Jun 2016 07:27:32 -0700 (PDT) From: pragmaticbigdata To: user@ignite.apache.org Message-ID: <1464791252008-5359.post@n6.nabble.com> Subject: ClassNotFoundException with affinity run MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit archived-at: Wed, 01 Jun 2016 14:43:06 -0000 I am trying to execute a compute task on the node where the data is located following the example shown here - https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/datagrid/CacheAffinityExample.java#L84 I get an java.lang.ClassNotFoundException: com.ignite.model.productdetails.ProductDetails though. The detailed exception is listed here - http://pastebin.com/ijjvTBpj Note that the code executes if not executed with ignite.compute().affinityRun() and the ProductDetails class implements Serializable. What could be missing? Another question I had about affinityRun was - how can I update a method local variable in the IgniteRunnable.run() method? for e.g. private void updateColumnWithAffinity(UpdateTracker updateTracker, Map.Entry columnEntry) { for(Object key : columnEntry.getValue().getUpdateInfo().getOutgoingDependencyValues()) { ignite.compute().affinityRun(productCache.getName(), key, () -> { *//here's where the ClassNotFoundException occurs.* updateCacheEntry(columnEntry.getValue().getEdge(), String.valueOf(key), productCache.localPeek(String.valueOf(key))); *//what would be implications of the below statement? Would it perform the update even executing on the remote node?* updateTracker.addUpdate(new UpdateTracker.ColumnUpdateInfo(columnEntry.getKey(), columnEntry.getValue().getEdge().getExpression().eval().doubleValue(), outgoingDependencyValues)); }); } } Let me know your thoughts. Thanks. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/ClassNotFoundException-with-affinity-run-tp5359.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.