camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willem Jiang (JIRA)" <>
Subject [jira] [Commented] (CAMEL-7662) MQTTProducerTest fails once enables it
Date Thu, 14 Aug 2014 08:50:12 GMT


Willem Jiang commented on CAMEL-7662:

Hi Tomohisa,

I managed to find out why the unit test cannot work, even it does the same work as the example
First the exception is java [assertion|]
exception, it is thrown from 
Caused by: java.lang.AssertionError: Dispatch queue 'mqtt client' was not executing, (currently
executing: '<not-dispatched>')
	at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.assertExecuting(
	at org.fusesource.mqtt.client.CallbackConnection.publish(
	at org.fusesource.mqtt.client.CallbackConnection.publish(
	at org.apache.camel.component.mqtt.MQTTEndpoint.publish(
	at org.apache.camel.component.mqtt.MQTTProducer.process(
	at org.apache.camel.processor.SendProcessor.process(
	... 36 more
By default, JVM assertions are disabled at runtime, but Surefire enables JVM assertions for
the execution of your test cases by default. That could explain why you can get the different
result here in the unit test.
If you disable the assertion in the surefire configuration just like this, the test is passed.

I will ping Hiram for the assertion in the hawtdispatch at the mean time.

> MQTTProducerTest fails once enables it
> --------------------------------------
>                 Key: CAMEL-7662
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-mqtt
>    Affects Versions: 2.12.2, 2.14.0
>            Reporter: Tomohisa Igarashi
>            Assignee: Willem Jiang
>         Attachments: camel-example-mqtt.tar.gz
> MQTTProducerTest fails once you enable this testcase. This is disabled here:
> Although this may be a known issue as it's explicitly disabled, I'm filing this anyway
since I couldn't find any corresponding JIRA.
> It fails with different error on 2.12.2 and current upstream master, but both case show
the producer can't send messages through the MQTT producer correctly. I think there is an
issue in camel-mqtt since I hit same issue in our application (,
but even if the problem is in the testcase, it still needs to be replaced with appropriate
testcase to verify MQTT producer works correctly.

This message was sent by Atlassian JIRA

View raw message