Return-Path: X-Original-To: apmail-apex-dev-archive@minotaur.apache.org Delivered-To: apmail-apex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E586B18F16 for ; Wed, 27 Jan 2016 15:34:16 +0000 (UTC) Received: (qmail 70729 invoked by uid 500); 27 Jan 2016 15:34:16 -0000 Delivered-To: apmail-apex-dev-archive@apex.apache.org Received: (qmail 70665 invoked by uid 500); 27 Jan 2016 15:34:16 -0000 Mailing-List: contact dev-help@apex.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@apex.incubator.apache.org Delivered-To: mailing list dev@apex.incubator.apache.org Received: (qmail 70654 invoked by uid 99); 27 Jan 2016 15:34:16 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2016 15:34:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id EF05CC0D4B for ; Wed, 27 Jan 2016 15:34:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.427 X-Spam-Level: *** X-Spam-Status: No, score=3.427 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.554, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id rkFwbAojoYbD for ; Wed, 27 Jan 2016 15:34:06 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 25EAB20977 for ; Wed, 27 Jan 2016 15:34:06 +0000 (UTC) Received: (qmail 70592 invoked by uid 99); 27 Jan 2016 15:34:06 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jan 2016 15:34:06 +0000 Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com [209.85.217.170]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 894991A003F for ; Wed, 27 Jan 2016 15:34:05 +0000 (UTC) Received: by mail-lb0-f170.google.com with SMTP id cl12so7363732lbc.1 for ; Wed, 27 Jan 2016 07:34:05 -0800 (PST) X-Gm-Message-State: AG10YOT/ZfSu8lqllJJBxyMXuabLRBVJKdVx/DO8BaNeyLq/peAVkJ6sTG8n2cpDTCHF3GNzWRwQuw9ocuWx8g== X-Received: by 10.112.181.196 with SMTP id dy4mr10939799lbc.42.1453908843947; Wed, 27 Jan 2016 07:34:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.42.84 with HTTP; Wed, 27 Jan 2016 07:33:24 -0800 (PST) In-Reply-To: References: From: Gaurav Gupta Date: Wed, 27 Jan 2016 07:33:24 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: kryo no-arg constructor exception To: dev@apex.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11c36f5c2def53052a5288b1 --001a11c36f5c2def53052a5288b1 Content-Type: text/plain; charset=UTF-8 Sandesh, What do you mean by "can we have annotation to use java serializer" Gaurav On Wed, Jan 27, 2016 at 7:12 AM, Sandesh Hegde wrote: > Thanks Guys, I am using Java serializer. > > Can we have annotation to use the Java serializer? > > On Tue, Jan 26, 2016 at 3:53 PM Thomas Weise > wrote: > > > > > > http://docs.datatorrent.com/troubleshooting/#application-throwing-following-kryo-exception > > > > > > On Tue, Jan 26, 2016 at 3:48 PM, Thomas Weise > > wrote: > > > > > If the class in question is Java serializable, then using the > > > JavaSerializer for the field or class may work. > > > > > > > > > On Tue, Jan 26, 2016 at 3:27 PM, Sandesh Hegde < > sandesh@datatorrent.com> > > > wrote: > > > > > >> Hello Team, > > >> > > >> I am using class A, which doesn't have a default constructor, in an > > >> operator. > > >> Also, class A depends on few other classes which doesn't have a > default > > >> constructor. > > >> > > >> While running the app, I get the Kryo no-arg constructor exception. > > >> > > >> I looked at the following link, > > >> > > >> > > > http://docs.datatorrent.com/troubleshooting/#application-throwing-following-kryo-exception > > >> > > >> Is there a simple way to handle this scenario? > > >> > > >> Class A > > >> * > > >> > > >> > > > https://github.com/yahoo/streaming-benchmarks/blob/master/streaming-benchmark-common/src/main/java/benchmark/common/advertising/CampaignProcessorCommon.java > > >> > > >> Thanks > > >> Sandesh > > >> > > > > > > > > > --001a11c36f5c2def53052a5288b1--