camunda7.17.0外部任务,springboot项目如何配置。(按照官网的编码,出错了)
camunda7.17.0版本的springboot外部任务项目启动时,报错!
2022-11-07 16:29:43.930 ERROR 22036 --- [criptionManager] org.camunda.bpm.client
: TASK/CLIENT-03001 Exception while fetch and lock task
org.camunda.bpm.client.impl.EngineClientException: TASK/CLIENT-02001 Request 'POST
http://localhost:8080/engine-rest/external-task/fetchAndLock
HTTP/1.1' returned error: status code '401' - message: status code: 401
at org.camunda.bpm.client.impl.EngineClientLogger.exceptionWhileReceivingResponse(EngineClientLogger.java:30) ~[camunda-external-task-client-7.15.0.jar:7.15.0]
at org.camunda.bpm.client.impl.RequestExecutor.executeRequest(RequestExecutor.java:97) ~[camunda-external-task-client-7.15.0.jar:7.15.0]
at org.camunda.bpm.client.impl.RequestExecutor.postRequest(RequestExecutor.java:74) ~[camunda-external-task-client-7.15.0.jar:7.15.0]
at org.camunda.bpm.client.impl.EngineClient.fetchAndLock(EngineClient.java:80) ~[camunda-external-task-client-7.15.0.jar:7.15.0]
at org.camunda.bpm.client.topic.impl.TopicSubscriptionManager.fetchAndLock(TopicSubscriptionManager.java:135) ~[camunda-external-task-client-7.15.0.jar:7.15.0]
at org.camunda.bpm.client.topic.impl.TopicSubscriptionManager.acquire(TopicSubscriptionManager.java:101) ~[camunda-external-task-client-7.15.0.jar:7.15.0]
at org.camunda.bpm.client.topic.impl.TopicSubscriptionManager.run(TopicSubscriptionManager.java:87) ~[camunda-external-task-client-7.15.0.jar:7.15.0]
at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
Caused by: org.apache.http.client.HttpResponseException: status code: 401
at org.camunda.bpm.client.impl.RequestExecutor$1.handleResponse(RequestExecutor.java:146) ~[camunda-external-task-client-7.15.0.jar:7.15.0]
尝试过网上很多方法,比如路径不能有中文,更换依赖包版本等,都无法解决问题。
camunda外部任务正常启动,可与camunda-engine端正常通信。
希望指教,谢谢!
0 提建议
当前问题酬金
¥ 0 (可追加 ¥500)
支付方式
扫码支付