karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (KARAF-2585) pax logger handles some stacktraces incorrectly
Date Mon, 24 Aug 2015 16:26:45 GMT

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

Guillaume Nodet resolved KARAF-2585.
------------------------------------
    Resolution: Fixed

> pax logger handles some stacktraces incorrectly
> -----------------------------------------------
>
>                 Key: KARAF-2585
>                 URL: https://issues.apache.org/jira/browse/KARAF-2585
>             Project: Karaf
>          Issue Type: Bug
>            Reporter: Alexandr Palto
>
> I met situation when attempt to log original exception cause to next exception in karaf's
log (and the application is failed completelly):
> 17:46:26,439 | INFO  | on(33)-127.0.0.1 | f.runtime.logging.TestLoggerImpl  104 | 215
- tesb.tf.runtime.logging - 2.23.0.SNAPSHOT | [slr0013--1384357503773] Add new 'Exc
> eption' event: Executor org.talend.esb.test.stories.common.delegates.CommonRequestResponseExecutor@175595cc
failed with source java.lang.NoClassDefFoundError: Could not 
> initialize class sun.reflect.misc.Trampoline
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:188)
>         at org.apache.log4j.OsgiThrowableRenderer.findClass(OsgiThrowableRenderer.java:226)
>         at org.apache.log4j.OsgiThrowableRenderer.formatElement(OsgiThrowableRenderer.java:136)
>         at org.apache.log4j.OsgiThrowableRenderer.doRender(OsgiThrowableRenderer.java:107)
>         at org.apache.log4j.OsgiThrowableRenderer.doRender(OsgiThrowableRenderer.java:52)
> ...
> I had debugged mentioned codes and see that in original stacktrace I see class "Trampoline".

> Looks like try\catch in "formatElement" method should be updated to catch Throwable,
not Exception.
> I'd tried to create pull request with this, but looks like previous is not merged yet.



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

Mime
View raw message