camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Evgenii Lomonosov (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-10504) Hiding an underlying exception if MongoDbBasicConverters fails to convert to DBObject
Date Mon, 21 Nov 2016 14:41:58 GMT

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

Evgenii Lomonosov edited comment on CAMEL-10504 at 11/21/16 2:41 PM:
---------------------------------------------------------------------

MongoDbBasicConverters.fromAnyObjectToDBObject(Object value) - this method logs a message
that, in my opinion, should consist an information about underlying exception.


was (Author: elomonos):
MongoDbBasicConverters.fromAnyObjectToDBObject(Object value) - this method throws an exception
that, in my opinion, should consist an information about underlying exception.

> Hiding an underlying exception if MongoDbBasicConverters fails to convert to DBObject
> -------------------------------------------------------------------------------------
>
>                 Key: CAMEL-10504
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10504
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mongodb
>    Affects Versions: 2.17.3
>            Reporter: Evgenii Lomonosov
>            Priority: Minor
>              Labels: debug, troubleshooting
>
> If conversion fails it could be hard to understand what is a problem because it returns
just a message "Conversion has fallen back to generic Object -> DBObject, but unable to
convert type {}. Returning null" that points to a class that was not converted.
> In case of, as example, if a list of objects that should be converted leads to a memory
error because of parent-child link are cycled for 2 objects, it would take a lot of efforts
to understand what is going on. And information about underlying exception, stackoverflow
in this case, could help to find the root cause much faster than now.



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

Mime
View raw message