Starting Spring Boot based business-application causes an error at io.swagger.jackson.ModelResolver.resolve(ModelResolver.java:398).

Solution Unverified - Updated -

Issue

I generated a Spring Boot based business-application from start.jbpm.org and modified version.io.swagger in business-application-service/pom.xml like below by following Procedure 3. and 4. in "Enabling Swagger documentation" section in the product documentation.

<version.io.swagger>1.5.15</version.io.swagger>

When starting the business-application, it failed to start with the following error message.

$ ./launch.sh clean install
    :
    :
ERROR 54859 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    io.swagger.jackson.ModelResolver.resolve(ModelResolver.java:398)

The following method did not exist:

    com.fasterxml.jackson.databind.introspect.AnnotatedMember.getType(Lcom/fasterxml/jackson/databind/type/TypeBindings;)Lcom/fasterxml/jackson/databind/JavaType;

The method's class, com.fasterxml.jackson.databind.introspect.AnnotatedMember, is available from the following locations:

    jar:file:/w1/cases/03499467/work/dm-rule-service/cima-dm-service/target/cima-dm-service-1.0.0.jar!/BOOT-INF/lib/jackson-databind-2.11.4.jar!/com/fasterxml/jackson/databind/introspect/AnnotatedMember.class

The class hierarchy was loaded from the following locations:

    com.fasterxml.jackson.databind.introspect.AnnotatedMember: jar:file:/w1/cases/03499467/work/dm-rule-service/cima-dm-service/target/cima-dm-service-1.0.0.jar!/BOOT-INF/lib/jackson-databind-2.11.4.jar!/
    com.fasterxml.jackson.databind.introspect.Annotated: jar:file:/w1/cases/03499467/work/dm-rule-service/cima-dm-service/target/cima-dm-service-1.0.0.jar!/BOOT-INF/lib/jackson-databind-2.11.4.jar!/


Action:

Correct the classpath of your application so that it contains a single, compatible version of com.fasterxml.jackson.databind.introspect.AnnotatedMember

Environment

  • Red Hat Process Automation Manager (RHPAM)
    • 7.x
  • Red Hat Decision Manager (RHDM)
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content