falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karishma Gulati (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-1317) Inconsistent JSON serialization
Date Tue, 28 Jul 2015 10:53:04 GMT

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

Karishma Gulati commented on FALCON-1317:
-----------------------------------------

Was getting this error earlier while testing triage. v1 patch works fine for me. (y)

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

Mime
View raw message