avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Blue (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AVRO-1854) NPE on recursive datatype in JSON encoder
Date Fri, 27 May 2016 19:29:12 GMT

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

Ryan Blue commented on AVRO-1854:
---------------------------------

[~dkaminsky], this looks like AVRO-1667. Could you try using 1.8.1 and see if that fixes the
problem?

> NPE on recursive datatype in JSON encoder
> -----------------------------------------
>
>                 Key: AVRO-1854
>                 URL: https://issues.apache.org/jira/browse/AVRO-1854
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.7
>            Reporter: Douglas Kaminsky
>            Priority: Critical
>         Attachments: RecursiveFlattenBugRegression.java, symbolstack.png
>
>
> When trying to encode to JSON a record whose schema contains a recursive type embedded
in another type (ie. an array), the "flatten" method in the {{Parser}} leaves a hole in the
middle of the symbol stack which causes a NPE to occur. My best guess is that it's leaving
space for the embedded recursion but never populating the symbol, but that code is a bit obtuse
so I am having trouble getting to the root cause (otherwise I would have provided a patch
to solve the problem as well).
> Attached is a class with a short main method that replicates the problem with anonymized
versions of my datatypes/record and a screenshot of the symbol stack at runtime right before
the error occurs.
> Not yet tested in 1.8.0 but should be easy to verify.



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

Mime
View raw message