Bug 1130125

Summary: MQTT producer fails with AssertionError if it runs as a unit test
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Tomohisa Igarashi <toigaras>
Component: CamelAssignee: Tomohisa Igarashi <toigaras>
Status: NEW --- QA Contact: Matej Melko <mmelko>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: soa-p-jira
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Tomohisa Igarashi 2014-08-14 11:58:37 UTC
camel-mqtt producer fails with following AssertionError if it runs as a unit test. Willem just found it happens if JVM assertion is enabled (surefire enables it by default). See CAMEL-7662 for a reproducer and more details.

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)

Comment 1 Tomohisa Igarashi 2014-11-16 10:54:52 UTC
Submitted a pull request for CAMEL-7662.

Comment 2 JBoss JIRA Server 2015-07-08 04:16:33 UTC
Tomohisa igarashi <tm.igarashi@gmail.com> updated the status of jira SWITCHYARD-2221 to Resolved