首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何在camunda上启用CustomRetryHandler

如何在camunda上启用CustomRetryHandler
EN

Stack Overflow用户
提问于 2018-06-28 05:23:36
回答 1查看 272关注 0票数 0

在tomcat上启动Camunda7.7版时,我们使用的文件是这样的https://github.com/camunda/camunda-bpm-platform/blob/master/distro/tomcat/assembly/src/conf/bpm-platform.xml

如何启用CustomRetryHandler?

我发现如果我们使用7.8版本,默认情况下它是启用的。但我们现在是7.7版本,现在还没有升级的计划。

我找到了这个页面。https://forum.camunda.org/t/custom-retry-configuration-in-camunda-wildlfy-subsystem/5345

但如果我尝试添加

代码语言:javascript
复制
<property name="customPostBPMNParseListeners">
                          org.camunda.bpm.engine.impl.bpmn.parser.FoxFailedJobParseListener
                    </property>
                    <property name="failedJobCommandFactory">
                          org.camunda.bpm.engine.impl.jobexecutor.FoxFailedJobCommandFactory
                    </property>

我得到了这个错误

代码语言:javascript
复制
Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-08039 Cannot set property 'customPostBPMNParseListeners' on instance of class 'org.camun
da.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration'
        at org.camunda.bpm.container.impl.ContainerIntegrationLogger.cannotSetValueForProperty(ContainerIntegrationLogger.java:281)
        at org.camunda.bpm.container.impl.metadata.PropertyHelper.applyProperty(PropertyHelper.java:87)
        at org.camunda.bpm.container.impl.metadata.PropertyHelper.applyProperties(PropertyHelper.java:106)
        at org.camunda.bpm.container.impl.deployment.StartProcessEngineStep.performOperationStep(StartProcessEngineStep.java:104)
        at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:116)
        ... 17 more
Caused by: java.lang.IllegalArgumentException: argument type mismatch
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.camunda.bpm.container.impl.metadata.PropertyHelper.applyProperty(PropertyHelper.java:84)
        ... 20 more

希望有人能给我贴上正确的方向=)

EN

回答 1

Stack Overflow用户

发布于 2018-06-28 16:00:17

默认情况下处于启用状态。因此不需要进行任何更改。

我想当你使用部署描述符的时候会有所不同。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51071621

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档