isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Haywood <...@haywood-associates.co.uk>
Subject Re: Persistance errors are returned through the REST API
Date Wed, 23 Jan 2019 14:28:22 GMT
Could you update to the latest version (1.17.0) ... there have been a few
fixes in this area, I believe.

Thx
Dan

On Wed, 23 Jan 2019 at 14:18, Leandro D'Agostino <L.D'Agostino@pocos.nl>
wrote:

> Hi all,
>
> We do a call to the REST API. Then in the API an entity is being
> persisted to the DB. We do a flush so we can handle a possible Exception
> (like a duplicate). Although we catch this Exception and create a
> response ourselves, we receive a 500 HTML error in the return message,
> including the complete stack trace.
> Is it a known issue that this error is generated including the stack trace?
>
> The code to handle persisting to the DB:
>
> try {
>    persistIfNotAlready(X);
>    // flush to DB so we can catch a possible Exception, like a duplicate
> key
>    flushTransaction();
> } catch (Exception e) {
>    // handleException
> }
>
> We use Apache Isis version 1.14.
>
> Regards,
>    Leandro D'Agostino
>    POCOS
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message