user2285512
user2285512

Reputation: 11

Receiving messages from and sending messages to RabbitMq from WSO2 esb (v. 4.6.0)

I’m currently investigating the combination of WSO2 esb and RabbitMq and, although I’m getting closer (:-) ), something still goes wrong. I've read this article. The feature is installed, receiver and sender configured. I see the queue1 and exchange1 automaticly being created in RabbitMq. But everytime I want to test the configuration by sending a message to queue1 in the RabbitMq management site I get following error:

——–

[2013-06-07 16:37:00,230] INFO – ProxyService Successfully created the Axis2 service for Proxy service : AMQPProxy
[2013-06-07 16:37:33,600] ERROR – NativeWorkerPool Uncaught exception java.lang.NullPointerException
at org.apache.axis2.transport.rabbitmq.ServiceTaskManager$MessageListenerTask.getConsumerDelivery(ServiceTaskManager.java:290)
at org.apache.axis2.transport.rabbitmq.ServiceTaskManager$MessageListenerTask.run(ServiceTaskManager.java:179)
at org.apache.axis2.transport.base.threads.NativeWorkerPool$1.run(NativeWorkerPool.java:172)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

———-

Does anybody has an idea what's going on here?

Upvotes: 1

Views: 581

Answers (1)

poohdedoo
poohdedoo

Reputation: 1268

This is because you have not set the content type and content Encoding when sending the message. Please make sure you set the contentType and contentEncoding in the builder.

builder.contentType("text/xml");
builder.contentEncoding("utf-8");

Upvotes: 3

Related Questions