johnzon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Romain Manni-Bucau (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (JOHNZON-49) ciruclar exceptions ends in StackOverflowException in JAXRS provider
Date Thu, 23 Jul 2015 17:12:04 GMT

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

Romain Manni-Bucau updated JOHNZON-49:
--------------------------------------
    Description: 
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}

  was:It is ok to fil for circular objects when the user can handle it but it is not the case
for exception


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

Mime
View raw message