You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@falcon.apache.org by "Pragya Mittal (JIRA)" <ji...@apache.org> on 2015/07/29 10:01:05 UTC

[jira] [Comment Edited] (FALCON-1317) Inconsistent JSON serialization

    [ https://issues.apache.org/jira/browse/FALCON-1317?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14645667#comment-14645667 ] 

Pragya Mittal edited comment on FALCON-1317 at 7/29/15 8:00 AM:
----------------------------------------------------------------

InstanceDependency API works fine with this patch. Also did basic sanity testing for instance(running,suspend,resume,status,list) and entity(list,submit,schedule,suspend,resume). (Y)


was (Author: pragya.mittal):
InstanceDependency API works fine with this patch. Also did basic sanity testing for instance(running,suspend,resume,status,list) and entity(list,submit,schedule,suspend,resume)

> Inconsistent JSON serialization
> -------------------------------
>
>                 Key: FALCON-1317
>                 URL: https://issues.apache.org/jira/browse/FALCON-1317
>             Project: Falcon
>          Issue Type: Improvement
>          Components: webapp
>    Affects Versions: 0.7
>            Reporter: Pragya Mittal
>            Assignee: Ajay Yadava
>             Fix For: 0.7
>
>         Attachments: FALCON-1317-v1.patch, FALCON-1317.patch
>
>
> While parsing InstanceDependency API result we expect SchedulableEntityInstance[] dependencies. 
> If response has single element then instead of serializing it as an array, it is passed as an object of SchedulableEntityInstance hence giving the following error :
> {code}
> com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was BEGIN_ARRAY 
> {code}
> Same is the behaviour with other APIs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)