Claus Ibsen created CAMEL-20623:
-----------------------------------

             Summary: camel-rest-openapi - Use another json validator that is 
jakartaee compatible
                 Key: CAMEL-20623
                 URL: https://issues.apache.org/jira/browse/CAMEL-20623
             Project: Camel
          Issue Type: Improvement
          Components: camel-rest-openapi
            Reporter: Claus Ibsen
             Fix For: 4.6.0


The library it uses from atlassian is cr** as it has some static classloader 
hell, that uses old javax library, and you can't turn it off or configure it 
differently.

java.lang.NoClassDefFoundError: javax/mail/internet/AddressException
        at 
com.github.fge.jsonschema.library.format.CommonFormatAttributesDictionary.<clinit>(CommonFormatAttributesDictionary.java:56)
 ~[json-schema-validator-2.2.14.jar:?]
        at 
com.github.fge.jsonschema.library.format.DraftV3FormatAttributesDictionary.<clinit>(DraftV3FormatAttributesDictionary.java:47)
 ~[json-schema-validator-2.2.14.jar:?]
        at 
com.github.fge.jsonschema.library.DraftV3Library.<clinit>(DraftV3Library.java:36)
 ~[json-schema-validator-2.2.14.jar:?]
        at 
com.github.fge.jsonschema.cfg.ValidationConfigurationBuilder.<clinit>(ValidationConfigurationBuilder.java:63)
 ~[json-schema-validator-2.2.14.jar:?]
        at 
com.github.fge.jsonschema.cfg.ValidationConfiguration.newBuilder(ValidationConfiguration.java:97)
 ~[json-schema-validator-2.2.14.jar:?]
        at 
com.github.fge.jsonschema.cfg.ValidationConfiguration.byDefault(ValidationConfiguration.java:107)
 ~[json-schema-validator-2.2.14.jar:?]
        at 
com.github.fge.jsonschema.main.JsonSchemaFactoryBuilder.<init>(JsonSchemaFactoryBuilder.java:68)
 ~[json-schema-validator-2.2.14.jar:?]
        at 
com.github.fge.jsonschema.main.JsonSchemaFactory.newBuilder(JsonSchemaFactory.java:123)
 ~[json-schema-validator-2.2.14.jar:?]
        at 
com.atlassian.oai.validator.schema.SwaggerV20Library.schemaFactory(SwaggerV20Library.java:67)
 ~[swagger-request-validator-core-2.40.0.jar:?]
        at 
com.atlassian.oai.validator.schema.SwaggerV20Library.schemaFactory(SwaggerV20Library.java:56)
 ~[swagger-request-validator-core-2.40.0.jar:?]
        at 
com.atlassian.oai.validator.schema.SchemaValidator.<init>(SchemaValidator.java:126)
 ~[swagger-request-validator-core-2.40.0.jar:?]
        at 
com.atlassian.oai.validator.OpenApiInteractionValidator.<init>(OpenApiInteractionValidator.java:161)
 ~[swagger-request-validator-core-2.40.0.jar:?]
        at 
com.atlassian.oai.validator.OpenApiInteractionValidator.<init>(OpenApiInteractionValidator.java:50)
 ~[swagger-request-validator-core-2.40.0.jar:?]
        at 
com.atlassian.oai.validator.OpenApiInteractionValidator$Builder.build(OpenApiInteractionValidator.java:674)
 ~[swagger-request-validator-core-2.40.0.jar:?]
        at 
org.apache.camel.component.rest.openapi.RestOpenApiEndpoint.configureRequestValidator(RestOpenApiEndpoint.java:822)
 ~[camel-rest-openapi-4.5.0-SNAPSHOT.jar:4.5.0-SNAPSHOT]
        at 
org.apache.camel.component.rest.openapi.RestOpenApiProcessor.process(RestOpenApiProcessor.java:101)
 ~[camel-rest-openapi-4.5.0-SNAPSHOT.jar:4.5.0-SNAPSHOT]
        at 
org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager.java:82)
 ~[camel-base-engine-4.5.0-SNAPSHOT.jar:4.5.0-SNAPSHOT]
        at 
org.apache.camel.support.AsyncProcessorSupport.process(AsyncProcessorSupport.java:32)
 ~[camel-support-4.5.0-SNAPSHOT.jar:4.5.0-SNAPSHOT]
        at 
org.apache.camel.component.platform.http.vertx.VertxPlatformHttpConsumer.processExchange(VertxPlatformHttpConsumer.java:244)
 ~[camel-platform-http-vertx-4.5.0-SNAPSHOT.jar:4.5.0-SNAPSHOT]
        at 
org.apache.camel.component.platform.http.vertx.VertxPlatformHttpConsumer.lambda$handleRequest$1(VertxPlatformHttpConsumer.java:212)
 ~[camel-platform-http-vertx-4.5.0-SNAPSHOT.jar:4.5.0-SNAPSHOT]
        at 
io.vertx.core.impl.ContextImpl.lambda$executeBlocking$0(ContextImpl.java:177) 
~[vertx-core-4.5.2.jar:4.5.2]
        at 
io.vertx.core.impl.ContextInternal.dispatch(ContextInternal.java:276) 
~[vertx-core-4.5.2.jar:4.5.2]
        at 
io.vertx.core.impl.ContextImpl.lambda$internalExecuteBlocking$2(ContextImpl.java:209)
 ~[vertx-core-4.5.2.jar:4.5.2]
        at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
 ~[?:?]
        at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
 ~[?:?]
        at 
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
 [netty-common-4.1.106.Final.jar:4.1.106.Final]
        at java.base/java.lang.Thread.run(Thread.java:833) [?:?]
Caused by: java.lang.ClassNotFoundException: 
javax.mail.internet.AddressException
        at 
java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
 ~[?:?]
        at 
java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:188)
 ~[?:?]
        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520) 
~[?:?]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to