You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Possible NoClassDefFoundError when loading FEEL engine #2875
Operaton release 2.1.0 contains jackson-module-scala_2.13-2.21.2.jar as a dependency originating from feel-engine-1.21.0
This was introduced to camunda-feel-engine with camunda/feel-scala#1031
The classes in this jar file are actually shaded in feel-engine-1.21.0-scala-shaded.jar and properly reference the shaded library classes of scala-library which are prefixed with the package "camundajar.impl.". The class files in jackson-module-scala_2.13-2.21.2.jar however reference the unshaded classes from the original scala library.
Because the shaded jackson classes are not properly prefixed with a shade package and use the same package names as the original ones, if the original classes are loaded first, a NoClassDefFoundError may occur when classes from feel-engine are loaded.
I think that, similar to scala-library, jackson-module-scala should be excluded from the dependency tree of operaton-engine.
To Reproduce
Steps to reproduce the behavior:
Start an application using operaton-engine 2.1.0 where the classpath orders jackson-module-scala_2.13-2.21.2.jar before feel-engine-1.21.0-scala-shaded.jar
A NoClassDefFoundError occurs when instantiating a DmnEngine using FEEL: java.lang.NoClassDefFoundError: scala/collection/immutable/Seq
Expected behavior
Shaded classes should be loaded from feel-engine-1.21.0-scala-shaded.jar
Additional context
As a workaround I manually removed jackson-module-scala from the classpath when running operaton.
Thanks for opening your first issue. We really appreciate your interest and contribution. 🙌
👉 Before moving forward, please make sure to check out our Contributing Guidelines and the Code of Conduct. This helps us keep everything clear and consistent.
If you enjoy this project, consider giving it a star ⭐️ — we’d really appreciate that.
jackson-module-scala_2.13-2.21.2.jardoes not contain scala classes with package prefix scala.*
feel-engine-1.21.0-scala-shaded.jar contains shaded scala classes for package prefix camundajar.impl.scala.
Notable is that the 2 jars
feel-engine-1.21.0-scala-shaded.jar
jackson-module-scala_2.13-2.21.2.jar
both contain classes for package com.fasterxml.jackson.module.scala.
So your analysis is correct: If jackson-module-scala_2.13-2.21.2.jar is on the classpath before feel-engine-1.21.0-scala-shaded.jar, the Jackson classes cannot load the Scala classes.
The final distribution should include feel-engine-1.21.0-scala-shaded.jar with the Jackson classes inside, but not jackson-module-scala_2.13-2.21.2.jar.
The malicious dependency jackson-module-scala is excluded from re-distribution.
Added a verification step in the build of the Operaton distribution that no jackson-module-scala jar is present, because the artifact might sneak in by an upgrade that does have a different version suffix than 2.13.
Activity
github-actions commentedon Apr 30, 2026
Hey @patptrs! 🎉
Thanks for opening your first issue. We really appreciate your interest and contribution. 🙌
👉 Before moving forward, please make sure to check out our Contributing Guidelines and the Code of Conduct. This helps us keep everything clear and consistent.
If you enjoy this project, consider giving it a star ⭐️ — we’d really appreciate that.
Looking forward to your input! 🚀
kthoms commentedon May 4, 2026
Thank you for your detailed explanation. This will be helpful to track down the bug.
We can see that the dependency hierarchy is
jackson-module-scala_2.13-2.21.2.jardoes not contain scala classes with package prefixscala.*feel-engine-1.21.0-scala-shaded.jarcontains shaded scala classes for package prefixcamundajar.impl.scala.Notable is that the 2 jars
feel-engine-1.21.0-scala-shaded.jarjackson-module-scala_2.13-2.21.2.jarboth contain classes for package
com.fasterxml.jackson.module.scala.So your analysis is correct: If
jackson-module-scala_2.13-2.21.2.jaris on the classpath beforefeel-engine-1.21.0-scala-shaded.jar, the Jackson classes cannot load the Scala classes.The final distribution should include
feel-engine-1.21.0-scala-shaded.jarwith the Jackson classes inside, but notjackson-module-scala_2.13-2.21.2.jar.kthoms commentedon May 5, 2026
Fixed for release 2.1.1
The malicious dependency
jackson-module-scalais excluded from re-distribution.Added a verification step in the build of the Operaton distribution that no jackson-module-scala jar is present, because the artifact might sneak in by an upgrade that does have a different version suffix than 2.13.