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 48CD0200C8A for ; Sun, 4 Jun 2017 13:57:02 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3C4E7160BE0; Sun, 4 Jun 2017 11:57:02 +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 58BD7160BB7 for ; Sun, 4 Jun 2017 13:57:01 +0200 (CEST) Received: (qmail 79158 invoked by uid 500); 4 Jun 2017 11:56:55 -0000 Mailing-List: contact user-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@flink.apache.org Received: (qmail 79148 invoked by uid 99); 4 Jun 2017 11:56:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jun 2017 11:56:53 +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 4AE51C043B for ; Sun, 4 Jun 2017 11:56:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.878 X-Spam-Level: * X-Spam-Status: No, score=1.878 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id buff5I69nkQx for ; Sun, 4 Jun 2017 11:56:51 +0000 (UTC) Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0137.outbound.protection.outlook.com [104.47.33.137]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 8A53C5F4A7 for ; Sun, 4 Jun 2017 11:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RxMcoGL7TdyCv15xH5f6CL0n6d1trkiMCXCeSgM/jQs=; b=kRjjGAl2J3sFF5zmLygW9yOAD3a2CiZEMFZ0ThKcvZmi2G2iwfyZCZM0r3NNxJNkqubzG2bEkGbnXEodxOMhxb6/tY4BXta9oKUE1KVEqi52OTbA38EvXZGF2rJUi5hv2Nr0i+Y1y1++0VpU1fsNpISCzeBSbfVXGZ/7NWFSdOc= Received: from DM5PR21MB0282.namprd21.prod.outlook.com (10.173.174.17) by DM5PR21MB0156.namprd21.prod.outlook.com (10.173.173.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.0; Sun, 4 Jun 2017 11:56:44 +0000 Received: from DM5PR21MB0282.namprd21.prod.outlook.com ([10.173.174.17]) by DM5PR21MB0282.namprd21.prod.outlook.com ([10.173.174.17]) with mapi id 15.01.1124.009; Sun, 4 Jun 2017 11:56:43 +0000 From: Shai Kaplan To: "user@flink.apache.org" Subject: KryoException: Encountered unregistered class ID Thread-Topic: KryoException: Encountered unregistered class ID Thread-Index: AdLdJwVAjx+rTOZWQTu1+KdkrMGvyQ== Date: Sun, 4 Jun 2017 11:56:43 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: flink.apache.org; dkim=none (message not signed) header.d=none;flink.apache.org; dmarc=none action=none header.from=microsoft.com; x-originating-ip: [2a01:110:8012:1010::7c9] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DM5PR21MB0156;7:Pw/JyEZBEpQp9RkOsVH8OmucXaS6qXKBr+MLPYIIhJPLa6qyVeQnkLY4w93Pc2KJf8z2YAtLJovVx1bpl6G5cOeYCpKhFMLirLR9KxQZvD3WnDT41WZa5KgW3Lr7dDJkSoJMBss1HrL4rH1beXcvR7G25vXDdz8WRvSuyppCl5NprTnZZxp7XeLacimUlEZc8POXZ8W6N6O9eaDz6DqJc9eYvYGjPppUsrEeR7XaXvJJeZ6LNotvDdYhL0MdGOvdiNxN3gFhQD9UjPJ0cpT9q5Oqhdyoo8AJZXnT8sOWFWKhMrzNYBGPPMf7he3C15wWAPuK+T9D+IEBBPsgOyW0H3lfL1nvSPgNHAX59ndSEHM= x-ms-office365-filtering-correlation-id: e5dea4f5-56d1-4835-fc72-08d4ab40c4e2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(48565401081)(201703131423075)(201703031133081)(201702281549075);SRVR:DM5PR21MB0156; x-ms-traffictypediagnostic: DM5PR21MB0156: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(21748063052155); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(61425038)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(6055026)(61426038)(61427038)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR21MB0156;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR21MB0156; x-forefront-prvs: 03283976A6 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39410400002)(39850400002)(39860400002)(39400400002)(6916009)(6506006)(7696004)(189998001)(77096006)(72206003)(478600001)(74316002)(10290500003)(14454004)(6436002)(25786009)(33656002)(54356999)(99286003)(6306002)(54896002)(53936002)(50986999)(5640700003)(9686003)(5660300001)(110136004)(38730400002)(55016002)(2906002)(2900100001)(2351001)(3660700001)(3280700002)(122556002)(81166006)(8676002)(8936002)(1730700003)(5005710100001)(8990500004)(10090500001)(6116002)(790700001)(102836003)(2501003)(86362001)(86612001);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR21MB0156;H:DM5PR21MB0282.namprd21.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_DM5PR21MB0282E58842BF1E942B7F3F8BE5F50DM5PR21MB0282namp_" MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Jun 2017 11:56:43.4358 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR21MB0156 archived-at: Sun, 04 Jun 2017 11:57:02 -0000 --_000_DM5PR21MB0282E58842BF1E942B7F3F8BE5F50DM5PR21MB0282namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi. I'm running a job from a savepoint. I've changed one of the classes stored = in state. When I try to load the value from the state I get "com.esotericso= ftware.kryo.KryoException: Encountered unregistered class ID: 97". I tried to understand if the problem arise from the nature of the change, o= r simply because there was a change in the class, so I changed the class so= that the only difference from the previous version is a new boolean field,= and the problem still occur (the ID number changes when I change the class= ). If I revert the class back to its old version, everything is fine. I'm not sure if the class ID that I'm seeing is the right one, or is it jus= t some random number received from reading the wrong place in the serialize= d object, or something like that. When I change the boolean to String the n= umber in the exception changes to 41188... What should I do to be able to restore from the state a class that now has = a new field? Should I manually register the class? With what ID? --_000_DM5PR21MB0282E58842BF1E942B7F3F8BE5F50DM5PR21MB0282namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi.

I'm running a job from a savepoint. I've changed one of the classes = stored in state. When I try to load the value from the state I get "co= m.esotericsoftware.kryo.KryoException: Encountered unregistered class ID: 97".

I tried to understand if the problem arise from the nature of the ch= ange, or simply because there was a change in the class, so I changed the c= lass so that the only difference from the previous version is a new boolean field, and the problem still occur (= the ID number changes when I change the class). If I revert the class back = to its old version, everything is fine.

 

I'm not sure if the class ID that I'm seeing is the right one, or is= it just some random number received from reading the wrong place in the se= rialized object, or something like that. When I change the boolean to String the number in the exception changes to= 41188…

 

What should I do to be able to restore from the state a class that n= ow has a new field? Should I manually register the class? With what ID?

--_000_DM5PR21MB0282E58842BF1E942B7F3F8BE5F50DM5PR21MB0282namp_--