Skip to content

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

@nmorado

Description

@nmorado

Describe the bug

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

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)

Is there any work-around this?

Expected behavior

The sample app should run as expected

Actual behavior

Getting the below errors:

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)

How to Reproduce?

Open the app in IDE and run quarkus:dev

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