Skip to content

failure in publish-service startup 2.0.22 #227

@jgse

Description

@jgse

Description

exception seen when starting docker container, built from tag 2.0.22

16-Dec-2021 16:18:02.930 WARNING [localhost-startStop-1] org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext.refresh Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'producerController': Unsatisfied dependency expressed through field 'messageService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'messageServiceRMQImpl': Unsatisfied dependency expressed through field 'rmqHelper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rmqHelper': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonParser.getReadCapabilities()Lcom/fasterxml/jackson/core/util/JacksonFeatureSet;
2021-12-16 16:18:02.931 WARN 9 --- [ost-startStop-1] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'producerController': Unsatisfied dependency expressed through field 'messageService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'messageServiceRMQImpl': Unsatisfied dependency expressed through field 'rmqHelper'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rmqHelper': Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonParser.getReadCapabilities()Lcom/fasterxml/jackson/core/util/JacksonFeatureSet;

Workaround

it works after I change the pom.xml to use remrem-parent version to 2.0.4 instead of 2.0.5
I think it is related with the upgrade of Jackson from 2.0.5

-        <jackson.databind.version>2.10.1</jackson.databind.version>
+        <jackson.databind.version>2.12.1</jackson.databind.version>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions