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

Revert changes to ProcessEngineConfigurationImpl setter methods

XMLWordPrintable

    • Icon: Bug Report Bug Report
    • Resolution: Fixed
    • Icon: L3 - Default L3 - Default
    • 7.16.0, 7.16.0-alpha5
    • None
    • None
    • None

      Environment (Required on creation):

      In rolling DB update tests there are issues with newly introduced changes to the setter methods of ProcessEngineConfigurationImpl. With this PR we made all setters return the ProcessEngineConfigurationImpl object (builder pattern).

      These changes cause issues with rolling update tests where we compile a scenario against an old engine and run it against the current engine. Since the signature of some configuration setters changed the test fails to find and invoke them.

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

      [2021-08-25T01:49:13.686Z] java.lang.reflect.InvocationTargetException
      [2021-08-25T01:49:13.686Z] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [2021-08-25T01:49:13.687Z] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      [2021-08-25T01:49:13.687Z] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [2021-08-25T01:49:13.687Z] 	at java.lang.reflect.Method.invoke(Method.java:498)
      [2021-08-25T01:49:13.687Z] 	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
      [2021-08-25T01:49:13.687Z] 	at java.lang.Thread.run(Thread.java:748)
      [2021-08-25T01:49:13.687Z] Caused by: java.lang.NoSuchMethodError: org.camunda.bpm.engine.impl.cfg.ProcessEngineConfigurationImpl.setHistoryCleanupBatchWindowStartTime(Ljava/lang/String;)V
      [2021-08-25T01:49:13.687Z] 	at org.camunda.bpm.qa.rolling.update.scenarios.cleanup.HistoryCleanupScenario$1.execute(HistoryCleanupScenario.java:71)
      [2021-08-25T01:49:13.687Z] 	at org.camunda.bpm.qa.upgrade.Scenario.create(Scenario.java:89)
      [2021-08-25T01:49:13.687Z] 	at org.camunda.bpm.qa.upgrade.Scenario.createInstances(Scenario.java:72)
      [2021-08-25T01:49:13.687Z] 	at org.camunda.bpm.qa.upgrade.ScenarioRunner.setupScenario(ScenarioRunner.java:132)
      [2021-08-25T01:49:13.687Z] 	at org.camunda.bpm.qa.upgrade.ScenarioRunner.executeScenarioSetups(ScenarioRunner.java:112)
      [2021-08-25T01:49:13.687Z] 	at org.camunda.bpm.qa.upgrade.ScenarioRunner.setupScenarios(ScenarioRunner.java:43)
      [2021-08-25T01:49:13.687Z] 	at org.camunda.bpm.qa.rolling.update.TestFixture.main(TestFixture.java:83)
      [2021-08-25T01:49:13.687Z] 	at org.camunda.bpm.qa.rolling.update.TestNewEngineMain.main(TestNewEngineMain.java:28)
      

      Expected behavior (Required on creation):

      Revert the changes unrelated to the main goal of the PR. This way the test should be able to find those methods again.

        This is the controller panel for Smart Panels app

              miklas.boskamp Miklas Boskamp
              miklas.boskamp Miklas Boskamp
              Miklas Boskamp Miklas Boskamp
              Nikola Koevski Nikola Koevski
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: