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 2015/07/23 19:12:04 UTC

[jira] [Resolved] (JOHNZON-49) ciruclar exceptions ends in StackOverflowException in JAXRS provider

     [ https://issues.apache.org/jira/browse/JOHNZON-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau resolved JOHNZON-49.
---------------------------------------
    Resolution: Fixed

> ciruclar exceptions ends in StackOverflowException in JAXRS provider
> --------------------------------------------------------------------
>
>                 Key: JOHNZON-49
>                 URL: https://issues.apache.org/jira/browse/JOHNZON-49
>             Project: Johnzon
>          Issue Type: Bug
>    Affects Versions: 0.8-incubating
>            Reporter: Romain Manni-Bucau
>             Fix For: 0.9-incubating
>
>
> It is ok to fil for circular objects when the user can handle it but it is not the case for exception
> Solution: removing cause and suppressedException seems acceptable. If you really want it just customize the mapper (through the builder as usual) overriding this config:
> {code}
> builder.setIgnoreFieldsForType(Throwable.class);
> // or to still ignore suppressedException
> builder.setIgnoreFieldsForType(Throwable.class, "suppressedException");
> {code}



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