Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Unknown
Description
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) ~[?:?]
Attachments
Issue Links
- duplicates
-
CAMEL-20557 camel-rest - Add openapi to rest-dsl so you can expose rest services from existing schema
- Resolved
- is related to
-
CAMEL-20832 camel-openapi-java - Validate message body for json using a json schema valdaitor
- Resolved
- relates to
-
CAMEL-19218 Add request validation feature for REST OPENAPI
- Resolved
-
CAMEL-20633 camel-rest-dsl - Client request validation should return 405 for missing body
- Resolved
- links to