camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tomohisa Igarashi (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CAMEL-7662) MQTTProducerTest fails once enables it
Date Tue, 12 Aug 2014 12:19:12 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-7662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14094010#comment-14094010
] 

Tomohisa Igarashi edited comment on CAMEL-7662 at 8/12/14 12:18 PM:
--------------------------------------------------------------------

This attaching example reproduces the issue by CamelMQTTExampleTest - it fails with following
error in spite of it succeeds if it runs with "mvn exec:java -PExample -DskipTests=true".
CamelMQTTExampleTest just kicks CamelMQTTExample. No difference between exec:java and test.
So this strange behavior is only shown in unit test.

{code}
Caused by: java.lang.AssertionError: Dispatch queue 'mqtt client' was not executing, (currently
executing: '<not-dispatched>')
	at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.assertExecuting(SerialDispatchQueue.java:145)
	at org.fusesource.mqtt.client.CallbackConnection.publish(CallbackConnection.java:585)
	at org.fusesource.mqtt.client.CallbackConnection.publish(CallbackConnection.java:581)
	at org.apache.camel.component.mqtt.MQTTEndpoint.publish(MQTTEndpoint.java:160)
	at org.apache.camel.component.mqtt.MQTTProducer.process(MQTTProducer.java:58)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:120)
{code}


was (Author: igarashitm):
This example reproduces the issue by CamelMQTTExampleTest - it fails with following error
in spite of it succeeds if it runs with "mvn exec:java -PExample -DskipTests=true". CamelMQTTExampleTest
just kicks CamelMQTTExample. No difference between exec:java and test. So this strange behavior
is only shown in unit test.

{code}
Caused by: java.lang.AssertionError: Dispatch queue 'mqtt client' was not executing, (currently
executing: '<not-dispatched>')
	at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.assertExecuting(SerialDispatchQueue.java:145)
	at org.fusesource.mqtt.client.CallbackConnection.publish(CallbackConnection.java:585)
	at org.fusesource.mqtt.client.CallbackConnection.publish(CallbackConnection.java:581)
	at org.apache.camel.component.mqtt.MQTTEndpoint.publish(MQTTEndpoint.java:160)
	at org.apache.camel.component.mqtt.MQTTProducer.process(MQTTProducer.java:58)
	at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:120)
{code}

> MQTTProducerTest fails once enables it
> --------------------------------------
>
>                 Key: CAMEL-7662
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7662
>             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:
> https://github.com/apache/camel/blob/master/components/camel-mqtt/pom.xml#L84
> 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 (https://issues.jboss.org/browse/SWITCHYARD-2221),
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
(v6.2#6252)

Mime
View raw message