Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-14910

Job priority range properties cannot be applied on shared engine

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Unresolved
    • Icon: L3 - Default L3 - Default
    • 7.17.x, 7.19.0, 7.18.x
    • 7.16.0, 7.17.0, 7.18.0
    • engine

      Environment (Required on creation):

      Shared engine setup

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      The jobExecutorPriorityRangeMin and jobExecutorPriorityRangeMax properties cannot be configured. When provided in process engine configuration the engine fails to start with argument type mismatch Exception.

      26-Sep-2022 10:14:50.233 SEVERE [main] org.apache.catalina.startup.Catalina.start The required Server component failed to start so Tomcat is unable to start.
      	org.apache.catalina.LifecycleException: Failed to start component [StandardServer[8005]]
      		at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
      		at org.apache.catalina.startup.Catalina.start(Catalina.java:772)
      		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      		at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      		at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
      		at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
      	Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-08043 Exception while performing 'deploy BPM platform' => 'Start process engine default': ENGINE-08039 Cannot set property 'jobExecutorPriorityRangeMax' on instance of class 'org.camunda.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration'
      		at org.camunda.bpm.container.impl.ContainerIntegrationLogger.exceptionWhilePerformingOperationStep(ContainerIntegrationLogger.java:316)
      		at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:136)
      		at org.camunda.bpm.container.impl.jmx.MBeanServiceContainer.executeDeploymentOperation(MBeanServiceContainer.java:160)
      		at org.camunda.bpm.container.impl.spi.DeploymentOperation$DeploymentOperationBuilder.execute(DeploymentOperation.java:216)
      		at org.camunda.bpm.container.impl.tomcat.TomcatBpmPlatformBootstrap.deployBpmPlatform(TomcatBpmPlatformBootstrap.java:83)
      		at org.camunda.bpm.container.impl.tomcat.TomcatBpmPlatformBootstrap.lifecycleEvent(TomcatBpmPlatformBootstrap.java:61)
      		at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
      		at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
      		at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366)
      		at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:920)
      		at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
      		... 7 more
      	Caused by: org.camunda.bpm.engine.ProcessEngineException: ENGINE-08039 Cannot set property 'jobExecutorPriorityRangeMax' on instance of class 'org.camunda.bpm.engine.impl.cfg.StandaloneProcessEngineConfiguration'
      		at org.camunda.bpm.container.impl.ContainerIntegrationLogger.cannotSetValueForProperty(ContainerIntegrationLogger.java:285)
      		at org.camunda.bpm.container.impl.metadata.PropertyHelper.applyProperty(PropertyHelper.java:95)
      		at org.camunda.bpm.container.impl.metadata.PropertyHelper.applyProperties(PropertyHelper.java:121)
      		at org.camunda.bpm.container.impl.metadata.PropertyHelper.applyProperties(PropertyHelper.java:135)
      		at org.camunda.bpm.container.impl.deployment.StartProcessEngineStep.performOperationStep(StartProcessEngineStep.java:101)
      		at org.camunda.bpm.container.impl.spi.DeploymentOperation.execute(DeploymentOperation.java:120)
      		... 16 more
      	Caused by: java.lang.IllegalArgumentException: argument type mismatch
      		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      		at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
      		at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      		at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      		at org.camunda.bpm.container.impl.metadata.PropertyHelper.applyProperty(PropertyHelper.java:92)
      		... 20 more
      

      Steps to reproduce (Required on creation):

      1. Take Tomcat distribution (or any other server used for shared engine setup)
      2. Specify the properties in the bpm-platform.xml
            <properties>
        ...
               <property name="jobExecutorPriorityRangeMin">10</property>
               <property name="jobExecutorPriorityRangeMax">40</property>
            </properties>
        
      3. Start the server

      Observed Behavior (Required on creation):

      argument type mismatch Exception is thrown and the engine cannot be started.

      Expected behavior (Required on creation):

      The engine is started and the job priority range properties are applied.

      Root Cause (Required on prioritization):

      Wrapper objects (including Long) are not supported when parsing xml process engine configuration

      Solution Ideas (Optional):

      • Adjust the configuration API to use primitive data type instead of the wrapper object

      Hints (optional):

        This is the controller panel for Smart Panels app

              Unassigned Unassigned
              yana.vasileva Yana Vasileva
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: