geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (GEODE-732) Unable to create PDXInstance from valid JSON using JSONFormatter
Date Fri, 13 May 2016 17:33:12 GMT

    [ 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)

Mime
View raw message