Skip to content

Conflict with MicroProfile OpenAPI between quarkus 3.20.1 and Kogito 10.1.0 #4046

@nmorado

Description

@nmorado

Describe the bug

Using Quarkus 3.20.1 and Kogito 10.1.0 causes errors below due to MP OpenAPI version collisions when a DMN is included in a project:

Caused by: java.lang.NoSuchMethodError: 'org.eclipse.microprofile.openapi.models.media.Schema org.eclipse.microprofile.openapi.models.media.Schema.type(org.eclipse.microprofile.openapi.models.media.Schema$SchemaType)' at org.kie.dmn.openapi.impl.FEELBuiltinTypeSchemaMapper.convertBuiltInToJavaClass(FEELBuiltinTypeSchemaMapper.java:68) at org.kie.dmn.openapi.impl.FEELBuiltinTypeSchemaMapper.from(FEELBuiltinTypeSchemaMapper.java:36) at org.kie.dmn.openapi.impl.DMNTypeSchemas.refOrBuiltinSchema(DMNTypeSchemas.java:108) at org.kie.dmn.openapi.impl.DMNTypeSchemas.schemaFromSimpleType(DMNTypeSchemas.java:98) at org.kie.dmn.openapi.impl.DMNTypeSchemas.schemaFromType(DMNTypeSchemas.java:88) at org.kie.dmn.openapi.impl.DMNTypeSchemas.generateSchemas(DMNTypeSchemas.java:63) at org.kie.dmn.openapi.impl.DMNOASGeneratorImpl.build(DMNOASGeneratorImpl.java:68)

Expected behavior

MP OpenAPI needed bby Kogito deployment should match or compatible with quarkus runtime.

Actual behavior

It is failing with NoSuchMethod errors because of MP OpenAPI version mismatch.

How to Reproduce?

Run the sample application under kogito-quarkus-examples/dmn-quarkus-example and one should get the error

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Kogito version or git rev (or at least Quarkus version if you are using Kogito via Quarkus platform BOM)

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions