org.camunda.connect.ConnectorRequestException: HTCL-02007 Unable to execute HTTP request

I have created a simple java class having the method whose path i have given in URL in CONNECTOR tab ,but i dont want to include any of the camunda dependency for creating the connecter in my spring boot java class ,since i am new to camunda can you please suggest some way?

conn_14.bpmn (4.1 KB)

When you are familiar with java & spring boot, and new to camunda, I would suggest that you stick to the default, which is implementing the JavaDelegate interface with your java class and referencing it via delegateExpression in the modeler … what you are trying could somehow work … but it’s definitely a very complicated and advanced way of achieving the same result … don’t block your camunda success story by sticking to this.

Note: If you want to continue on that road: you will have to expose your class as a RestController … otherwise you will not be able to access it via the http connector.

yeah i am trying to do the same ,i am using restcontroller class and have implemented a simple GET method that returns a “string” and this methods’s path i have provided in connector URL but when i am trying to hit the API it is throwing following error-

HTTP Status 500 – Internal Server Error

Type Exception Report

Message org.camunda.connect.ConnectorRequestException: HTCL-02007 Unable to execute HTTP request

Description The server encountered an unexpected condition that prevented it from fulfilling the request.


org.jboss.resteasy.spi.UnhandledException: org.camunda.connect.ConnectorRequestException: HTCL-02007 Unable to execute HTTP request

Can you please suggest how to resolve this but without the camunda http jar dependency?

No, I can’t. Never did it that way, and as mentioned before, see no reason to do so …

Also Another doubt, if from my java class i am sending response such as “ACCEPTED” when the values are correct and “DECLINED” when the values are wrong in “payload” to the “output parameter” of my http-connector.
how do i set this condition so that when the response comes as DECLINED my token does not move forward and stays there only(in send task).

Thank you in Advance :slight_smile: