HTCL-02007 Unable to execute HTTP request

We try to implement ServiceTask with http-connector through REST.

  1. I used example https://github.com/camunda/camunda-bpm-examples/tree/master/servicetask/rest-service

  2. Url from the example opens in Browser succesfully

  3. But executing ‘mvn clean install’ gives:
    TEST-org.camunda.bpm.example.servicetask.rest.ServiceTaskRestTest.xml (58.5 KB)

Could you help to resolve the issue ?

Hi,

seems there is a connection timeout:

Caused by: connectjar.org.apache.http.conn.HttpHostConnectException: Connect to feiertage.jarmedia.de:80 [feiertage.jarmedia.de/136.243.86.211] failed: Connection timed out

I just tested at on my machine and it works as expected. Do you have any proxies configured? Can you access other urls from java? For example change the URL to something different like http://google.com and check if there is still a timeout or the script tasks fails as the response is different.

You can get more log output from the http connector with the following command line:

mvn clean install -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog -Dorg.apache.commons.logging.simplelog.showdatetime=true -Dorg.apache.commons.logging.simplelog.log.org.apache.http=DEBUG -Dorg.apache.commons.logging.simplelog.log.org.apache.http.wire=DEBUG

Cheers,
Sebastian

Hi, Sebastian.

Reason of the issue: was closed external port.

Thank you.

Hi
I am facing the same issue. i have tried with google.com but its not working. its running fine on browser. need your suggestion

regards
Madan

@antoniuktv What port was closed, having same problem after some recent hacking attempts and we had to lock down server more.

Hi @Ashley

Please don’t necro-bump threads. This is 5 years old and is unlikely to still be relevant.
You’ve also already created a new topic for this question so there’s no need to cross-post.
I’ll lock this topic.

For people looking to discuss this topic further (and also hear about why I think having two topics about the same thing active is a bad idea) go along to this topic: