camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-7804) MessageHelper - dump message for logging should catch throwable
Date Fri, 12 Sep 2014 00:37:33 GMT

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

Willem Jiang updated CAMEL-7804:
--------------------------------
    Fix Version/s:     (was: 2.14.1)
                       (was: 2.15.0)
                   2.14.0

> MessageHelper - dump message for logging should catch throwable
> ---------------------------------------------------------------
>
>                 Key: CAMEL-7804
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7804
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.14.0
>
>
> For example if creating some exception to be logged and the message payload causes some
problem, like OOME etc, then we should be resilient to this so the caused exception can be
created and logged.
> {code}
> Caused by: java.lang.OutOfMemoryError: Java heap space
>     at java.util.Arrays.copyOf(Arrays.java:2367)
>     at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130)
>     at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114)
>     at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415)
>     at java.lang.StringBuilder.append(StringBuilder.java:132)
>     at java.lang.StringBuilder.append(StringBuilder.java:128)
>     at java.util.AbstractMap.toString(AbstractMap.java:523)
>     at java.lang.String.valueOf(String.java:2854)
>     at java.lang.StringBuilder.append(StringBuilder.java:128)
>     at java.util.AbstractMap.toString(AbstractMap.java:523)
>     at java.lang.String.valueOf(String.java:2854)
>     at java.lang.StringBuilder.append(StringBuilder.java:128)
>     at org.apache.camel.processor.DefaultExchangeFormatter.format(DefaultExchangeFormatter.java:99)
>     at org.apache.camel.util.MessageHelper.doDumpMessageHistoryStacktrace(MessageHelper.java:475)
>     at org.apache.camel.util.MessageHelper.dumpMessageHistoryStacktrace(MessageHelper.java:425)
>     at org.apache.camel.processor.RedeliveryErrorHandler.logFailedDelivery(RedeliveryErrorHandler.java:990)
> {code}



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

Mime
View raw message