camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From javajenks ...@java2go.com>
Subject Re: ReportIncident tutorial - Logging Issue..
Date Mon, 27 Oct 2014 08:39:25 GMT
OK - i have found a few other issues with the tutorial due to API changes, so will log a ticket.

Thanks VM for the link.


> On 27 Oct 2014, at 06:56, Claus Ibsen-2 [via Camel] <ml-node+s465427n5758056h14@n5.nabble.com>
wrote:
> 
> Hi 
> 
> That tutorial is very old, though you have discovered a little bug. So 
> feel free to log a JIRA ticket 
> http://camel.apache.org/support <http://camel.apache.org/support>
> 
> If you want to get started with Camel then I recommend reading this 
> article also - it has a great little example to go along with the 
> article 
> http://java.dzone.com/articles/open-source-integration-apache <http://java.dzone.com/articles/open-source-integration-apache>
> 
> 
> 
> On Sun, Oct 26, 2014 at 12:03 AM, javajenks <[hidden email] <x-msg://47/user/SendEmail.jtp?type=node&node=5758056&i=0>>
wrote:
> 
> > Sure - in fact, the message payload was not being logged at all. 
> > 
> > Added code to check the exception after producer.process(..)  - there was a 
> > NPE generated during processing, as the logger had not been initialised - 
> > see below for stacktrace. 
> > 
> > 
> > Caused by: java.lang.NullPointerException: null 
> >         at org.apache.camel.component.log.LogProducer.process(LogProducer.java:39)

> > ~[camel-core-2.14.0.jar:2.14.0] 
> >         at 
> > org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)

> > ~[camel-core-2.14.0.jar:2.14.0] 
> >         at 
> > org.apache.camel.impl.DefaultAsyncProducer.process(DefaultAsyncProducer.java:37)

> > ~[camel-core-2.14.0.jar:2.14.0] 
> >         at 
> > org.apache.camel.example.reportincident.ReportIncidentEndpointImpl.sendToCamelLog(ReportIncidentEndpointImpl.java:74)

> > ~[classes/:na] 
> > 
> > 
> > 
> > 
> > -- 
> > View this message in context: http://camel.465427.n5.nabble.com/ReportIncident-tutorial-Logging-Issue-tp5758035p5758037.html
<http://camel.465427.n5.nabble.com/ReportIncident-tutorial-Logging-Issue-tp5758035p5758037.html>
> > Sent from the Camel - Users mailing list archive at Nabble.com.
> 
> 
> 
> -- 
> Claus Ibsen 
> ----------------- 
> Red Hat, Inc. 
> Email: [hidden email] <x-msg://47/user/SendEmail.jtp?type=node&node=5758056&i=1>

> Twitter: davsclaus 
> Blog: http://davsclaus.com <http://davsclaus.com/>
> Author of Camel in Action: http://www.manning.com/ibsen <http://www.manning.com/ibsen>
> hawtio: http://hawt.io/ <http://hawt.io/>
> fabric8: http://fabric8.io/ <http://fabric8.io/>
> 
> 
> If you reply to this email, your message will be added to the discussion below:
> http://camel.465427.n5.nabble.com/ReportIncident-tutorial-Logging-Issue-tp5758035p5758056.html
<http://camel.465427.n5.nabble.com/ReportIncident-tutorial-Logging-Issue-tp5758035p5758056.html>
> To unsubscribe from ReportIncident tutorial - Logging Issue.., click here <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5758035&code=ampAamF2YTJnby5jb218NTc1ODAzNXwyMDcwODg5MDQx>.
> NAML <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
Jonathan Jenkins
jj@java2go.com <mailto:jj@java2go.com>
+44 7789 847427





--
View this message in context: http://camel.465427.n5.nabble.com/ReportIncident-tutorial-Logging-Issue-tp5758035p5758065.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message