Exception while instantiating class 'com.bc.bpm.delegate.ExtractDataFieldsDelegate': ENGINE-09017 Cannot load class 'com.bc.bpm.delegate.ExtractDataFieldsDelegate': com.bc.bpm.delegate.ExtractDataFieldsDelegate

Hi,

I’m facing this below error on the deployed version of my springboot application on openshift intermittently, provided no name mismatch in bpmn and delegate.

Caused by: org.camunda.bpm.engine.ClassLoadingException: ENGINE-09017 Cannot load class ‘com.bc.bpm.delegate.ExtractDataFieldsDelegate’: com.bc.bpm.delegate.ExtractDataFieldsDelegate
at org.camunda.bpm.engine.impl.util.EngineUtilLogger.classLoadingException(EngineUtilLogger.java:145)

Caused by: java.lang.ClassNotFoundException: com.bc.bpm.delegate.ExtractDataFieldsDelegate
at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:445)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:593)

If anyone have any idea to resolve this, please help. Thanks

Hi @Aruna and welcome.
Are you sure, that you’re only classes are packaged inside the spring boot application as well?
You could also in the modeler use the delegate expression for the implementation of the service task and connect your delegate via the spring bean name (e.g. ${extractDataFieldsDelegate}).
For that your delegate must be exposed as a bean in the spring application context (e.g. by annotating with @Component).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.