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 5AB8C200828 for ; Fri, 13 May 2016 19:33:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 596B816099F; Fri, 13 May 2016 17:33:22 +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 A39CB1602BE for ; Fri, 13 May 2016 19:33:21 +0200 (CEST) Received: (qmail 38818 invoked by uid 500); 13 May 2016 17:33:15 -0000 Mailing-List: contact issues-help@geode.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.incubator.apache.org Delivered-To: mailing list issues@geode.incubator.apache.org Received: (qmail 38792 invoked by uid 99); 13 May 2016 17:33:15 -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; Fri, 13 May 2016 17:33:15 +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 543D6C27C2 for ; Fri, 13 May 2016 17:33:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.648 X-Spam-Level: X-Spam-Status: No, score=-4.648 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.428] autolearn=disabled Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id h06absvyDrJG for ; Fri, 13 May 2016 17:33:14 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with SMTP id 05CF85FAE8 for ; Fri, 13 May 2016 17:33:13 +0000 (UTC) Received: (qmail 38680 invoked by uid 99); 13 May 2016 17:33:12 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 May 2016 17:33:12 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CD54C2C14F4 for ; Fri, 13 May 2016 17:33:12 +0000 (UTC) Date: Fri, 13 May 2016 17:33:12 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@geode.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-732) Unable to create PDXInstance from valid JSON using JSONFormatter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 13 May 2016 17:33:22 -0000 [ https://issues.apache.org/jira/browse/GEODE-732?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15282900#comment-15282900 ] ASF subversion and git services commented on GEODE-732: ------------------------------------------------------- Commit a881e9cb1b86bfd5b928b8719219421f5a26a954 in incubator-geode's branch refs/heads/develop from [~hitesh.khamesra] [ https://git-wip-us.apache.org/repos/asf?p=incubator-geode.git;h=a881e9c ] GEODE-732 Fixed the issue with List inside list and added test for it > Unable to create PDXInstance from valid JSON using JSONFormatter > ---------------------------------------------------------------- > > Key: GEODE-732 > URL: https://issues.apache.org/jira/browse/GEODE-732 > Project: Geode > Issue Type: Bug > Components: serialization > Reporter: Rafal Glowinski > Assignee: Hitesh Khamesra > Attachments: json-parse-bug.json > > > JSONFormatter throws an exception (below) whenever I try to deserialize a valid JSON document, that has arrays inside an array, using JSONFormatter class. > Exception thrown: > {code} > Exception in thread "main" com.gemstone.gemfire.pdx.JSONFormatterException: Could not parse JSON document: [Source: [B@1cfd1875; line: 4, column: 8] > at com.gemstone.gemfire.pdx.JSONFormatter.fromJSON(JSONFormatter.java:83) > at GemfireClient.main(GemfireClient.java:28) > Caused by: java.lang.IllegalStateException: Object start called when state is LIST_FOUND > at com.gemstone.gemfire.pdx.JSONFormatter.objectStarts(JSONFormatter.java:476) > at com.gemstone.gemfire.pdx.JSONFormatter.getList(JSONFormatter.java:360) > at com.gemstone.gemfire.pdx.JSONFormatter.getPdxInstance(JSONFormatter.java:180) > at com.gemstone.gemfire.pdx.JSONFormatter.fromJSON(JSONFormatter.java:77) > ... 1 more > {code} > Sample JSON causing attached. -- This message was sent by Atlassian JIRA (v6.3.4#6332)