Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-4443

null log msg causes org.apache.felix.eventadmin.impl.adapter.LogEventAdapter to be removed

XMLWordPrintable

    • % %
    • Hide

      Run above Camel route and hit the service.

      Show
      Run above Camel route and hit the service.
    • 6.3 Sprint 2 (1-Feb - 26-Feb)

      When deploying a Camel route like:

      public class LogExceptionRoute extends RouteBuilder {
      	
          @Override
      	public void configure() {
      		onException(Throwable.class)
      		    .handled(true)
      		    .log(LoggingLevel.ERROR, "${exception.message}");
      		from("jetty:http://0.0.0.0:8005").routeId("reproducer-log-exception")
      		.throwException(new Exception()); 
      	}	
      }
      

      which creates a log line that won't have any log message (due to the caught exception not containing any message), it results in this output written to stderr:

      'org.apache.felix.eventadmin.impl.adapter.LogEventAdapter$1@2d945cb1' is removed as a LogListener, since it threw an exception.
      

      As a result further events are not propagated to the EventAdmin service.

              ggrzybek Grzegorz Grzybek
              rhn-support-tmielke Torsten Mielke
              Roman Jakubco Roman Jakubco (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: