Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flowable-rest docker 7.0.0 cannot perform HTTP Tasks #3875

Open
CElbersen opened this issue Apr 17, 2024 · 0 comments
Open

Flowable-rest docker 7.0.0 cannot perform HTTP Tasks #3875

CElbersen opened this issue Apr 17, 2024 · 0 comments

Comments

@CElbersen
Copy link

Describe the bug
The Flowable 7.0.0 and 7.0.1 images on dockerhub cannot perform the HTTP (service) Tasks.
Tested with two simple models created in the cloud modeler the models cannot run succesfully when a process contains a (simple) HTTP call.
The log outputs this error:
Exception in thread "httpclient-dispatch-1" java.lang.NoClassDefFoundError: org/apache/hc/core5/http2/impl/nio/ClientHttpProtocolNegotiator at org.apache.hc.client5.http.impl.async.HttpAsyncClientEventHandlerFactory.createHandler(HttpAsyncClientEventHandlerFactory.java:257) at org.apache.hc.core5.reactor.InternalConnectChannel.onIOEvent(InternalConnectChannel.java:77) at org.apache.hc.core5.reactor.InternalChannel.handleIOEvent(InternalChannel.java:51) at org.apache.hc.core5.reactor.SingleCoreIOReactor.processEvents(SingleCoreIOReactor.java:178) at org.apache.hc.core5.reactor.SingleCoreIOReactor.doExecute(SingleCoreIOReactor.java:127) at org.apache.hc.core5.reactor.AbstractSingleCoreIOReactor.execute(AbstractSingleCoreIOReactor.java:86) at org.apache.hc.core5.reactor.IOReactorWorker.run(IOReactorWorker.java:44) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.ClassNotFoundException: org.apache.hc.core5.http2.impl.nio.ClientHttpProtocolNegotiator at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:525) ... 8 more

The 6.7.2 and 6.8.0 tags of this docker image run succesful without any errors in the console log.

Expected behavior
Processes can perform HTTP calls in the Flowable-rest docker-images. Both sync and async.

Code
Reproducable:

  1. (sudo) docker run -p8080:8080 flowable/flowable-rest

  2. Upload file(s) attached below

  3. Run them:
    Sync:
    curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Basic cmVzdC1hZG1pbjp0ZXN0' -d '{ \ "processDefinitionKey": "ce_callsync" \ }' 'http://localhost:8080/flowable-rest/service/runtime/process-instances'
    Async:
    curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Basic cmVzdC1hZG1pbjp0ZXN0' -d '{ \ "processDefinitionKey": "ce_callhttp" \ }' 'http://localhost:8080/flowable-rest/service/runtime/process-instances'

  4. Check logs.

BPMN files used (calling the engine properties on localhost)
ce_callsync.bpmn.txt
ce_callhttp.bpmn.txt

Additional context
The same steps DO work for 6.7.2 and 6.8.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant