I have the following problem. I have integrated a message producer into a service task using RabbitMQ. I have already tested the RabbitMQ producer code outside of Camunda and it works without problems. However, if I put this code into a service task this error message appears at the Camunda Cockpit - start Process. The maven build runs just fine.
The process could not be started. : Unsuccessful HTTP response
This is the RabbitMQ-Code I integrated into my JavaDelegate Class for the service task:
ConnectionFactory factory = new ConnectionFactory(); factory.setHost("localhost"); Connection connection = factory.newConnection(); Channel channel = connection.createChannel(); channel.queueDeclare(topicName, false, false, false, null); channel.basicPublish("", topicName, null,bla.getBytes("UTF-8")); System.out.println(" [x] Sent '" + bla + "'"); channel.close(); connection.close();
This code is from the QuickStart tutorial .
Do i have to integrate more packages for an HTTP-Response out of Camunda?
Thanks a lot!