Unsuccessful HTTP response

Hey guys,

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!

What’s the stacktrace?

Hi Luke,

I might be shooting in the Dark here, but I have seen a similar error when trying to to send back conflicting information. For example, My conditions after a task might state: do A when Condition A is true or do Condition B when Condition B is true, and then when Condition A and B is true, it doesn’t know what to do and you might get a similar error. I hope it helps.