The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

209181 (2) [Avatar] Offline
I am using this config
Mule ESB and Integration Platform *
* Version: 3.6.0 Build: ed775fdb *
* MuleSoft, Inc. *
* For more information go to *
* *
* *
* Server started: 27/02/15 16:07 *
* JDK: 1.7.0_71 (mixed mode) *
* OS: Mac OS X (10.10.2, x86_64) *
* Host: MBP-de-Nicolas (

INFO 2015-02-27 16:07:39,763 [[product_registration].HTTP_Listener_Configuration.worker.01] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default outbound transformer: org.mule.transport.jms.transformers.ObjectToJMSMessage
INFO 2015-02-27 16:07:39,764 [[product_registration].HTTP_Listener_Configuration.worker.01] org.mule.transport.service.DefaultTransportServiceDescriptor: Loading default response transformer: org.mule.transport.jms.transformers.ObjectToJMSMessage
WARN 2015-02-27 16:07:39,765 [[product_registration].HTTP_Listener_Configuration.worker.01] com.mulesoft.mule.transport.jms.EeJmsMessageDispatcher: Starting patched JmsMessageReceiver
INFO 2015-02-27 16:07:39,766 [[product_registration].HTTP_Listener_Configuration.worker.01] org.mule.lifecycle.AbstractLifecycleManager: Initialising: 'Active_MQ1.dispatcher.1460166564'. Object is: EeJmsMessageDispatcher
INFO 2015-02-27 16:07:39,769 [[product_registration].HTTP_Listener_Configuration.worker.01] org.mule.lifecycle.AbstractLifecycleManager: Starting: 'Active_MQ1.dispatcher.1460166564'. Object is: EeJmsMessageDispatcher
WARN 2015-02-27 16:07:39,803 [[product_registration].HTTP_Listener_Configuration.worker.01] org.mule.transport.jms.JmsMessageUtils: Header: Content-Type is not compliant with JMS specification (sec. 3.5.1, It will cause problems in your and other applications. Please update your application code to correct this. Mule renamed it to Content_Type
INFO 2015-02-27 16:07:39,815 [[product_registration].HTTP_Listener_Configuration.worker.01] org.mule.api.processor.LoggerMessageProcessor:
correlationId=<not set>
exceptionPayload=<not set>

Message properties:
INVOCATION scoped properties:
INBOUND scoped properties:
OUTBOUND scoped properties:
SESSION scoped properties:

I tried with the activemq version you specify as well as the 5.11.1
David Dossot (233) [Avatar] Offline
The book has been written and tested with Mule 3.4.0 Community Edition so it is possible that changes in subsequent versions of Mule break the provided examples. Moreover you are using the Enterprise Edition of 3.6.0, which uses
, i.e. a different dispatcher than the one from the Community Edition. That's also another important difference. Since you are an enterprise user, you may want to contact MuleSoft's professional support directly.

This said, I do not see any error in the log entries you are sharing here... so I'm not really sure why you're saying it's not working.
209181 (2) [Avatar] Offline
Thanks for your response. It does not work as no message is in the queue but I forgot to put that info in the post, sorry.
So there is a difference between the anypoint ide and ce ?
I am donwloading the community version ce 1.3, is that the good one ?

David Dossot (233) [Avatar] Offline
De rien smilie

What matters here is not the version of Studio but the Mule runtime you are using when executing your application.

I'm curious though, you don't see exceptions in the logs, so it should be working. I'd like to find out why it's not working for you.


  • 1. I notice there's an output from org.mule.api.processor.LoggerMessageProcessor. There's not <logger /> in the original config from the book. Did you modify the flow to add the logger? Did you change anything else?

    2. How do you check that there's a message in the queue?
  • 369368 (4) [Avatar] Offline
    Chapter 1 Sending to JMS queue not working Using Mule 3.6.1 and Anypoint studio 5.2.1?
    First of all, thank you for your book. I purchased you first edition and loved it.

    I am working through your first chapter. I am able to follow your methodology up to the testing of the Mule ESB and the JMS. I have been able to post a message using the Advance Rest Client for Chrome with no problem. I can see the message posted in ActiveMQ. The only change I have accomplished is the port to 8081.

    When I run the FunctionalTestCase,the test is throwing an exception:

    org.mule.api.lifecycle.LifecycleException: Failed to invoke lifecycle phase "start" on object: org.mule.module.http.internal.listener.DefaultHttpListenerConfig@1c69d3c
    	at org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(
    	at org.mule.lifecycle.RegistryLifecycleManager$RegistryLifecycleCallback.onTransition(
    	at org.mule.lifecycle.RegistryLifecycleManager.invokePhase(
    	at org.mule.lifecycle.RegistryLifecycleManager.fireLifecycle(
    	at org.mule.registry.AbstractRegistryBroker.fireLifecycle(
    	at org.mule.registry.MuleRegistryHelper.fireLifecycle(
    	at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(
    	at org.mule.lifecycle.MuleContextLifecycleManager$MuleContextLifecycleCallback.onTransition(
    	at org.mule.lifecycle.MuleContextLifecycleManager.invokePhase(
    	at org.mule.lifecycle.MuleContextLifecycleManager.fireLifecycle(
    	at org.mule.DefaultMuleContext.start(
    	at org.mule.tck.junit4.AbstractMuleContextTestCase.startMuleContext(
    	at org.mule.tck.junit4.AbstractMuleContextTestCase.setUpMuleContext(
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    	at java.lang.reflect.Method.invoke(
    	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
    	at org.junit.runners.model.FrameworkMethod.invokeExplosively(
    	at org.junit.internal.runners.statements.RunBefores.evaluate(
    	at org.junit.internal.runners.statements.RunAfters.evaluate(
    	at org.junit.rules.TestWatcher$1.evaluate(
    	at org.junit.internal.runners.statements.FailOnTimeout$
    Caused by: org.mule.api.DefaultMuleException: Address already in use: bind (
    	at org.mule.module.http.internal.listener.DefaultHttpListenerConfig.start(
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    	at java.lang.reflect.Method.invoke(
    	at org.mule.lifecycle.phases.DefaultLifecyclePhase.applyLifecycle(
    	... 23 more
    Caused by: Address already in use: bind
    	at Method)
    	at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bindToChannelAndAddress(
    	at org.glassfish.grizzly.nio.transport.TCPNIOBindingHandler.bind(
    	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(
    	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(
    	at org.glassfish.grizzly.nio.transport.TCPNIOTransport.bind(
    	at org.mule.module.http.internal.listener.grizzly.GrizzlyServer.start(
    	at org.mule.module.http.internal.listener.DefaultHttpListenerConfig.start(
    	... 28 more

    Any suggestions?

    David Dossot (233) [Avatar] Offline
    Chapter 1 Sending to JMS queue not working Using Mule 3.6.1 and Anypoint studio 5.2.1?
    Caused by: Address already in use: bind

    You're trying to bind an HTTP Server to an address that is already in use. Stop the server that is occupying the address then try again.
    369368 (4) [Avatar] Offline
    Duh. Okay. I have stopped the server. I left one message on the queue. When I run the test, I get a response back but the test fails in comparison. This was the one message I left on the queue. ActiveMQ reflects there are two messages. When I clean the message queue all together and rerun the test, the test fails because the payload is identified as a String "NullPayload".

    org.junit.ComparisonFailure: expected:<{["name":"Widget",  "price":9.99,  "weight":1.0,  "sku":"abcd-12345"]}> but was:<{[NullPayload]}>
    	at org.junit.Assert.assertEquals(
    	at org.junit.Assert.assertEquals(
    	at product_registration.ProductRegistrationFunctionalTestCase.testCanRegisterProducts(

    Line 37 of the test is:

    		assertEquals(productAsJson, result.getPayloadAsString());	

    What should happen is the test should fail on the assertFalse statement. This is how I changed it:


    I am still not able to get a message from the queue. I thought it was the client so I created a DefaultLocalMuleClient and wrapped the payload in a MuleMessage. I got the same results.


    David Dossot (233) [Avatar] Offline
    Sorry, I don't know why this is not working for you. Try asking on StackOverflow, providing your config, Mule version, etc...
    369368 (4) [Avatar] Offline
    thank you!
    441301 (4) [Avatar] Offline
    Same here, I am not getting any error but message isn't input to JMS and end up assert fail due to difference between expected and actual. Have you resolved the issue?