You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@johnzon.apache.org by "Romain Manni-Bucau (Jira)" <ji...@apache.org> on 2019/08/22 12:10:00 UTC

[jira] [Commented] (JOHNZON-273) Johnzon Extras Polymorphic.Serializer runs into endless loop

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

Romain Manni-Bucau commented on JOHNZON-273:
--------------------------------------------

Hi [~mkarg],

 

do you care trying to write a failing unit test in [https://github.com/apache/johnzon/blob/master/johnzon-json-extras/src/test/java/org/apache/johnzon/jsonb/extras/polymorphism/PolymorphicTest.java#L102] ? I wonder if the level of the object is the issue you encounter.

 

Thanks a lot.

> Johnzon Extras Polymorphic.Serializer runs into endless loop
> ------------------------------------------------------------
>
>                 Key: JOHNZON-273
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-273
>             Project: Johnzon
>          Issue Type: Bug
>          Components: JSON-B
>    Affects Versions: 1.2.0
>         Environment: $ mvn -verion
> Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T21:00:29+02:00)
> Maven home: C:\Program Files\apache-maven-3.6.1
> Java version: 1.8.0_181, vendor: Azul Systems, Inc., runtime: C:\Program Files\zulu8.31.0.1-jdk8.0.181-win_x64\jre
> Default locale: de_DE, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Markus Karg
>            Priority: Major
>
> Using Johnzon-JSONB + Johnzon-Extras-Polymorphic (tried with 1.1.10, 1.1.13, and 1.2.0-SNAPSHOT), *no* explicit JsonbCofig, *binding just by @JsonbDeserializer annotation*, the Polymorphic.Serializer runs into an endless loop as it again and gain and again tries to serialize the field "_value". It seems it *does not* detect the recursion.
>  
> Continuation of [https://github.com/eclipse-ee4j/jsonb-api/issues/147.|https://github.com/eclipse-ee4j/jsonb-api/issues/147]



--
This message was sent by Atlassian Jira
(v8.3.2#803003)