camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From takanorig <>
Subject [GitHub] camel pull request: Modify camel-paho
Date Sun, 11 Oct 2015 17:37:56 GMT
GitHub user takanorig opened a pull request:

    Modify camel-paho

    I modified camel-paho,
    * Parsing subscribe topic correctly.
    I modified parsing logic because previous implementation can not parse the topic with
the uri options.
    * Changing exchange header value to the mqtt properties which is original bean.
    MqttMessage class has not topic. But topic is very important value.
    So, I changed the exchange header which has topic, and privious header value can be specified
by "headerType" option.
    And, in original source,  the following errors occur.
    java.lang.NullPointerException: null
    	at org.apache.camel.impl.DefaultRuntimeEndpointRegistry.notify(
    	at org.apache.camel.util.EventHelper.doNotifyEvent(
    	at org.apache.camel.util.EventHelper.notifyExchangeCreated(
    	at org.apache.camel.impl.DefaultUnitOfWork.<init>(
    	at org.apache.camel.impl.DefaultUnitOfWork.<init>(
    	at org.apache.camel.impl.DefaultUnitOfWorkFactory.createUnitOfWork(
    	at org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.createUnitOfWork(
    	at org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.before(
    	at org.apache.camel.processor.CamelInternalProcessor$UnitOfWorkProcessorAdvice.before(
    	at org.apache.camel.processor.CamelInternalProcessor.process(
    	at org.apache.camel.component.paho.PahoConsumer$1.messageArrived(
    	at org.eclipse.paho.client.mqttv3.internal.CommsCallback.handleMessage(
    I do not know why the error occurred.
    Could you check it?

You can merge this pull request into a Git repository by running:

    $ git pull camel-paho-2.17.0

Alternatively you can review and apply these changes as the patch at:

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #635
commit 2a376c9ce18e7688be5d7d0f3b66dbbdb515ee4f
Author: Takanori Suzuki <>
Date:   2015-10-11T17:20:46Z

    Modify parsing topic in the uri, and Exchange header value is changed because mqtt topic
is able to use in after process.


If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message