Petals SE Camel

Logging problem with MONIT activated for SE Camel

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 0.5.0
  • Fix Version/s: 0.5.1
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    Hello,

    We use camel-se with following route:

    from("file:///XXX?noop=true")
    .to("exec:YYY?args=ARGS").process(processor).to("petals://executeSatinMassCommands");

    and this processor implementation :

    StringBuilder strBuilder = new StringBuilder("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    strBuilder.append("<jaxb:execute xmlns:jaxb=\"http://jaxb.bss.ocb.orange.com/\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">");
    strBuilder.append("<instruction>");
    strBuilder.append("<commande>/bin/bash</commande>");
    strBuilder.append("<args>-c</args>").append("<args>XXX</args>");
    strBuilder.append("</instruction>");
    strBuilder.append("</jaxb:execute>");
    exchange.getOut().setBody(new StreamSource(new StringReader(strBuilder.toString())));

    The camel exec component do its job as the target (InOnly) BC in petals.
    But we get this stack trace in petals.log :

    sample-0 2015/09/29 13:31:12,361 GMT+0200 INFO [Petals.Container.Components.petals-se-camel] : Received an async answer, let's continue our execution for the exchange petals:uid:96559d40-669d-11e5-92e1-080027c8888b
    sample-0 2015/09/29 13:31:12,361 GMT+0200 SEVERE [Petals.Container.Components.petals-se-camel] : null
    java.lang.NullPointerException
            at org.ow2.petals.commons.log.PetalsExecutionContext.putFlowAttributes(PetalsExecutionContext.java:197)
            at org.ow2.petals.camel.se.CamelJBIListener.handleAsyncJBIMessage(CamelJBIListener.java:133)
            at org.ow2.petals.camel.se.CamelJBIListener.onAsyncJBIMessage(CamelJBIListener.java:110)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOnlyAsConsumer(MessageExchangeProcessor.java:586)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsConsumer(MessageExchangeProcessor.java:407)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:354)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:257)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:744)
    sample-0 2015/09/29 13:31:12,362 GMT+0200 INFO [Petals.Container.Components.petals-se-camel] : Received an async answer, let's continue our execution for the exchange petals:uid:965c7b10-669d-11e5-92e1-080027c8888b
    sample-0 2015/09/29 13:31:12,363 GMT+0200 SEVERE [Petals.Container.Components.petals-se-camel] : null
    java.lang.NullPointerException
            at org.ow2.petals.commons.log.PetalsExecutionContext.putFlowAttributes(PetalsExecutionContext.java:197)
            at org.ow2.petals.camel.se.CamelJBIListener.handleAsyncJBIMessage(CamelJBIListener.java:133)
            at org.ow2.petals.camel.se.CamelJBIListener.onAsyncJBIMessage(CamelJBIListener.java:110)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOnlyAsConsumer(MessageExchangeProcessor.java:586)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsConsumer(MessageExchangeProcessor.java:407)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:354)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:257)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:744)
    sample-0 2015/09/29 13:31:12,378 GMT+0200 MONIT [Petals.Container.Components.petals-se-camel] : traceCode = 'consumeFlowStepEnd', flowInstanceId = null, flowStepId = null
    sample-0 2015/09/29 13:31:12,379 GMT+0200 MONIT [Petals.Container.Components.petals-se-camel] : traceCode = 'consumeFlowStepEnd', flowInstanceId = null, flowStepId = null

    and no monitoring trace were logged.

    If we force synchronous execution with "to("petals://executeSatinMassCommands?synchronous=true");
    there's no more stack trace, all route is run but no monit log are write too.

    Show
    Hello, We use camel-se with following route:
    from("file:///XXX?noop=true")
    .to("exec:YYY?args=ARGS").process(processor).to("petals://executeSatinMassCommands");
    and this processor implementation :
    StringBuilder strBuilder = new StringBuilder("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    strBuilder.append("<jaxb:execute xmlns:jaxb=\"http://jaxb.bss.ocb.orange.com/\" xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\">");
    strBuilder.append("<instruction>");
    strBuilder.append("<commande>/bin/bash</commande>");
    strBuilder.append("<args>-c</args>").append("<args>XXX</args>");
    strBuilder.append("</instruction>");
    strBuilder.append("</jaxb:execute>");
    exchange.getOut().setBody(new StreamSource(new StringReader(strBuilder.toString())));
    The camel exec component do its job as the target (InOnly) BC in petals. But we get this stack trace in petals.log :
    sample-0 2015/09/29 13:31:12,361 GMT+0200 INFO [Petals.Container.Components.petals-se-camel] : Received an async answer, let's continue our execution for the exchange petals:uid:96559d40-669d-11e5-92e1-080027c8888b
    sample-0 2015/09/29 13:31:12,361 GMT+0200 SEVERE [Petals.Container.Components.petals-se-camel] : null
    java.lang.NullPointerException
            at org.ow2.petals.commons.log.PetalsExecutionContext.putFlowAttributes(PetalsExecutionContext.java:197)
            at org.ow2.petals.camel.se.CamelJBIListener.handleAsyncJBIMessage(CamelJBIListener.java:133)
            at org.ow2.petals.camel.se.CamelJBIListener.onAsyncJBIMessage(CamelJBIListener.java:110)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOnlyAsConsumer(MessageExchangeProcessor.java:586)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsConsumer(MessageExchangeProcessor.java:407)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:354)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:257)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:744)
    sample-0 2015/09/29 13:31:12,362 GMT+0200 INFO [Petals.Container.Components.petals-se-camel] : Received an async answer, let's continue our execution for the exchange petals:uid:965c7b10-669d-11e5-92e1-080027c8888b
    sample-0 2015/09/29 13:31:12,363 GMT+0200 SEVERE [Petals.Container.Components.petals-se-camel] : null
    java.lang.NullPointerException
            at org.ow2.petals.commons.log.PetalsExecutionContext.putFlowAttributes(PetalsExecutionContext.java:197)
            at org.ow2.petals.camel.se.CamelJBIListener.handleAsyncJBIMessage(CamelJBIListener.java:133)
            at org.ow2.petals.camel.se.CamelJBIListener.onAsyncJBIMessage(CamelJBIListener.java:110)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processInOnlyAsConsumer(MessageExchangeProcessor.java:586)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.processAsConsumer(MessageExchangeProcessor.java:407)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.process(MessageExchangeProcessor.java:354)
            at org.ow2.petals.component.framework.process.MessageExchangeProcessor.run(MessageExchangeProcessor.java:257)
            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
            at java.lang.Thread.run(Thread.java:744)
    sample-0 2015/09/29 13:31:12,378 GMT+0200 MONIT [Petals.Container.Components.petals-se-camel] : traceCode = 'consumeFlowStepEnd', flowInstanceId = null, flowStepId = null
    sample-0 2015/09/29 13:31:12,379 GMT+0200 MONIT [Petals.Container.Components.petals-se-camel] : traceCode = 'consumeFlowStepEnd', flowInstanceId = null, flowStepId = null
    and no monitoring trace were logged. If we force synchronous execution with "to("petals://executeSatinMassCommands?synchronous=true"); there's no more stack trace, all route is run but no monit log are write too.
  • Environment:
    Petals 4.3.0-bêta1
    petals-se-camel-0.5.0.zip
    RHEL 6.4 64
  1. jbi.xml
    (1.0 kB)
    Fabrice Scellos
    Tue, 29 Sep 2015 - 13:45:56 +0200
  2. petals.log
    (25 kB)
    Fabrice Scellos
    Tue, 29 Sep 2015 - 13:49:11 +0200
  3. petals_finest.log
    (15.92 MB)
    Fabrice Scellos
    Wed, 30 Sep 2015 - 09:09:45 +0200

Issue Links

People

Dates

  • Created:
    Tue, 29 Sep 2015 - 13:43:25 +0200
    Updated:
    Tue, 13 Oct 2015 - 10:59:36 +0200
    Resolved:
    Tue, 29 Sep 2015 - 16:57:51 +0200