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

Class not found exception while loading SpringConfigurationHelper

    XMLWordPrintable

Details

    • Bug Report
    • Status: Closed
    • L3 - Default
    • Resolution: Fixed
    • None
    • 7.17.0, 7.17.0-alpha2
    • engine
    • None

    Description

      Environment (Required on creation):

      • All databases
      • All setups that use "activiti-context.xml"

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

      The class "org.camunda.bpm.engine.test.spring.SpringConfigurationHelper" cannot be found when starting an engine configured via "activiti-context.xml".

      In an embedded application, you will see the following stacktrace:

      Exception in thread "main" org.camunda.bpm.engine.ProcessEngineException: couldn't initialize process engine from spring configuration resource activiti-context.xml: ENGINE-09017 Cannot load class 'org.camunda.bpm.engine.test.spring.SpringConfigurationHelper': org.camunda.bpm.engine.test.spring.SpringConfigurationHelper
              at org.camunda.bpm.engine.ProcessEngines.initProcessEngineFromSpringResource(ProcessEngines.java:146)
              at org.camunda.bpm.engine.ProcessEngines.init(ProcessEngines.java:125)
              at org.camunda.bpm.engine.ProcessEngines.getProcessEngine(ProcessEngines.java:248)
              at org.camunda.bpm.engine.ProcessEngines.getDefaultProcessEngine(ProcessEngines.java:237)
              at org.camunda.bpm.engine.ProcessEngines.getDefaultProcessEngine(ProcessEngines.java:233)
              at com.github.ConfigMain.main(ConfigMain.java:11)
      Caused by: org.camunda.bpm.engine.ClassLoadingException: ENGINE-09017 Cannot load class 'org.camunda.bpm.engine.test.spring.SpringConfigurationHelper': org.camunda.bpm.engine.test.spring.SpringConfigurationHelper
              at org.camunda.bpm.engine.impl.util.EngineUtilLogger.classLoadingException(EngineUtilLogger.java:145)
              at org.camunda.bpm.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:111)
              at org.camunda.bpm.engine.ProcessEngines.initProcessEngineFromSpringResource(ProcessEngines.java:136)
              ... 5 more
      Caused by: java.lang.ClassNotFoundException: org.camunda.bpm.engine.test.spring.SpringConfigurationHelper
              at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
              at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
              at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
              at java.base/java.lang.Class.forName0(Native Method)
              at java.base/java.lang.Class.forName(Class.java:398)
              at org.camunda.bpm.engine.impl.util.ReflectUtil.loadClass(ReflectUtil.java:88)
              ... 6 more
      

      Steps to reproduce (Required on creation):

      1. Create an "activiti-context.xml" configuration in your project (e.g., embedded engine use case)
      2. Call ProcessEngines.getDefaultProcessEngine() in your application to create the engine
      3. Start your application

      Observed Behavior (Required on creation):

      • ClassNotFoundException for "org.camunda.bpm.engine.test.spring.SpringConfigurationHelper"

      Expected behavior (Required on creation):

      • Context is parsed successfully and the engine is created

      Root Cause (Required on prioritization):

      • The name of the class is "org.camunda.bpm.engine.spring.SpringConfigurationHelper" rather than "org.camunda.bpm.engine.*test.*spring.SpringConfigurationHelper"

      Solution Ideas (Optional):

      Adjust "org.camunda.bpm.engine.*test.*spring.SpringConfigurationHelper " to "org.camunda.bpm.engine.spring.SpringConfigurationHelper" (remove the ".test") in ProcessEngines class.

      Hints (optional):

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          1. Screen Shot 2021-10-25 at 12.32.27 PM.png
            422 kB
            Maksim Raspopov
          2. Screen Shot 2021-10-25 at 12.35.20 PM.png
            252 kB
            Maksim Raspopov
          3. Screen Shot 2021-11-29 at 6.43.07 PM.png
            728 kB
            Maksim Raspopov
          4. Screen Shot 2021-11-29 at 6.43.51 PM.png
            819 kB
            Maksim Raspopov

          Activity

            People

              Unassigned Unassigned
              HLaM Maksim Raspopov
              Tobias Metzke-Bernstein Tobias Metzke-Bernstein
              Nikola Koevski Nikola Koevski
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Salesforce