java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/PropertyNamingStrategies

2,686 views
Skip to first unread message

Maurizio Carioli

unread,
Dec 3, 2021, 9:58:54 AM12/3/21
to Kogito development mailing list
I am trying to build a Kogito 1.13.0.Final business process project where I am using the Jackson 2.11.2 object mapper 
in a script task with the following dependencies in the pom:

   <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-core</artifactId>
      <version>${version.jackson}</version>
    </dependency>
    <dependency>
      <groupId>com.fasterxml.jackson.core</groupId>
      <artifactId>jackson-databind</artifactId>
      <version>${version.jackson}</version>
    </dependency>

I get the error 

java.util.concurrent.CompletionException: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/PropertyNamingStrategies
        at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
        at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:319)
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1739)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/databind/PropertyNamingStrategies
        at org.jbpm.process.core.transformation.JsonResolver.<init>(JsonResolver.java:50)
        at org.jbpm.workflow.instance.node.RuleSetNodeInstance.<init>(RuleSetNodeInstance.java:95)
        at org.jbpm.workflow.instance.impl.NodeInstanceFactoryRegistry.lambda$factory$1(NodeInstanceFactoryRegistry.java:196)
        at org.jbpm.workflow.instance.impl.WorkflowProcessInstanceImpl.getNodeInstance(WorkflowProcessInstanceImpl.java:299)
...

The class com/fasterxml/jackson/databind/PropertyNamingStrategies is actually present in the corresponding jar in my Maven
repository. Is there a way to resolve this?

Regards,

Edoardo Vacchi

unread,
Dec 3, 2021, 10:05:42 AM12/3/21
to Kogito development mailing list
If you are using Quarkus, bring in the quarkus-jackson extension instead.
Moreover, version 1.14 just shipped with a few jackson-related fixes, use Quarkus 2.5.1 to get it

--
You received this message because you are subscribed to the Google Groups "Kogito development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kogito-developm...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kogito-development/CALD_1McNfU2N6%3DMm3kLyAtL3E3%3DafuksCCndq0MiDv_EvzzyYw%40mail.gmail.com.

Maurizio Carioli

unread,
Dec 7, 2021, 8:54:00 AM12/7/21
to Kogito development mailing list
Reply all
Reply to author
Forward
0 new messages