Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-8937

Please update the jackson-databind dependency

XMLWordPrintable

    • Icon: Component Upgrade Component Upgrade
    • Resolution: Done
    • Icon: Major Major
    • 7.39.0.Final
    • None
    • None
    • None
    • 2020 Week 25-27 (from Jun 15)

      Hello,
      I started kie-sever-showcase in docker and now in my spring-boot application I want to create a kieServicesClient by calling:

      KieServicesClient kieServicesClient = KieServicesFactory.newKieServicesClient(configuration);
      

      but I get an exception:

      Caused by: java.lang.NoSuchMethodError: org.kie.server.api.marshalling.json.JSONMarshaller$2.idResolver(Lcom/fasterxml/jackson/databind/cfg/MapperConfig;Lcom/fasterxml/jackson/databind/JavaType;Ljava/util/Collection;ZZ)Lcom/fasterxml/jackson/databind/jsontype/TypeIdResolver;
      	at org.kie.server.api.marshalling.json.JSONMarshaller$2.buildTypeDeserializer(JSONMarshaller.java:244)
      	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findTypeDeserializer(BasicDeserializerFactory.java:1599)
      	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.findPropertyTypeDeserializer(BasicDeserializerFactory.java:1739)
      	at com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.resolveMemberAndTypeAnnotations(BasicDeserializerFactory.java:2107)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.constructSettableProperty(BeanDeserializerFactory.java:799)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.addBeanProps(BeanDeserializerFactory.java:522)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.buildBeanDeserializer(BeanDeserializerFactory.java:234)
      	at com.fasterxml.jackson.databind.deser.BeanDeserializerFactory.createBeanDeserializer(BeanDeserializerFactory.java:143)
      

      It looks like here:

      https://github.com/kiegroup/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-api/src/main/java/org/kie/server/api/marshalling/json/JSONMarshaller.java#L244

      you are calling the idResolve method from jackson-databine 2.9.9. However spring-boot application is getting the latest version 2.10.0 which changed the signature of the method to accept now subtypeValidator and I get the exception.

            mfusco@redhat.com Mario Fusco
            paranoiabla@gmail.com Petar Tahchiev (Inactive)
            Votes:
            6 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: