I'm using the same artifact in two different projects, however I'm getting different versions of jersey dependencies that are causing me issues. How is it possible that a single artifact in the same versions contains different transitive dependencies in each project?
Project A:
\- com.csg.rdx.base.orc:rdx-client:jar:1.0.0_0_1:compile
+- com.csg.rdx.base.public:javautils-micro:jar:1.0.0_0_1:compile
| +- org.codehaus.plexus:plexus-classworlds:jar:2.5.2:compile
| +- com.yammer.metrics:metrics-core:jar:2.2.0:compile
| | \- org.slf4j:slf4j-api:jar:1.7.26:compile
| +- com.csg.rdx.rdlall:rdl-java-runtime:jar:1.0.1_0_1:compile
| | +- org.antlr:antlr-runtime:jar:3.5.2:compile
| | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
| | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
| | \- commons-io:commons-io:jar:2.4:compile
| +- com.csg.rdx.build:rdx-javautils-nano:jar:1.0.2_0_1:compile
| +- com.csg.rdx.build:rdx-build-utils:jar:1.0.2_0_1:compile
| \- log4j:log4j:jar:1.2.17:compile
+- com.csg.rdx.base.public:pki-rest-client:jar:1.0.0_0_1:compile
| +- com.csg.rdx.base.public:pki-rest-client-micro:jar:1.0.0_0_1:compile
| | +- org.glassfish.jersey.core:jersey-client:jar:2.17:compile
| | | +- org.glassfish.hk2:hk2-api:jar:2.4.0-b10:compile
| | | | +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b10:compile
| | | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b10:compile
| | | +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b10:compile
| | | \- org.glassfish.hk2:hk2-locator:jar:2.4.0-b10:compile
| | | \- org.javassist:javassist:jar:3.18.1-GA:compile
| | +- com.csg.rdx.base.public:pki-wrapper:jar:1.0.0_0_1:compile
| | | +- com.csg.rdx.base.public:pki-wrapper-micro:jar:1.0.0_0_1:compile
| | | | +- org.slf4j:slf4j-log4j12:jar:1.7.26:compile
| | | | \- commons-logging:commons-logging-api:jar:1.1:runtime
| | | +- au.com.bytecode:opencsv:jar:2.4:compile
| | | +- org.apache.commons:commons-vfs2:jar:2.6.0:compile
| | | | \- org.apache.hadoop:hadoop-hdfs-client:jar:3.2.1:compile
| | | | +- com.squareup.okhttp:okhttp:jar:2.7.5:compile
| | | | | \- com.squareup.okio:okio:jar:1.6.0:compile
| | | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.9:compile
| | | | \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.9:compile
| | | | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.9:compile
| | | \- com.csg.cs.aura.dis.agl:LarcsAdapter:jar:2.4.3:compile
| | +- com.csg.rdx.base.public:pki-wrapper-binder:jar:1.0.0_0_1:compile
| | | +- com.csg.rdx.base.public:pki-wrapper-binder-pki-framework:jar:1.0.0_0_1:compile
| | | +- com.csg.cs.tip.pki:keyonOCSPClient:jar:6.0.4:runtime
| | | +- ch.keyon:jacapi-ase:jar:2.1:compile
| | | \- ch.keyon:jacapi-interoperability:jar:2.1.1:compile
| | \- com.google.guava:guava:jar:16.0:compile
| +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.17:compile
| +- org.glassfish.jersey.connectors:jersey-apache-connector:jar:2.17:compile
| | \- org.glassfish.jersey.core:jersey-common:jar:2.17:compile
| | +- javax.annotation:javax.annotation-api:jar:1.2:compile
| | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
| \- org.glassfish.jersey.connectors:jersey-jetty-connector:jar:2.17:compile
| \- org.eclipse.jetty:jetty-client:jar:9.1.1.v20140108:compile
| +- org.eclipse.jetty:jetty-http:jar:9.1.1.v20140108:compile
| | \- org.eclipse.jetty:jetty-util:jar:9.1.1.v20140108:compile
| \- org.eclipse.jetty:jetty-io:jar:9.1.1.v20140108:compile
+- org.apache.httpcomponents:httpclient:jar:4.5.9:compile
| +- org.apache.httpcomponents:httpcore:jar:4.4.11:compile
| +- commons-logging:commons-logging:jar:1.2:compile
| \- commons-codec:commons-codec:jar:1.11:compile
+- org.apache.httpcomponents:httpmime:jar:4.3.2:compile
+- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
+- com.csg.rdx.base.orc:rdx-rdl:jar:1.0.0_0_1:compile
| +- com.csg.rdx.rdlp.internal:RDx.Calc.Legacy-java:jar:1.0.1745:compile
| | \- com.csg.rdx.rdlcore:rdl-java-runtime:jar:1.0.91714:compile
| +- com.csg.rdx.rdlp.internal:RDx.Calc.Private-java:jar:1.0.1810:compile
| +- com.csg.rdx.rdlp.internal:RDx.Calc.Public-java:jar:1.0.1770:compile
| +- com.csg.rdx.rdlp.internal:RDx.DLF-java:jar:1.0.1747:compile
| +- com.csg.rdx.rdlp.internal:RDx.Interfaces-java:jar:1.0.1735:compile
| +- com.csg.rdx.rdlp.internal:RDx.RDF.Private-java:jar:1.0.1753:compile
| +- com.csg.rdx.rdlp.internal:RDx.RDF.Public-java:jar:1.0.1739:compile
| +- com.csg.rdx.rdlp.internal:RDx.RDF.Security-java:jar:1.0.1746:compile
| \- com.csg.rdx.rdlp.internal:RDx.RDL.Language-java:jar:1.0.1735:compile
+- com.csg.rdx.base.orc:rdx-client-interfaces:jar:1.0.0_0_1:compile
\- com.csg.rdx.base.orc:rdx-common-micro:jar:1.0.0_0_1:compile
\- org.javatuples:javatuples:jar:1.2:compile
As you can see, all jersey libraries are in 2.17 version.
Project B:
+- com.csg.rdx.base.orc:rdx-client:jar:1.0.0_0_1:compile
| +- com.csg.rdx.base.public:javautils-micro:jar:1.0.2_0_1:compile
| | +- org.codehaus.plexus:plexus-classworlds:jar:2.5.2:compile
| | +- com.yammer.metrics:metrics-core:jar:2.2.0:compile
| | | \- org.slf4j:slf4j-api:jar:1.7.30:compile
| | +- com.csg.rdx.rdlall:rdl-java-runtime:jar:1.0.1_0_1:compile
| | | +- org.antlr:antlr-runtime:jar:3.5.2:compile
| | | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
| | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
| | | \- commons-io:commons-io:jar:2.4:compile
| | +- com.csg.rdx.build:rdx-javautils-nano:jar:1.0.2_0_1:compile
| | +- com.csg.rdx.build:rdx-build-utils:jar:1.0.2_0_1:compile
| | \- log4j:log4j:jar:1.2.17:compile
| +- com.csg.rdx.base.public:pki-rest-client:jar:1.0.0_0_1:compile
| | +- com.csg.rdx.base.public:pki-rest-client-micro:jar:1.0.0_0_1:compile
| | | +- org.glassfish.jersey.core:jersey-client:jar:2.29.1:compile
| | | | \- org.glassfish.hk2.external:jakarta.inject:jar:2.6.1:compile
| | | +- com.csg.rdx.base.public:pki-wrapper:jar:1.0.0_0_1:compile
| | | | +- com.csg.rdx.base.public:pki-wrapper-micro:jar:1.0.0_0_1:compile
| | | | | +- org.slf4j:slf4j-log4j12:jar:1.7.30:compile
| | | | | \- commons-logging:commons-logging-api:jar:1.1:runtime
| | | | +- au.com.bytecode:opencsv:jar:2.4:compile
| | | | +- org.apache.commons:commons-vfs2:jar:2.1:compile
| | | | \- com.csg.cs.aura.dis.agl:LarcsAdapter:jar:2.4.3:compile
| | | +- com.csg.rdx.base.public:pki-wrapper-binder:jar:1.0.0_0_1:compile
| | | | +- com.csg.rdx.base.public:pki-wrapper-binder-pki-framework:jar:1.0.0_0_1:compile
| | | | +- com.csg.cs.tip.pki:keyonOCSPClient:jar:6.0.4:runtime
| | | | +- ch.keyon:jacapi-ase:jar:2.1:compile
| | | | \- ch.keyon:jacapi-interoperability:jar:2.1.1:compile
| | | \- com.google.guava:guava:jar:16.0:compile
| | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.17:compile
| | +- org.glassfish.jersey.connectors:jersey-apache-connector:jar:2.29.1:compile
| | | +- org.glassfish.jersey.core:jersey-common:jar:2.29.1:compile
| | | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
| | | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.3:compile
| | | \- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile
| | \- org.glassfish.jersey.connectors:jersey-jetty-connector:jar:2.29.1:compile
| | \- org.eclipse.jetty:jetty-client:jar:9.4.27.v20200227:compile
| | +- org.eclipse.jetty:jetty-http:jar:9.4.27.v20200227:compile
| | | \- org.eclipse.jetty:jetty-util:jar:9.4.27.v20200227:compile
| | \- org.eclipse.jetty:jetty-io:jar:9.4.27.v20200227:compile
| +- org.apache.httpcomponents:httpclient:jar:4.5.12:compile
| | +- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
| | +- commons-logging:commons-logging:jar:1.2:compile
| | \- commons-codec:commons-codec:jar:1.13:compile
| +- org.apache.httpcomponents:httpmime:jar:4.5.12:compile
| +- javax.ws.rs:javax.ws.rs-api:jar:2.1.1:compile
| +- com.csg.rdx.base.orc:rdx-rdl:jar:1.0.0_0_1:compile
| | +- com.csg.rdx.rdlp.internal:RDx.Calc.Legacy-java:jar:1.0.1745:compile
| | | \- com.csg.rdx.rdlcore:rdl-java-runtime:jar:1.0.91714:compile
| | +- com.csg.rdx.rdlp.internal:RDx.Calc.Private-java:jar:1.0.1810:compile
| | +- com.csg.rdx.rdlp.internal:RDx.Calc.Public-java:jar:1.0.1770:compile
| | +- com.csg.rdx.rdlp.internal:RDx.DLF-java:jar:1.0.1747:compile
| | +- com.csg.rdx.rdlp.internal:RDx.Interfaces-java:jar:1.0.1735:compile
| | +- com.csg.rdx.rdlp.internal:RDx.RDF.Private-java:jar:1.0.1753:compile
| | +- com.csg.rdx.rdlp.internal:RDx.RDF.Public-java:jar:1.0.1739:compile
| | +- com.csg.rdx.rdlp.internal:RDx.RDF.Security-java:jar:1.0.1746:compile
| | \- com.csg.rdx.rdlp.internal:RDx.RDL.Language-java:jar:1.0.1735:compile
| +- com.csg.rdx.base.orc:rdx-client-interfaces:jar:1.0.0_0_1:compile
| \- com.csg.rdx.base.orc:rdx-common-micro:jar:1.0.0_0_1:compile
| \- org.javatuples:javatuples:jar:1.2:compile
Now, in this project, all jersey libraries are in version 2.29 and that is causing me problems. Any idea how is that possible?
Dependency com.csg.rdx.base.orc:rdx-client:1.0.0_0_1 is the only one in both projects. It'defined in the dependencyManagement section of parent projects.
Unfortunately, due to company policy I cannot post entire poms/projects.
I am trying to configure Azure CosmosDB in my Spring project, but I'm getting
the following stack trace:
2020-03-28 13:02:09.192 INFO 19585 --- [ main] c.a.d.c.internal.RxDocumentClientImpl : Initializing DocumentClient with serviceEndpoint [https://***.documents.azure.com:443/], connectionPolicy [ConnectionPolicy{requestTimeoutInMillis=60000, mediaRequestTimeoutInMillis=300000, connectionMode=DIRECT, maxPoolSize=1000, idleConnectionTimeoutInMillis=60000, userAgentSuffix=';spring-data/2.2.3;', retryOptions=RetryOptions{maxRetryAttemptsOnThrottledRequests=9, maxRetryWaitTimeInSeconds=30}, enableEndpointDiscovery=true, preferredLocations=null, usingMultipleWriteLocations=false, inetSocketProxyAddress=null}], consistencyLevel [null], directModeProtocol [Tcp]
2020-03-28 13:02:09.405 INFO 19585 --- [ parallel-1] c.a.d.c.internal.RxDocumentClientImpl : Getting database account endpoint from https://***.documents.azure.com:443/
2020-03-28 13:02:12.881 WARN 19585 --- [s-rntbd-nio-2-4] c.a.d.c.i.d.r.RntbdClientChannelPool : Channel([id: 0x1fd9aa13, L:/192.168.14.122:58535 - R:cdb-ms-prod-westus2-fd19.documents.azure.com/40.78.243.194:11004]) health check request failed due to:
java.lang.NoClassDefFoundError: Could not initialize class com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdConstants$RntbdContextRequestHeader
at com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdContextRequest$Headers.<init>(RntbdContextRequest.java:126)
at com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdContextRequest$Headers.<init>(RntbdContextRequest.java:118)
at com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdContextRequest.<init>(RntbdContextRequest.java:33)
at com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdContextNegotiator.startRntbdContextRequest(RntbdContextNegotiator.java:77)
at com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdContextNegotiator.write(RntbdContextNegotiator.java:63)
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:709)
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:792)
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:702)
at io.netty.handler.codec.MessageToByteEncoder.write(MessageToByteEncoder.java:120)
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:709)
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:792)
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:702)
at com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdRequestManager.write(RntbdRequestManager.java:502)
at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:717)
at io.netty.channel.AbstractChannelHandlerContext.invokeWriteAndFlush(AbstractChannelHandlerContext.java:764)
at io.netty.channel.AbstractChannelHandlerContext.write(AbstractChannelHandlerContext.java:790)
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:758)
at io.netty.channel.AbstractChannelHandlerContext.writeAndFlush(AbstractChannelHandlerContext.java:808)
at io.netty.channel.DefaultChannelPipeline.writeAndFlush(DefaultChannelPipeline.java:1025)
at io.netty.channel.AbstractChannel.writeAndFlush(AbstractChannel.java:294)
at com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdClientChannelPool$AcquireListener.lambda$operationComplete$1(RntbdClientChannelPool.java:561)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:497)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.base/java.lang.Thread.run(Thread.java:834)
The class com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdConstants$RntbdContextRequestHeader comes from com.microsoft.azure:azure-cosmos:jar:3.7.1 which I have in my dependencies:
--- maven-dependency-plugin:2.8:tree (default-cli) # my-service ---
com.avpines.poc:my-service:jar:0.0.1-SNAPSHOT
+- org.springframework.cloud:spring-cloud-starter-kubernetes:jar:1.1.2.RELEASE:compile
| +- org.springframework.cloud:spring-cloud-kubernetes-core:jar:1.1.2.RELEASE:compile
| | +- io.fabric8:kubernetes-client:jar:4.4.1:compile
| | | +- io.fabric8:kubernetes-model:jar:4.4.1:compile
| | | | +- io.fabric8:kubernetes-model-common:jar:4.4.1:compile
| | | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.10.3:compile
| | | | +- javax.validation:validation-api:jar:2.0.1.Final:compile
| | | | +- org.glassfish:javax.el:jar:3.0.1-b11:compile
| | | | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
| | | | \- javax.xml.bind:jaxb-api:jar:2.3.1:compile
| | | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
| | | +- com.squareup.okhttp3:okhttp:jar:3.12.0:compile
| | | | \- com.squareup.okio:okio:jar:1.15.0:compile
| | | +- com.squareup.okhttp3:logging-interceptor:jar:3.12.0:compile
| | | +- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
| | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.10.3:compile
| | | +- io.fabric8:zjsonpatch:jar:0.3.0:compile
| | | \- com.github.mifmif:generex:jar:1.0.2:compile
| | | \- dk.brics.automaton:automaton:jar:1.11-8:compile
| | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.2.6.RELEASE:compile
| | \- org.springframework.cloud:spring-cloud-context:jar:2.2.2.RELEASE:compile
| | \- org.springframework.security:spring-security-crypto:jar:5.2.2.RELEASE:compile
| \- org.springframework.cloud:spring-cloud-kubernetes-discovery:jar:1.1.2.RELEASE:compile
| \- org.springframework.cloud:spring-cloud-commons:jar:2.2.2.RELEASE:compile
+- org.springframework.cloud:spring-cloud-starter-kubernetes-config:jar:1.1.2.RELEASE:compile
| \- org.springframework.cloud:spring-cloud-kubernetes-config:jar:1.1.2.RELEASE:compile
| \- org.springframework.security:spring-security-rsa:jar:1.0.9.RELEASE:compile
| \- org.bouncycastle:bcpkix-jdk15on:jar:1.64:compile
| \- org.bouncycastle:bcprov-jdk15on:jar:1.64:compile
+- org.springframework.boot:spring-boot-starter-web:jar:2.2.6.RELEASE:compile
| +- org.springframework.boot:spring-boot-starter:jar:2.2.6.RELEASE:compile
| | +- org.springframework.boot:spring-boot:jar:2.2.6.RELEASE:compile
| | +- org.springframework.boot:spring-boot-starter-logging:jar:2.2.6.RELEASE:compile
| | | \- org.apache.logging.log4j:log4j-to-slf4j:jar:2.12.1:compile
| | | \- org.apache.logging.log4j:log4j-api:jar:2.12.1:compile
| | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
| | \- org.yaml:snakeyaml:jar:1.25:compile
| +- org.springframework.boot:spring-boot-starter-json:jar:2.2.6.RELEASE:compile
| | \- com.fasterxml.jackson.core:jackson-databind:jar:2.10.3:compile
| +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.2.6.RELEASE:compile
| | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.33:compile
| | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.33:compile
| | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.33:compile
| +- org.springframework.boot:spring-boot-starter-validation:jar:2.2.6.RELEASE:compile
| | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
| | \- org.hibernate.validator:hibernate-validator:jar:6.0.18.Final:compile
| | +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile
| | \- com.fasterxml:classmate:jar:1.5.1:compile
| +- org.springframework:spring-web:jar:5.2.5.RELEASE:compile
| \- org.springframework:spring-webmvc:jar:5.2.5.RELEASE:compile
+- org.springframework.boot:spring-boot-starter-actuator:jar:2.2.6.RELEASE:compile
| +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.2.6.RELEASE:compile
| | \- org.springframework.boot:spring-boot-actuator:jar:2.2.6.RELEASE:compile
| \- io.micrometer:micrometer-core:jar:1.3.6:compile
| +- org.hdrhistogram:HdrHistogram:jar:2.1.11:compile
| \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
+- org.projectlombok:lombok:jar:1.18.12:compile
+- org.springframework.boot:spring-boot-configuration-processor:jar:2.2.6.RELEASE:compile
+- org.jetbrains:annotations:jar:16.0.2:compile
+- com.devskiller.friendly-id:friendly-id:jar:1.1.0:compile
+- com.microsoft.azure:azure-cosmosdb-spring-boot-starter:jar:2.2.3:compile
| \- com.microsoft.azure:azure-spring-boot:jar:2.2.3:compile
| +- com.azure:azure-security-keyvault-secrets:jar:4.1.0:compile
| | +- com.azure:azure-core:jar:1.2.0:compile
| | | +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.10.3:compile
| | | | +- org.codehaus.woodstox:stax2-api:jar:4.2:compile
| | | | \- com.fasterxml.woodstox:woodstox-core:jar:6.1.1:compile
| | | \- io.netty:netty-tcnative-boringssl-static:jar:2.0.30.Final:compile
| | \- com.azure:azure-core-http-netty:jar:1.2.0:compile
| | \- io.netty:netty-transport-native-unix-common:jar:4.1.48.Final:compile
| \- com.azure:azure-identity:jar:1.0.2:compile
| +- com.microsoft.azure:msal4j:jar:0.5.0-preview:compile
| | +- com.google.code.gson:gson:jar:2.8.6:compile
| | +- commons-codec:commons-codec:jar:1.13:compile
| | \- org.apache.httpcomponents:httpclient:jar:4.5.12:compile
| | \- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
| +- com.nimbusds:oauth2-oidc-sdk:jar:6.14:compile
| | +- com.sun.mail:javax.mail:jar:1.6.1:compile
| | | \- javax.activation:activation:jar:1.1:compile
| | +- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile
| | +- com.nimbusds:lang-tag:jar:1.4.4:compile (version selected from constraint [1.4.3,))
| | \- com.nimbusds:nimbus-jose-jwt:jar:8.11:compile (version selected from constraint [6.0.1,))
| +- org.nanohttpd:nanohttpd:jar:2.3.1:compile
| \- net.java.dev.jna:jna-platform:jar:4.5.2:compile
| \- net.java.dev.jna:jna:jar:4.5.2:compile
+- com.microsoft.azure:spring-data-cosmosdb:jar:2.2.3.FIX1:compile
| +- org.springframework:spring-core:jar:5.2.5.RELEASE:compile
| | \- org.springframework:spring-jcl:jar:5.2.5.RELEASE:compile
| +- org.springframework:spring-beans:jar:5.2.5.RELEASE:compile
| +- org.springframework:spring-context:jar:5.2.5.RELEASE:compile
| +- org.springframework:spring-tx:jar:5.2.5.RELEASE:compile
| +- org.springframework.data:spring-data-commons:jar:2.2.6.RELEASE:compile
| +- org.springframework:spring-expression:jar:5.2.5.RELEASE:compile
| +- com.microsoft.azure:azure-cosmos:jar:3.7.1:compile <-------- HERE
| | +- com.fasterxml.uuid:java-uuid-generator:jar:3.2.0:compile
| | +- commons-io:commons-io:jar:2.5:compile
| | +- commons-validator:commons-validator:jar:1.6:compile
| | | +- commons-digester:commons-digester:jar:1.8.1:compile
| | | +- commons-logging:commons-logging:jar:1.2:compile
| | | \- commons-collections:commons-collections:jar:3.2.2:compile
| | +- io.projectreactor:reactor-core:jar:3.3.4.RELEASE:compile
| | | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
| | +- io.netty:netty-codec-http:jar:4.1.48.Final:compile
| | | +- io.netty:netty-common:jar:4.1.48.Final:compile
| | | +- io.netty:netty-buffer:jar:4.1.48.Final:compile
| | | +- io.netty:netty-transport:jar:4.1.48.Final:compile
| | | \- io.netty:netty-codec:jar:4.1.48.Final:compile
| | +- io.netty:netty-handler:jar:4.1.48.Final:compile
| | | \- io.netty:netty-resolver:jar:4.1.48.Final:compile
| | +- org.apache.commons:commons-lang3:jar:3.9:compile
| | +- org.apache.commons:commons-collections4:jar:4.2:compile
| | +- org.apache.commons:commons-text:jar:1.6:compile
| | +- com.google.guava:guava:jar:28.2-android:compile
| | | +- com.google.guava:failureaccess:jar:1.0.1:compile
| | | +- com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
| | | +- com.google.code.findbugs:jsr305:jar:3.0.2:compile
| | | +- org.checkerframework:checker-compat-qual:jar:2.5.5:compile
| | | +- com.google.errorprone:error_prone_annotations:jar:2.3.4:compile
| | | \- com.google.j2objc:j2objc-annotations:jar:1.3:compile
| | +- io.dropwizard.metrics:metrics-core:jar:4.1.5:compile
| | +- io.reactivex.rxjava2:rxjava:jar:2.2.19:compile
| | \- io.projectreactor.netty:reactor-netty:jar:0.9.6.RELEASE:compile
| | +- io.netty:netty-codec-http2:jar:4.1.48.Final:compile
| | +- io.netty:netty-handler-proxy:jar:4.1.48.Final:compile
| | | \- io.netty:netty-codec-socks:jar:4.1.48.Final:compile
| | \- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.48.Final:compile
| +- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.3:compile
| | \- com.fasterxml.jackson.core:jackson-core:jar:2.10.3:compile
| +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.3:compile
| +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.3:compile
| | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.3:compile
| +- org.json:json:jar:20140107:compile
| \- org.javatuples:javatuples:jar:1.2:compile
+- io.github.resilience4j:resilience4j-spring-cloud2:jar:1.3.1:compile
| +- io.vavr:vavr:jar:0.10.2:compile
| | \- io.vavr:vavr-match:jar:0.10.2:compile
| +- org.slf4j:slf4j-api:jar:1.7.30:compile
| +- io.github.resilience4j:resilience4j-spring-cloud-common:jar:1.3.1:compile
| | \- io.github.resilience4j:resilience4j-spring:jar:1.3.1:compile
| | +- io.github.resilience4j:resilience4j-annotations:jar:1.3.1:compile
| | +- io.github.resilience4j:resilience4j-consumer:jar:1.3.1:compile
| | | \- io.github.resilience4j:resilience4j-circularbuffer:jar:1.3.1:compile
| | \- io.github.resilience4j:resilience4j-framework-common:jar:1.3.1:compile
| | +- io.github.resilience4j:resilience4j-ratelimiter:jar:1.3.1:compile
| | +- io.github.resilience4j:resilience4j-retry:jar:1.3.1:compile
| | \- io.github.resilience4j:resilience4j-bulkhead:jar:1.3.1:compile
| \- io.github.resilience4j:resilience4j-spring-boot2:jar:1.3.1:compile
| \- io.github.resilience4j:resilience4j-spring-boot-common:jar:1.3.1:compile
+- io.github.resilience4j:resilience4j-circuitbreaker:jar:1.3.1:compile
| \- io.github.resilience4j:resilience4j-core:jar:1.3.1:compile
+- io.github.resilience4j:resilience4j-timelimiter:jar:1.3.1:compile
+- io.github.resilience4j:resilience4j-micrometer:jar:1.3.1:compile
+- io.github.resilience4j:resilience4j-reactor:jar:1.3.1:compile
+- org.springframework.boot:spring-boot-starter-aop:jar:2.2.6.RELEASE:compile
| +- org.springframework:spring-aop:jar:5.2.5.RELEASE:compile
| \- org.aspectj:aspectjweaver:jar:1.9.5:compile
+- de.codecentric:chaos-monkey-spring-boot:jar:2.2.0:compile
| +- org.springframework:spring-aspects:jar:5.2.5.RELEASE:compile
| \- org.springframework:spring-instrument:jar:5.2.5.RELEASE:compile
+- com.microsoft.azure:applicationinsights-logging-logback:jar:2.5.1:compile
| +- com.microsoft.azure:applicationinsights-core:jar:2.5.1:compile
| +- ch.qos.logback:logback-classic:jar:1.2.3:compile
| \- ch.qos.logback:logback-core:jar:1.2.3:compile
+- com.microsoft.azure:applicationinsights-spring-boot-starter:jar:2.5.1:compile
| \- com.microsoft.azure:applicationinsights-web:jar:2.5.1:compile
\- org.springframework.boot:spring-boot-starter-test:jar:2.2.6.RELEASE:test
+- org.springframework.boot:spring-boot-test:jar:2.2.6.RELEASE:test
+- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.2.6.RELEASE:test
+- com.jayway.jsonpath:json-path:jar:2.4.0:test
| \- net.minidev:json-smart:jar:2.3:compile
| \- net.minidev:accessors-smart:jar:1.2:compile
| \- org.ow2.asm:asm:jar:5.0.4:compile
+- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
| \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
+- org.junit.jupiter:junit-jupiter:jar:5.5.2:test
| +- org.junit.jupiter:junit-jupiter-api:jar:5.5.2:test
| | +- org.apiguardian:apiguardian-api:jar:1.1.0:test
| | +- org.opentest4j:opentest4j:jar:1.2.0:test
| | \- org.junit.platform:junit-platform-commons:jar:1.5.2:test
| +- org.junit.jupiter:junit-jupiter-params:jar:5.5.2:test
| \- org.junit.jupiter:junit-jupiter-engine:jar:5.5.2:test
| \- org.junit.platform:junit-platform-engine:jar:1.5.2:test
+- org.mockito:mockito-junit-jupiter:jar:3.1.0:test
+- org.assertj:assertj-core:jar:3.13.2:test
+- org.hamcrest:hamcrest:jar:2.1:test
+- org.mockito:mockito-core:jar:3.1.0:test
| +- net.bytebuddy:byte-buddy:jar:1.10.8:test
| +- net.bytebuddy:byte-buddy-agent:jar:1.10.8:test
| \- org.objenesis:objenesis:jar:2.6:test
+- org.skyscreamer:jsonassert:jar:1.5.0:test
| \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
+- org.springframework:spring-test:jar:5.2.5.RELEASE:test
\- org.xmlunit:xmlunit-core:jar:2.6.4:test
My CosmosDB beans:
#Repository
public interface RawMessageRepository
extends CosmosRepository<RawMessage, String> {
}
#Service
public class MessageAccess {
private final RawMessageRepository repository;
#Autowired
public MessageAccessImpl(RawMessageRepository repository) {
this.repository = repository;
}
public RawMessage save(#NotNull Message message) {
return repository.save(RawMessage.from(message));
}
}
#Slf4j
#Service
public class CosmosSink implements Sink {
private final MessageAccess access;
#Autowired
public CosmosSink(MessageAccess access) {
this.access = access;
}
#Override
public List<Message> sink(Message message) {
access.save(message);
LOG.info("SAVED MESSAGE: '{}'", message);
return Collections.singletonList(message);
}
}
Once I remove these classes from the ApplicationContext
the context loads (the application obviously fails because
the needed classes are not in the context)
2020-03-28 13:24:20.633 INFO 26138 --- [ main] o.s.s.concurrent.ThreadPoolTaskExecutor : Initializing ExecutorService 'applicationTaskExecutor'
2020-03-28 13:24:21.235 INFO 26138 --- [ main] c.a.d.c.internal.RxDocumentClientImpl : Initializing DocumentClient with serviceEndpoint [https://***.documents.azure.com:443/], connectionPolicy [ConnectionPolicy{requestTimeoutInMillis=60000, mediaRequestTimeoutInMillis=300000, connectionMode=DIRECT, maxPoolSize=1000, idleConnectionTimeoutInMillis=60000, userAgentSuffix=';spring-data/2.2.3;', retryOptions=RetryOptions{maxRetryAttemptsOnThrottledRequests=9, maxRetryWaitTimeInSeconds=30}, enableEndpointDiscovery=true, preferredLocations=null, usingMultipleWriteLocations=false, inetSocketProxyAddress=null}], consistencyLevel [null], directModeProtocol [Tcp]
2020-03-28 13:24:21.350 INFO 26138 --- [ parallel-1] c.a.d.c.internal.RxDocumentClientImpl : Getting database account endpoint from https://***.documents.azure.com:443/
2020-03-28 13:24:23.365 INFO 26138 --- [ main] c.a.d.c.internal.RxDocumentClientImpl : Initializing DocumentClient with serviceEndpoint [https://***.documents.azure.com:443/], connectionPolicy [ConnectionPolicy{requestTimeoutInMillis=60000, mediaRequestTimeoutInMillis=300000, connectionMode=DIRECT, maxPoolSize=1000, idleConnectionTimeoutInMillis=60000, userAgentSuffix=';spring-data/2.2.3;;spring-data/2.2.3;', retryOptions=RetryOptions{maxRetryAttemptsOnThrottledRequests=9, maxRetryWaitTimeInSeconds=30}, enableEndpointDiscovery=true, preferredLocations=null, usingMultipleWriteLocations=false, inetSocketProxyAddress=null}], consistencyLevel [null], directModeProtocol [Tcp]
2020-03-28 13:24:23.367 INFO 26138 --- [ parallel-2] c.a.d.c.internal.RxDocumentClientImpl : Getting database account endpoint from https://***.documents.azure.com:443/
2020-03-28 13:24:24.541 INFO 26138 --- [ main] c.a.d.c.internal.RxDocumentClientImpl : Initializing DocumentClient with serviceEndpoint [https://***.documents.azure.com:443/], connectionPolicy [ConnectionPolicy{requestTimeoutInMillis=60000, mediaRequestTimeoutInMillis=300000, connectionMode=DIRECT, maxPoolSize=1000, idleConnectionTimeoutInMillis=60000, userAgentSuffix=';spring-data/2.2.3;;spring-data/2.2.3;;spring-data/2.2.3;', retryOptions=RetryOptions{maxRetryAttemptsOnThrottledRequests=9, maxRetryWaitTimeInSeconds=30}, enableEndpointDiscovery=true, preferredLocations=null, usingMultipleWriteLocations=false, inetSocketProxyAddress=null}], consistencyLevel [null], directModeProtocol [Tcp]
2020-03-28 13:24:24.543 INFO 26138 --- [ parallel-3] c.a.d.c.internal.RxDocumentClientImpl : Getting database account endpoint from https://***.documents.azure.com:443/
2020-03-28 13:24:25.636 INFO 26138 --- [ main] c.a.d.c.internal.RxDocumentClientImpl : Initializing DocumentClient with serviceEndpoint [https://***.documents.azure.com:443/], connectionPolicy [ConnectionPolicy{requestTimeoutInMillis=60000, mediaRequestTimeoutInMillis=300000, connectionMode=DIRECT, maxPoolSize=1000, idleConnectionTimeoutInMillis=60000, userAgentSuffix=';spring-data/2.2.3;;spring-data/2.2.3;;spring-data/2.2.3;;spring-data/2.2.3;', retryOptions=RetryOptions{maxRetryAttemptsOnThrottledRequests=9, maxRetryWaitTimeInSeconds=30}, enableEndpointDiscovery=true, preferredLocations=null, usingMultipleWriteLocations=false, inetSocketProxyAddress=null}], consistencyLevel [null], directModeProtocol [Tcp]
2020-03-28 13:24:25.638 INFO 26138 --- [ parallel-4] c.a.d.c.internal.RxDocumentClientImpl : Getting database account endpoint from https://***.documents.azure.com:443/
2020-03-28 13:24:28.633 INFO 26138 --- [ main] .r.EventBasedConfigurationChangeDetector : Added new Kubernetes watch: config-maps-watch
2020-03-28 13:24:28.634 INFO 26138 --- [ main] .r.EventBasedConfigurationChangeDetector : Kubernetes event-based configuration change detector activated
Any idea where is the conflict coming from and how to resolve it? Please let me
know if any more information is needed.
I did a some googling and little research. I foud following:
The missing class com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdConstants$RntbdContextRequestHeader is a part of azure-cosmosdb-direct, pls see pom.xml, class is located here.
azure-cosmosdb-direct is missing from your dependency list. I assume it's incomplete or hidden for some reason(?)
Looking at exception stacktrace it's clear that at com.azure.data.cosmos.internal.directconnectivity.rntbd.RntbdContextRequest$Headers.<init>(RntbdContextRequest.java:126) is a place where exceptiom occurs. So that means RntbdContextRequest class actually existsts (it's also is a part of azure-cosmosdb-direct). Therefore you have needed dependency, but it probably has wrong version.
I propose you to look a bit deeper into how azure-cosmosdb-direct dependency is injected in your project and fix its version. Just try to declare it directly in your pom.xml with the latest version.
Hope I helped you.
I have a problem with dependencies in my project running on WildFly.
In pom.xml I have following definition of Jackson library dependency:
<dependencyManagement>
// ....
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.10.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>2.10.2</version>
</dependency>
// ...
</dependencyManagement>
But on runtime is used version 2.1.4. I see it also in IntelliJ, which is informing me that this version is "ommited for conflict with 2.1.4"
Version 2.1.4 is included in WildFly, but I want to use version 2.10.2. How to force usage of this version library?
Update:
My dependency tree:
--- maven-dependency-plugin:2.8:tree (default-cli) # myapp-ear ---
pl.net.me.myapp:myapp-ear:ear:1.0-SNAPSHOT
+- pl.net.me.myapp:myapp-ejb:ejb:1.0-SNAPSHOT:compile
| +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
| | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
| +- org.apache.httpcomponents:httpclient:jar:4.5:compile
| | +- org.apache.httpcomponents:httpcore:jar:4.4.1:compile
| | \- commons-logging:commons-logging:jar:1.2:compile
| +- commons-fileupload:commons-fileupload:jar:1.2.2:compile
| +- commons-lang:commons-lang:jar:2.6:compile
| +- commons-codec:commons-codec:jar:1.4:compile
| +- org.jasig.cas.client:cas-client-core:jar:3.2.1:compile
| +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.2.Final:compile
| +- org.drools:drools-core:jar:5.4.0.Final:compile
| | +- org.mvel:mvel2:jar:2.1.0.drools16:compile
| | \- org.drools:knowledge-api:jar:5.4.0.Final:compile
| +- net.sf.jasperreports:jasperreports:jar:6.0.3:compile
| | +- commons-beanutils:commons-beanutils:jar:1.8.3:compile
| | +- commons-collections:commons-collections:jar:3.2.1:compile
| | +- commons-digester:commons-digester:jar:2.1:compile
| | +- com.itextpdf:itextpdf:jar:5.5.0:compile
| | +- com.itextpdf:itext-pdfa:jar:5.5.0:compile
| | +- jfree:jcommon:jar:1.0.15:compile
| | +- jfree:jfreechart:jar:1.0.12:compile
| | +- xml-apis:xml-apis:jar:1.3.02:compile
| | +- org.eclipse.jdt.core.compiler:ecj:jar:4.3.1:compile
| | +- org.codehaus.castor:castor-xml:jar:1.3.3:compile
| | | +- org.codehaus.castor:castor-core:jar:1.3.3:compile
| | | +- javax.inject:javax.inject:jar:1:compile
| | | +- stax:stax:jar:1.2.0:compile
| | | | \- stax:stax-api:jar:1.0.1:compile
| | | +- javax.xml.stream:stax-api:jar:1.0-2:compile
| | | \- org.springframework:spring-context:jar:4.1.4.RELEASE:compile
| | | +- org.springframework:spring-aop:jar:4.1.4.RELEASE:compile
| | | | \- aopalliance:aopalliance:jar:1.0:compile
| | | +- org.springframework:spring-beans:jar:4.1.4.RELEASE:compile
| | | +- org.springframework:spring-core:jar:4.1.4.RELEASE:compile
| | | \- org.springframework:spring-expression:jar:4.1.4.RELEASE:compile
| | +- com.fasterxml.jackson.core:jackson-core:jar:2.1.4:compile
| | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.1.4:compile
| | +- org.apache.lucene:lucene-core:jar:4.5.1:compile
| | +- org.apache.lucene:lucene-analyzers-common:jar:4.5.1:compile
| | +- org.apache.lucene:lucene-queryparser:jar:4.5.1:compile
| | | +- org.apache.lucene:lucene-queries:jar:4.5.1:compile
| | | \- org.apache.lucene:lucene-sandbox:jar:4.5.1:compile
| | | \- jakarta-regexp:jakarta-regexp:jar:1.4:compile
| | \- org.olap4j:olap4j:jar:0.9.7.309-JS-3:compile
| +- org.codehaus.groovy:groovy-all:jar:2.4.0:compile
| +- org.apache.sanselan:sanselan:jar:0.97-incubator:compile
| +- org.jbpm:jbpm-bpmn2:jar:5.4.0.Final:compile
| | +- org.jbpm:jbpm-flow-builder:jar:5.4.0.Final:compile
| | | \- org.jbpm:jbpm-flow:jar:5.4.0.Final:compile
| | \- org.slf4j:slf4j-api:jar:1.6.4:compile
| +- org.drools:drools-compiler:jar:5.4.0.Final:compile
| | +- org.antlr:antlr-runtime:jar:3.3:compile
| | +- org.antlr:antlr:jar:3.3:compile
| | \- org.antlr:stringtemplate:jar:3.2.1:compile
| +- org.drools:drools-clips:jar:5.4.0.Final:compile
| +- org.drools:drools-decisiontables:jar:5.4.0.Final:compile
| | \- net.sourceforge.jexcelapi:jxl:jar:2.6.10:compile
| +- org.drools:drools-jsr94:jar:5.4.0.Final:compile
| | \- jsr94:jsr94:jar:1.1:compile
| +- org.drools:drools-persistence-jpa:jar:5.4.0.Final:compile
| | +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
| | +- com.google.protobuf:protobuf-java:jar:2.4.1:compile
| | +- dom4j:dom4j:jar:1.6.1:compile
| | +- org.javassist:javassist:jar:3.14.0-GA:compile
| | \- javax.transaction:jta:jar:1.1:compile
| +- org.drools:drools-templates:jar:5.4.0.Final:compile
| +- org.drools:drools-verifier:jar:5.4.0.Final:compile
| | +- com.google.guava:guava:jar:r06:compile
| | +- com.thoughtworks.xstream:xstream:jar:1.4.1:compile
| | | +- xmlpull:xmlpull:jar:1.1.3.1:compile
| | | \- xpp3:xpp3_min:jar:1.1.4c:compile
| | \- com.lowagie:itext:jar:2.1.2:compile
| | +- bouncycastle:bcmail-jdk14:jar:138:compile
| | \- bouncycastle:bcprov-jdk14:jar:138:compile
| +- org.drools:knowledge-internal-api:jar:5.4.0.Final:compile
| +- commons-io:commons-io:jar:2.1:compile
| +- pl.net.me.myapp:mka-commons-jar:jar:1.0-SNAPSHOT:compile
| | +- log4j:log4j:jar:1.2.17:compile
| | +- com.google.zxing:core:jar:3.1.0:compile
| | +- com.google.zxing:javase:jar:3.1.0:compile
| | \- org.projectlombok:lombok:jar:1.18.10:compile
| +- pl.net.me.myapp:myapp-cdm:jar:1.0-SNAPSHOT:compile
| +- pl.net.me.myapp:myapp-database:jar:1.0-SNAPSHOT:compile
| +- net.sf.jasperreports:jasperreports-fonts:jar:6.0.0:compile
| +- com.fasterxml.jackson.core:jackson-databind:jar:2.10.2:compile
| \- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.2:import
+- pl.net.me.myapp:myapp-web:war:1.0-SNAPSHOT:compile
+- pl.net.me.myapp:iapp-web:war:1.0-SNAPSHOT:compile
+- pl.net.me.myapp:sop-web:war:1.0-SNAPSHOT:compile
\- pl.net.me.myapp:my-maps:war:1.0-SNAPSHOT:compile
I found a solution. On WildFly 18.0.1 is everything working fine, because it contains version 2.9.10.1 of Jackson library. Problem is on WildFly 8.2.1, because it contains version 2.1.4. Version of Jackson library which is used on runtime is version provided by WildFly.
Referring to this question:
Wildfly 9 - How do I exclude Jackson
I added file jboss-deployment-structure.xml to my META-INF directory with following contant:
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="com.fasterxml.jackson.core.jackson-core" />
<module name="com.fasterxml.jackson.core.jackson-databind" />
<module name="com.fasterxml.jackson.core.jackson-annotations" />
<module name="com.fasterxml.jackson.jaxrs.jackson-jaxrs-json-provider" />
<module name="org.jboss.resteasy.resteasy-jackson2-provider" />
</exclusions>
</deployment>
</jboss-deployment-structure>
Unfortunatly it works only on WildFly 18.0.1, WildFly 8.2.1 doesn't start because of other dependency problems, so the most reasonable solution in this situation is to upgrade WildFly or remove jackson-datatype-jsr310 from pom.xml
I upgraded dropwizard to the latest 1.2.4 from 1.0.2. Now I am seeing the below exception in my logs
WARN [2018-02-28 11:34:50] o.e.j.u.t.QueuedThreadPool:[?:?:?] - [dw-99] -
java.lang.NoSuchMethodError: org.eclipse.jetty.util.thread.ExecutionStrategy.execute()V
at org.eclipse.jetty.io.ManagedSelector.run(ManagedSelector.java:147)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:708)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:626)
at java.lang.Thread.run(Thread.java:748)
mvn dependency:tree output is below
com.van:restapilayer:jar:0.001-SNAPSHOT
+- io.dropwizard:dropwizard-jackson:jar:1.2.4:compile
| +- io.dropwizard:dropwizard-util:jar:1.2.4:compile
| +- com.fasterxml.jackson.core:jackson-core:jar:2.9.4:compile
| +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
| +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.4:compile
| +- com.fasterxml.jackson.datatype:jackson-datatype-guava:jar:2.9.4:compile
| +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.4:compile
| +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.4:compile
| +- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.4:compile
| +- com.fasterxml.jackson.module:jackson-module-afterburner:jar:2.9.4:compile
| \- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.9.4:compile
+- io.dropwizard.modules:dropwizard-elasticsearch:jar:1.2.0-1:compile
| \- org.elasticsearch:elasticsearch:jar:2.4.6:compile
| +- org.apache.lucene:lucene-core:jar:5.5.4:compile
| +- org.apache.lucene:lucene-backward-codecs:jar:5.5.4:compile
| +- org.apache.lucene:lucene-analyzers-common:jar:5.5.4:compile
| +- org.apache.lucene:lucene-queries:jar:5.5.4:compile
| +- org.apache.lucene:lucene-memory:jar:5.5.4:compile
| +- org.apache.lucene:lucene-highlighter:jar:5.5.4:compile
| +- org.apache.lucene:lucene-queryparser:jar:5.5.4:compile
| | \- org.apache.lucene:lucene-sandbox:jar:5.5.4:compile
| +- org.apache.lucene:lucene-suggest:jar:5.5.4:compile
| | \- org.apache.lucene:lucene-misc:jar:5.5.4:compile
| +- org.apache.lucene:lucene-join:jar:5.5.4:compile
| | \- org.apache.lucene:lucene-grouping:jar:5.5.4:compile
| +- org.apache.lucene:lucene-spatial:jar:5.5.4:compile
| | +- org.apache.lucene:lucene-spatial3d:jar:5.5.4:compile
| | \- com.spatial4j:spatial4j:jar:0.5:compile
| +- org.elasticsearch:securesm:jar:1.0:compile
| +- com.carrotsearch:hppc:jar:0.7.1:compile
| +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.8.1:compile
| +- com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:jar:2.8.1:compile
| +- io.netty:netty:jar:3.10.6.Final:compile
| +- com.ning:compress-lzf:jar:1.0.2:compile
| +- com.tdunning:t-digest:jar:3.0:compile
| +- org.hdrhistogram:HdrHistogram:jar:2.1.6:compile
| \- com.twitter:jsr166e:jar:1.1.0:compile
+- com.van:logback-utils:jar:0.001-SNAPSHOT:compile
| +- ch.qos.logback:logback-classic:jar:1.2.3:compile
| | \- ch.qos.logback:logback-core:jar:1.2.3:compile
| +- com.van:common:jar:0.001-SNAPSHOT:compile
| | +- com.koloboke:koloboke-api-jdk8:jar:1.0.0:compile
| | +- com.koloboke:koloboke-impl-jdk8:jar:1.0.0:runtime
| | | \- com.koloboke:koloboke-impl-common-jdk8:jar:1.0.0:runtime
| | +- it.unimi.dsi:fastutil:jar:8.1.0:compile
| | +- com.amazonaws:aws-java-sdk:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-pinpoint:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-xray:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-opsworkscm:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-support:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-simpledb:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-servicecatalog:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-servermigration:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-simpleworkflow:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-storagegateway:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-route53:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-s3:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-importexport:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-sts:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-sqs:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-rds:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-redshift:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-elasticbeanstalk:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-glacier:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-iam:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-datapipeline:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-elasticloadbalancing:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-elasticloadbalancingv2:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-emr:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-elasticache:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-elastictranscoder:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-ec2:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-dynamodb:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-sns:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-budgets:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-cloudtrail:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-cloudwatch:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-logs:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-events:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-cognitoidentity:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-cognitosync:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-directconnect:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-cloudformation:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-cloudfront:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-kinesis:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-opsworks:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-autoscaling:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-cloudsearch:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-cloudwatchmetrics:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-codedeploy:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-codepipeline:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-kms:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-config:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-lambda:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-ecs:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-ecr:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-cloudhsm:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-ssm:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-workspaces:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-machinelearning:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-directory:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-efs:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-codecommit:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-devicefarm:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-elasticsearch:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-waf:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-marketplacecommerceanalytics:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-inspector:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-iot:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-api-gateway:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-acm:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-gamelift:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-dms:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-marketplacemeteringservice:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-cognitoidp:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-discovery:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-applicationautoscaling:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-snowball:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-rekognition:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-polly:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-lightsail:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-stepfunctions:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-health:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-codebuild:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-appstream:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-shield:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-batch:jar:1.11.77:compile
| | | +- com.amazonaws:aws-java-sdk-models:jar:1.11.77:compile
| | | \- com.amazonaws:aws-java-sdk-swf-libraries:jar:1.11.22:compile
| | +- com.van:utility:jar:0.001-SNAPSHOT:compile
| | +- com.ning:async-http-client:jar:1.9.38:compile
| | +- com.esotericsoftware:kryo-shaded:jar:3.0.0:compile
| | | \- com.esotericsoftware:minlog:jar:1.3.0:compile
| | +- com.codahale.metrics:metrics-graphite:jar:3.0.1:compile
| | +- com.librato.metrics:metrics-librato:jar:4.1.2.4:compile
| | | \- com.librato.metrics:librato-java:jar:1.0.13:compile
| | +- org.mockito:mockito-all:jar:1.10.19:compile
| | +- org.powermock:powermock-module-junit4:jar:1.6.4:compile
| | | \- org.powermock:powermock-module-junit4-common:jar:1.6.4:compile
| | | +- org.powermock:powermock-core:jar:1.6.4:compile
| | | \- org.powermock:powermock-reflect:jar:1.6.4:compile
| | +- org.powermock:powermock-api-mockito:jar:1.6.4:compile
| | | +- org.mockito:mockito-core:jar:1.10.19:compile
| | | \- org.powermock:powermock-api-support:jar:1.6.4:compile
| | +- com.vmw.vli:licensecheck:jar:1.4-RELEASE:compile
| | +- org.bouncycastle:bcprov-jdk15on:jar:1.57:compile
| | +- org.bouncycastle:bcpkix-jdk15on:jar:1.57:compile
| | +- org.apache.hadoop:hadoop-common:jar:2.6.0-cdh5.7.1:compile
| | | +- org.apache.commons:commons-math3:jar:3.1.1:compile
| | | +- xmlenc:xmlenc:jar:0.52:compile
| | | +- commons-httpclient:commons-httpclient:jar:3.1:compile
| | | +- tomcat:jasper-compiler:jar:5.5.23:compile
| | | +- tomcat:jasper-runtime:jar:5.5.23:compile
| | | +- javax.servlet.jsp:jsp-api:jar:2.1:compile
| | | +- commons-el:commons-el:jar:1.0:compile
| | | +- net.java.dev.jets3t:jets3t:jar:0.9.0:compile
| | | | \- com.jamesmurty.utils:java-xmlbuilder:jar:0.4:compile
| | | +- org.apache.avro:avro:jar:1.7.6-cdh5.7.1:compile
| | | +- org.apache.curator:curator-client:jar:2.7.1:compile
| | | +- org.apache.curator:curator-recipes:jar:2.7.1:compile
| | | +- org.apache.htrace:htrace-core4:jar:4.0.1-incubating:compile
| | | \- org.apache.commons:commons-compress:jar:1.4.1:compile
| | | \- org.tukaani:xz:jar:1.0:compile
| | +- org.apache.hadoop:hadoop-client:jar:2.6.0-cdh5.7.1:compile
| | | +- org.apache.hadoop:hadoop-hdfs:jar:2.6.0-cdh5.7.1:compile
| | | | +- xerces:xercesImpl:jar:2.9.1:compile
| | | | \- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile
| | | +- org.apache.hadoop:hadoop-mapreduce-client-app:jar:2.6.0-cdh5.7.1:compile
| | | | +- org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.6.0-cdh5.7.1:compile
| | | | | +- org.apache.hadoop:hadoop-yarn-client:jar:2.6.0-cdh5.7.1:compile
| | | | | \- org.apache.hadoop:hadoop-yarn-server-common:jar:2.6.0-cdh5.7.1:compile
| | | | \- org.apache.hadoop:hadoop-mapreduce-client-shuffle:jar:2.6.0-cdh5.7.1:compile
| | | +- org.apache.hadoop:hadoop-yarn-api:jar:2.6.0-cdh5.7.1:compile
| | | +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.6.0-cdh5.7.1:compile
| | | | \- org.apache.hadoop:hadoop-yarn-common:jar:2.6.0-cdh5.7.1:compile
| | | | +- javax.xml.bind:jaxb-api:jar:2.2.2:compile
| | | | | \- javax.xml.stream:stax-api:jar:1.0-2:compile
| | | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.8:compile
| | | | \- org.codehaus.jackson:jackson-xc:jar:1.8.8:compile
| | | +- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:2.6.0-cdh5.7.1:compile
| | | \- org.apache.hadoop:hadoop-aws:jar:2.6.0-cdh5.7.1:compile
| | +- org.coursera:metrics-datadog:jar:1.1.13:compile
| | | +- org.apache.httpcomponents:fluent-hc:jar:4.3.6:compile
| | | \- com.datadoghq:java-dogstatsd-client:jar:2.3:compile
| | \- com.van:reg-common:jar:0.001-SNAPSHOT:compile
| \- org.slf4j:log4j-over-slf4j:jar:1.7.25:compile
+- io.dropwizard:dropwizard-validation:jar:1.2.4:compile
| \- org.glassfish:javax.el:jar:3.0.0:compile
+- io.dropwizard:dropwizard-core:jar:1.2.4:compile
| +- io.dropwizard:dropwizard-configuration:jar:1.2.4:compile
| +- io.dropwizard:dropwizard-logging:jar:1.2.4:compile
| | +- io.dropwizard.metrics:metrics-logback:jar:3.2.5:compile
| | +- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
| | +- org.slf4j:jcl-over-slf4j:jar:1.7.25:compile
| | \- org.eclipse.jetty:jetty-util:jar:9.4.8.v20171121:compile
| +- io.dropwizard:dropwizard-metrics:jar:1.2.4:compile
| +- io.dropwizard:dropwizard-jersey:jar:1.2.4:compile
| | +- org.glassfish.jersey.core:jersey-server:jar:2.25.1:compile
| | | \- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.25.1:compile
| | +- org.glassfish.jersey.ext:jersey-metainf-services:jar:2.25.1:compile
| | +- org.glassfish.jersey.ext:jersey-bean-validation:jar:2.25.1:compile
| | +- io.dropwizard.metrics:metrics-jersey2:jar:3.2.5:compile
| | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.9.4:compile
| | | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.9.4:compile
| | | \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.9.4:compile
| | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.25.1:compile
| | | \- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.25.1:compile
| | +- org.eclipse.jetty:jetty-server:jar:9.4.8.v20171121:compile
| | | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
| | | \- org.eclipse.jetty:jetty-io:jar:9.4.8.v20171121:compile
| | +- org.eclipse.jetty:jetty-webapp:jar:9.4.8.v20171121:compile
| | | \- org.eclipse.jetty:jetty-xml:jar:9.4.8.v20171121:compile
| | \- org.eclipse.jetty:jetty-continuation:jar:9.4.8.v20171121:compile
| +- io.dropwizard:dropwizard-servlets:jar:1.2.4:compile
| | \- io.dropwizard.metrics:metrics-annotation:jar:3.2.5:compile
| +- io.dropwizard:dropwizard-jetty:jar:1.2.4:compile
| | +- io.dropwizard.metrics:metrics-jetty9:jar:3.2.5:compile
| | +- org.eclipse.jetty:jetty-servlet:jar:9.4.8.v20171121:compile
| | | \- org.eclipse.jetty:jetty-security:jar:9.4.8.v20171121:compile
| | +- org.eclipse.jetty:jetty-servlets:jar:9.4.8.v20171121:compile
| | \- org.eclipse.jetty:jetty-http:jar:9.4.8.v20171121:compile
| +- io.dropwizard:dropwizard-lifecycle:jar:1.2.4:compile
| +- io.dropwizard.metrics:metrics-core:jar:3.2.5:compile
| +- io.dropwizard.metrics:metrics-jvm:jar:3.2.5:compile
| +- io.dropwizard.metrics:metrics-servlets:jar:3.2.5:compile
| | +- io.dropwizard.metrics:metrics-json:jar:3.2.5:compile
| | \- com.papertrail:profiler:jar:1.0.2:compile
| +- io.dropwizard.metrics:metrics-healthchecks:jar:3.2.5:compile
| +- io.dropwizard:dropwizard-request-logging:jar:1.2.4:compile
| | \- ch.qos.logback:logback-access:jar:1.2.3:compile
| +- net.sourceforge.argparse4j:argparse4j:jar:0.7.0:compile
| \- org.eclipse.jetty.toolchain.setuid:jetty-setuid-java:jar:1.0.3:compile
+- commons-fileupload:commons-fileupload:jar:1.3.3:compile
| \- commons-io:commons-io:jar:2.2:compile
+- io.dropwizard:dropwizard-testing:jar:1.2.4:test
| +- org.objenesis:objenesis:jar:2.6:compile
| \- org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-inmemory:jar:2.25.1:test
| \- org.glassfish.jersey.test-framework:jersey-test-framework-core:jar:2.25.1:test
+- org.apache.shiro:shiro-core:jar:1.3.0:compile
| \- commons-beanutils:commons-beanutils:jar:1.8.3:compile
+- io.swagger:swagger-core:jar:1.5.0:compile
| +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.4.2:compile
| +- io.swagger:swagger-models:jar:1.5.0:compile
| \- javax.validation:validation-api:jar:1.1.0.Final:compile
+- io.swagger:swagger-annotations:jar:1.5.0:compile
+- org.apache.shiro:shiro-web:jar:1.2.3:compile
+- org.apache.commons:commons-lang3:jar:3.4:compile
+- com.van:contracts:jar:0.001-SNAPSHOT:compile
| +- com.van:base-model:jar:0.001-SNAPSHOT:compile
| +- com.van:core-model:jar:0.001-SNAPSHOT:compile
| | +- org.reflections:reflections:jar:0.9.9-RC1:compile
| | | \- dom4j:dom4j:jar:1.6.1:compile
| | | \- xml-apis:xml-apis:jar:1.0.b2:compile
| | \- commons-validator:commons-validator:jar:1.6:compile
| +- com.van:vshield-model:jar:0.001-SNAPSHOT:compile
| +- com.van:nsx-model:jar:0.001-SNAPSHOT:compile
| +- com.van:cisco-model:jar:0.001-SNAPSHOT:compile
| +- com.van:vcenter-model:jar:0.001-SNAPSHOT:compile
| +- com.van:force10-model:jar:0.001-SNAPSHOT:compile
| +- com.van:flow-model:jar:0.001-SNAPSHOT:compile
| +- com.van:openstack-model:jar:0.001-SNAPSHOT:compile
| +- com.van:juniper-model:jar:0.001-SNAPSHOT:compile
| \- com.van:pan-model:jar:0.001-SNAPSHOT:compile
+- com.van:rpc-saasinterface:jar:0.001-SNAPSHOT:compile
+- com.van:storage-common:jar:0.001-SNAPSHOT:compile
| +- com.van:data-model:jar:0.001-SNAPSHOT:compile
| | \- org.ardverk:patricia-trie:jar:0.7-SNAPSHOT:compile
| +- net.spy:spymemcached:jar:2.11.4:compile
| +- org.xerial.snappy:snappy-java:jar:1.1.2.6:compile
| +- com.opencsv:opencsv:jar:3.7:compile
| \- org.codehaus.groovy:groovy-all:jar:2.4.4:compile
+- org.hibernate:hibernate-validator:jar:5.2.4.Final:compile
| +- org.jboss.logging:jboss-logging:jar:3.2.1.Final:compile
| \- com.fasterxml:classmate:jar:1.1.0:compile
+- com.van:kin-storage-metrics:jar:0.001-SNAPSHOT:compile
| +- org.apache.hbase:hbase-client:jar:1.2.0-cdh5.7.0:compile
| | +- org.apache.hbase:hbase-annotations:jar:1.2.0-cdh5.7.0:compile
| | +- org.apache.hbase:hbase-common:jar:1.2.0-cdh5.7.0:compile
| | | \- org.apache.hadoop:hadoop-core:jar:2.6.0-mr1-cdh5.7.0:compile
| | | +- org.mortbay.jetty:jetty:jar:6.1.26.cloudera.2:compile
| | | +- hsqldb:hsqldb:jar:1.8.0.10:compile
| | | \- org.eclipse.jdt:core:jar:3.1.1:compile
| | +- org.apache.hbase:hbase-protocol:jar:1.2.0-cdh5.7.0:compile
| | +- io.netty:netty-all:jar:4.0.23.Final:compile
| | +- org.apache.zookeeper:zookeeper:jar:3.4.5-cdh5.7.0:compile
| | | \- org.slf4j:slf4j-log4j12:jar:1.7.5:compile
| | +- org.apache.htrace:htrace-core:jar:3.2.0-incubating:compile
| | +- org.jruby.jcodings:jcodings:jar:1.0.8:compile
| | +- org.jruby.joni:joni:jar:2.1.2:compile
| | +- com.yammer.metrics:metrics-core:jar:2.2.0:compile
| | +- org.apache.hadoop:hadoop-annotations:jar:2.6.0-cdh5.7.0:compile
| | +- org.apache.hadoop:hadoop-auth:jar:2.6.0-cdh5.7.0:compile
| | | +- org.apache.directory.server:apacheds-kerberos-codec:jar:2.0.0-M15:compile
| | | | +- org.apache.directory.server:apacheds-i18n:jar:2.0.0-M15:compile
| | | | +- org.apache.directory.api:api-asn1-api:jar:1.0.0-M20:compile
| | | | \- org.apache.directory.api:api-util:jar:1.0.0-M20:compile
| | | \- org.apache.curator:curator-framework:jar:2.7.1:compile
| | \- com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:compile
| \- com.jcraft:jsch:jar:0.1.54:compile
+- org.apache.httpcomponents:httpcore:jar:4.4.5:compile
+- com.van:storage-config:jar:0.001-SNAPSHOT:compile
| +- org.postgresql:postgresql:jar:9.4.1208.jre7:compile
| +- commons-dbcp:commons-dbcp:jar:1.4:compile
| | \- commons-pool:commons-pool:jar:1.5.4:compile
| +- com.van:dedup:jar:0.001-SNAPSHOT:compile
| \- org.elasticsearch.module:lang-groovy:jar:2.3.1:compile
| \- org.codehaus.groovy:groovy:jar:indy:2.4.6:compile
+- com.van:programs:jar:0.001-SNAPSHOT:compile
| +- com.googlecode.javaewah:JavaEWAH:jar:1.1.3:compile
| +- com.van:model-utils:jar:0.001-SNAPSHOT:compile
| +- com.van:event-manager:jar:0.001-SNAPSHOT:compile
| +- com.van:storage-flowstore:jar:0.001-SNAPSHOT:compile
| +- com.van:aws-model:jar:0.001-SNAPSHOT:compile
| +- com.van:nsxt-model:jar:0.001-SNAPSHOT:compile
| +- com.van:firewall-model:jar:0.001-SNAPSHOT:compile
| +- com.van:genericdevice-model:jar:0.001-SNAPSHOT:compile
| +- com.van:mapper:jar:0.001-SNAPSHOT:compile
| +- ma.glasnost.orika:orika-core:jar:1.4.2:compile
| | +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
| | \- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.2_jdk5:compile
| +- org.javassist:javassist:jar:3.20.0-GA:compile
| +- com.van:denorm-model:jar:0.001-SNAPSHOT:compile
| +- com.van:hp-model:jar:0.001-SNAPSHOT:compile
| +- com.vmw.vapi:vapi-runtime:jar:2.7.0:compile
| \- com.vmw.nsx.sdk:nsx-language-bindings:jar:2.0.0:compile
+- com.van:denorm-programs:jar:0.001-SNAPSHOT:test
| \- com.van:impact:jar:0.001-SNAPSHOT:test
+- com.van:app:jar:0.001-SNAPSHOT:compile
| \- com.van:meta-model:jar:0.001-SNAPSHOT:compile
+- com.van:resourcemanager:jar:0.001-SNAPSHOT:compile
+- com.van:ui-model:jar:0.001-SNAPSHOT:compile
| +- commons-collections:commons-collections:jar:3.2.2:compile
| \- org.unitils:unitils-core:jar:3.3:compile
| \- ognl:ognl:jar:2.6.9:compile
+- com.van:query:jar:0.001-SNAPSHOT:compile
+- com.van.grid:sdmgraph:jar:0.001-SNAPSHOT:compile
| +- commons-configuration:commons-configuration:jar:1.6:compile
| | +- commons-digester:commons-digester:jar:1.8:compile
| | \- commons-beanutils:commons-beanutils-core:jar:1.8.0:compile
| +- commons-cli:commons-cli:jar:1.3.1:compile
| +- org.yaml:snakeyaml:jar:1.13:compile
| +- commons-logging:commons-logging:jar:1.2:compile
| \- commons-logging:commons-logging-api:jar:1.1:compile
+- com.van:programs:jar:tests:0.001-SNAPSHOT:test
+- com.van:snmp:jar:0.001-SNAPSHOT:compile
| +- org.snmp4j:snmp4j:jar:2.4.3:compile
| | \- log4j:log4j:jar:1.2.14:compile
| \- org.snmp4j:snmp4j-agent:jar:2.4.2:compile
+- com.van:components:jar:0.001-SNAPSHOT:compile
| +- javax.mail:javax.mail-api:jar:1.5.6:compile
| \- com.sun.mail:javax.mail:jar:1.5.6:compile
| \- javax.activation:activation:jar:1.1:compile
+- com.amazonaws:aws-java-sdk-ses:jar:1.11.77:compile
| +- com.amazonaws:aws-java-sdk-core:jar:1.11.77:compile
| | \- software.amazon.ion:ion-java:jar:1.0.1:compile
| \- com.amazonaws:jmespath-java:jar:1.11.77:compile
+- com.van:metrics-eval:jar:0.001-SNAPSHOT:compile
+- org.freemarker:freemarker:jar:2.3.20:compile
+- com.van:remote-control:jar:0.001-SNAPSHOT:compile
+- com.codahale.metrics:metrics-core:jar:3.0.1:compile
+- com.codahale.metrics:metrics-healthchecks:jar:3.0.1:compile
+- com.icegreen:greenmail:jar:1.5.5:test
+- com.van:support-request:jar:0.001-SNAPSHOT:compile
| \- com.van:storage-utils:jar:0.001-SNAPSHOT:compile
| \- com.github.fge:json-patch:jar:1.9:compile
| \- com.github.fge:jackson-coreutils:jar:1.6:compile
| \- com.github.fge:msg-simple:jar:1.1:compile
| \- com.github.fge:btf:jar:1.2:compile
+- com.van:dns-request:jar:0.001-SNAPSHOT:compile
+- com.van:service-health:jar:0.001-SNAPSHOT:compile
+- org.apache.httpcomponents:httpclient:jar:4.5.2:compile
+- joda-time:joda-time:jar:2.9.4:compile
+- commons-codec:commons-codec:jar:1.10:compile
+- org.slf4j:slf4j-api:jar:1.7.5:compile
+- org.jsoup:jsoup:jar:1.10.1:compile
+- com.van:syslog:jar:0.001-SNAPSHOT:compile
+- com.van.external-clients:csp:jar:0.001-SNAPSHOT:compile
| +- org.springframework:spring-web:jar:4.3.9.RELEASE:compile
| | \- org.springframework:spring-aop:jar:4.3.9.RELEASE:compile
| +- org.springframework:spring-beans:jar:4.3.9.RELEASE:compile
| +- org.springframework:spring-context:jar:4.3.9.RELEASE:compile
| | \- org.springframework:spring-expression:jar:4.3.9.RELEASE:compile
| \- com.auth0:java-jwt:jar:3.2.0:compile
+- com.van.external-clients:discovery:jar:0.001-SNAPSHOT:compile
+- dnsjava:dnsjava:jar:2.1.7:compile
+- com.univocity:univocity-parsers:jar:2.5.9:compile
+- org.springframework:spring-test:jar:4.3.9.RELEASE:test
| \- org.springframework:spring-core:jar:4.3.9.RELEASE:compile
+- org.codehaus.jettison:jettison:jar:1.3.8:compile
| \- stax:stax-api:jar:1.0.1:compile
+- com.jayway.jsonpath:json-path:jar:0.9.1:compile
| \- net.minidev:json-smart:jar:1.2:compile
+- com.google.guava:guava:jar:23.5-jre:compile
| +- org.checkerframework:checker-qual:jar:2.0.0:compile
| +- com.google.errorprone:error_prone_annotations:jar:2.0.18:compile
| +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
| \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile
+- com.google.code.findbugs:jsr305:jar:2.0.3:provided
+- org.glassfish.jersey.core:jersey-client:jar:2.23.2:compile
| +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
| +- org.glassfish.jersey.core:jersey-common:jar:2.23.2:compile
| | +- javax.annotation:javax.annotation-api:jar:1.2:compile
| | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.23.2:compile
| | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
| +- org.glassfish.hk2:hk2-api:jar:2.5.0-b05:compile
| | +- org.glassfish.hk2:hk2-utils:jar:2.5.0-b05:compile
| | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.5.0-b05:compile
| +- org.glassfish.hk2.external:javax.inject:jar:2.5.0-b05:compile
| \- org.glassfish.hk2:hk2-locator:jar:2.5.0-b05:compile
+- commons-net:commons-net:jar:3.1:compile
+- commons-lang:commons-lang:jar:2.6:compile
+- com.google.code.gson:gson:jar:2.2.4:compile
+- org.apache.commons:commons-jexl:jar:2.1.1:compile
+- com.google.inject:guice:jar:3.0:compile
+- com.google.protobuf:protobuf-java:jar:2.5.0:compile
+- com.googlecode.protobuf-java-format:protobuf-java-format:jar:1.2:compile
+- org.apache.thrift:libthrift:jar:0.9.1:compile
+- com.typesafe.akka:akka-actor_2.11:jar:2.5.8:compile
| +- com.typesafe:config:jar:1.3.2:compile
| \- org.scala-lang.modules:scala-java8-compat_2.11:jar:0.7.0:compile
+- org.quartz-scheduler:quartz:jar:2.2.1:compile
| \- c3p0:c3p0:jar:0.9.1.1:compile
+- com.github.rholder:guava-retrying:jar:1.0.5:compile
+- org.scala-lang:scala-library:jar:2.11.8:compile
+- junit:junit:jar:4.12:test
| \- org.hamcrest:hamcrest-core:jar:1.3:compile
\- org.assertj:assertj-core:jar:3.5.2:test
Can someone let me know what is going wrong? How can I get around this error?
The only way that's possible is if you have mismatched versions of jetty-io and jetty-util classes.
Run this code (in your project) to figure out where the classes are (it will report all locations, even if they are in multiple locations):
public class WhereIsThisComingFrom
{
public static void main(String[] args)
{
locate(ManagedSelector.class);
locate(QueuedThreadPool.class);
}
public static void locate(Class<?> clazz)
{
try
{
ClassLoader cl = clazz.getClassLoader();
String classAsResource = clazz.getName().replace('.', '/') + ".class";
Enumeration<URL> urls = cl.getResources(classAsResource);
System.out.printf("Looking for: %s%n", classAsResource);
while (urls.hasMoreElements())
{
URL url = urls.nextElement();
System.out.printf("Found: %s%n", url.toExternalForm());
}
}
catch (Throwable t)
{
System.out.printf("Whoops: cannot locate: %s%n", clazz);
t.printStackTrace();
}
}
}
I am very new to distributed computing . I an able to run similar code in Spark 2.2 on my local machine without any issue. Now I am trying to do the same in Java and I keep on getting this error. I can create JavaSparkContext and use this object in my code .Issue is when I create SparkSession using builder.
My Local environment is : Window 7 , Spark 2.2 , Java 1.8
My Code looks like
public static void main(String[] args) {
SparkConf sparkConf = new SparkConf();
sparkConf.setAppName("Java-Spark");
sparkConf.setMaster("local");
SparkSession sc= SparkSession.builder().appName("test").master("local[*]").config("spark.driver.cores", 1).getOrCreate();
/* this commented code works fine.
JavaSparkContext context = new JavaSparkContext(sparkConf);
JavaRDD<Integer> numbersRDD = context.parallelize(Arrays.asList(1,2,3));
JavaRDD<Integer> squaresRDD = numbersRDD.map( n -> n*n );
System.out.println("1 :");
System.out.println(squaresRDD.collect().toString());
JavaRDD<Integer> evenRDD = squaresRDD.filter( n -> n%2==0 );
System.out.println("2 :");
System.out.println(evenRDD.collect().toString());
JavaRDD<Integer> multipliedRDD = numbersRDD.flatMap( n->Arrays.asList(n,n*2,n*3).iterator());
System.out.println("3 :");
System.out.println(multipliedRDD.collect().toString());
context.close();
*/
sc.close();
}
I am using Maven to manage dependencies. pom.xml looks like
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>ICC_POC</groupId>
<artifactId>spark</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>spark</name>
<dependencies>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>com.bazaarvoice.jolt</groupId>
<artifactId>jolt-complete</artifactId>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>com.bazaarvoice.jolt</groupId>
<artifactId>jolt-core</artifactId>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-launcher_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-network-common_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-network-shuffle_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-unsafe_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-tags_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sql_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-catalyst_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-sketch_2.11</artifactId>
<version>2.2.0</version>
</dependency>
<dependency>
<groupId>org.apache.xbean</groupId>
<artifactId>xbean-asm5-shaded</artifactId>
<version>4.5</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
</plugin>
</plugins>
</build>
</project>
I am struggling with this error from last 2 days and cannot figure out what I am missing here. Need another pair of eyes to find the issue . Thanks
EDIT: Adding output for mvn dependency:tree
ICC_POC:spark:jar:0.0.1-SNAPSHOT
+- org.apache.spark:spark-core_2.11:jar:2.2.0:compile
| +- org.apache.avro:avro:jar:1.7.7:compile
| | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
| | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
| | +- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
| | \- org.apache.commons:commons-compress:jar:1.4.1:compile
| | \- org.tukaani:xz:jar:1.0:compile
| +- org.apache.avro:avro-mapred:jar:hadoop2:1.7.7:compile
| | +- org.apache.avro:avro-ipc:jar:1.7.7:compile
| | \- org.apache.avro:avro-ipc:jar:tests:1.7.7:compile
| +- com.twitter:chill_2.11:jar:0.8.0:compile
| | \- com.esotericsoftware:kryo-shaded:jar:3.0.3:compile
| | +- com.esotericsoftware:minlog:jar:1.3.0:compile
| | \- org.objenesis:objenesis:jar:2.1:compile
| +- com.twitter:chill-java:jar:0.8.0:compile
| +- org.apache.hadoop:hadoop-client:jar:2.6.5:compile
| | +- org.apache.hadoop:hadoop-common:jar:2.6.5:compile
| | | +- commons-cli:commons-cli:jar:1.2:compile
| | | +- xmlenc:xmlenc:jar:0.52:compile
| | | +- commons-httpclient:commons-httpclient:jar:3.1:compile
| | | +- commons-io:commons-io:jar:2.4:compile
| | | +- commons-collections:commons-collections:jar:3.2.2:compile
| | | +- commons-lang:commons-lang:jar:2.6:compile
| | | +- commons-configuration:commons-configuration:jar:1.6:compile
| | | | +- commons-digester:commons-digester:jar:1.8:compile
| | | | | \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
| | | | \- commons-beanutils:commons-beanutils-core:jar:1.8.0:compile
| | | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
| | | +- com.google.code.gson:gson:jar:2.2.4:compile
| | | +- org.apache.hadoop:hadoop-auth:jar:2.6.5:compile
| | | | \- org.apache.directory.server:apacheds-kerberos-codec:jar:2.0.0-M15:compile
| | | | +- org.apache.directory.server:apacheds-i18n:jar:2.0.0-M15:compile
| | | | +- org.apache.directory.api:api-asn1-api:jar:1.0.0-M20:compile
| | | | \- org.apache.directory.api:api-util:jar:1.0.0-M20:compile
| | | +- org.apache.curator:curator-client:jar:2.6.0:compile
| | | \- org.htrace:htrace-core:jar:3.0.4:compile
| | +- org.apache.hadoop:hadoop-hdfs:jar:2.6.5:compile
| | | +- org.mortbay.jetty:jetty-util:jar:6.1.26:compile
| | | \- xerces:xercesImpl:jar:2.9.1:compile
| | | \- xml-apis:xml-apis:jar:1.3.04:compile
| | +- org.apache.hadoop:hadoop-mapreduce-client-app:jar:2.6.5:compile
| | | +- org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.6.5:compile
| | | | +- org.apache.hadoop:hadoop-yarn-client:jar:2.6.5:compile
| | | | \- org.apache.hadoop:hadoop-yarn-server-common:jar:2.6.5:compile
| | | \- org.apache.hadoop:hadoop-mapreduce-client-shuffle:jar:2.6.5:compile
| | +- org.apache.hadoop:hadoop-yarn-api:jar:2.6.5:compile
| | +- org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.6.5:compile
| | | \- org.apache.hadoop:hadoop-yarn-common:jar:2.6.5:compile
| | | +- javax.xml.bind:jaxb-api:jar:2.2.2:compile
| | | | \- javax.xml.stream:stax-api:jar:1.0-2:compile
| | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.13:compile
| | | \- org.codehaus.jackson:jackson-xc:jar:1.9.13:compile
| | +- org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:2.6.5:compile
| | \- org.apache.hadoop:hadoop-annotations:jar:2.6.5:compile
| +- net.java.dev.jets3t:jets3t:jar:0.9.3:compile
| | +- org.apache.httpcomponents:httpcore:jar:4.3.3:compile
| | +- org.apache.httpcomponents:httpclient:jar:4.3.6:compile
| | +- commons-codec:commons-codec:jar:1.8:compile
| | +- javax.activation:activation:jar:1.1.1:compile
| | +- mx4j:mx4j:jar:3.0.2:compile
| | +- javax.mail:mail:jar:1.4.7:compile
| | +- org.bouncycastle:bcprov-jdk15on:jar:1.51:compile
| | \- com.jamesmurty.utils:java-xmlbuilder:jar:1.0:compile
| | \- net.iharder:base64:jar:2.3.8:compile
| +- org.apache.curator:curator-recipes:jar:2.6.0:compile
| | +- org.apache.curator:curator-framework:jar:2.6.0:compile
| | +- org.apache.zookeeper:zookeeper:jar:3.4.6:compile
| | \- com.google.guava:guava:jar:16.0.1:compile
| +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
| +- org.apache.commons:commons-lang3:jar:3.5:compile
| +- org.apache.commons:commons-math3:jar:3.4.1:compile
| +- com.google.code.findbugs:jsr305:jar:1.3.9:compile
| +- org.slf4j:slf4j-api:jar:1.7.16:compile
| +- org.slf4j:jul-to-slf4j:jar:1.7.16:compile
| +- org.slf4j:jcl-over-slf4j:jar:1.7.16:compile
| +- log4j:log4j:jar:1.2.17:compile
| +- org.slf4j:slf4j-log4j12:jar:1.7.16:compile
| +- com.ning:compress-lzf:jar:1.0.3:compile
| +- org.xerial.snappy:snappy-java:jar:1.1.2.6:compile
| +- net.jpountz.lz4:lz4:jar:1.3.0:compile
| +- org.roaringbitmap:RoaringBitmap:jar:0.5.11:compile
| +- commons-net:commons-net:jar:2.2:compile
| +- org.scala-lang:scala-library:jar:2.11.8:compile
| +- org.json4s:json4s-jackson_2.11:jar:3.2.11:compile
| | \- org.json4s:json4s-core_2.11:jar:3.2.11:compile
| | +- org.json4s:json4s-ast_2.11:jar:3.2.11:compile
| | \- org.scala-lang:scalap:jar:2.11.0:compile
| | \- org.scala-lang:scala-compiler:jar:2.11.0:compile
| | +- org.scala-lang.modules:scala-xml_2.11:jar:1.0.1:compile
| | \- org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.0.1:compile
| +- org.glassfish.jersey.core:jersey-client:jar:2.22.2:compile
| | +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:compile
| | +- org.glassfish.hk2:hk2-api:jar:2.4.0-b34:compile
| | | +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b34:compile
| | | \- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34:compile
| | +- org.glassfish.hk2.external:javax.inject:jar:2.4.0-b34:compile
| | \- org.glassfish.hk2:hk2-locator:jar:2.4.0-b34:compile
| | \- org.javassist:javassist:jar:3.18.1-GA:compile
| +- org.glassfish.jersey.core:jersey-common:jar:2.22.2:compile
| | +- javax.annotation:javax.annotation-api:jar:1.2:compile
| | +- org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.22.2:compile
| | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
| +- org.glassfish.jersey.core:jersey-server:jar:2.22.2:compile
| | +- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.22.2:compile
| | \- javax.validation:validation-api:jar:1.1.0.Final:compile
| +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.22.2:compile
| +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.22.2:compile
| +- io.netty:netty-all:jar:4.0.43.Final:compile
| +- io.netty:netty:jar:3.9.9.Final:compile
| +- com.clearspring.analytics:stream:jar:2.7.0:compile
| +- io.dropwizard.metrics:metrics-core:jar:3.1.2:compile
| +- io.dropwizard.metrics:metrics-jvm:jar:3.1.2:compile
| +- io.dropwizard.metrics:metrics-json:jar:3.1.2:compile
| +- io.dropwizard.metrics:metrics-graphite:jar:3.1.2:compile
| +- com.fasterxml.jackson.core:jackson-databind:jar:2.6.5:compile
| | \- com.fasterxml.jackson.core:jackson-core:jar:2.6.5:compile
| +- com.fasterxml.jackson.module:jackson-module-scala_2.11:jar:2.6.5:compile
| | +- org.scala-lang:scala-reflect:jar:2.11.7:compile
| | \- com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.6.5:compile
| +- org.apache.ivy:ivy:jar:2.4.0:compile
| +- oro:oro:jar:2.0.8:compile
| +- net.razorvine:pyrolite:jar:4.13:compile
| +- net.sf.py4j:py4j:jar:0.10.4:compile
| +- org.apache.commons:commons-crypto:jar:1.0.0:compile
| \- org.spark-project.spark:unused:jar:1.0.0:compile
+- com.bazaarvoice.jolt:jolt-complete:jar:0.1.0:compile
| \- com.bazaarvoice.jolt:json-utils:jar:0.1.0:compile
+- com.bazaarvoice.jolt:jolt-core:jar:0.1.0:compile
| \- javax.inject:javax.inject:jar:1:compile
+- org.apache.spark:spark-launcher_2.11:jar:2.2.0:compile
+- org.apache.spark:spark-network-common_2.11:jar:2.2.0:compile
| +- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile
| \- com.fasterxml.jackson.core:jackson-annotations:jar:2.6.5:compile
+- org.apache.spark:spark-network-shuffle_2.11:jar:2.2.0:compile
+- org.apache.spark:spark-unsafe_2.11:jar:2.2.0:compile
+- org.apache.spark:spark-tags_2.11:jar:2.2.0:compile
+- org.apache.spark:spark-sql_2.11:jar:2.2.0:compile
| +- com.univocity:univocity-parsers:jar:2.2.1:compile
| +- org.apache.parquet:parquet-column:jar:1.8.2:compile
| | +- org.apache.parquet:parquet-common:jar:1.8.2:compile
| | \- org.apache.parquet:parquet-encoding:jar:1.8.2:compile
| \- org.apache.parquet:parquet-hadoop:jar:1.8.2:compile
| +- org.apache.parquet:parquet-format:jar:2.3.1:compile
| \- org.apache.parquet:parquet-jackson:jar:1.8.2:compile
+- org.apache.spark:spark-catalyst_2.11:jar:2.2.0:compile
+- org.apache.spark:spark-sketch_2.11:jar:2.2.0:compile
\- org.apache.xbean:xbean-asm5-shaded:jar:4.5:compile
I am able to resolve this issue. I looked into project dependency generated by mvn and found ANTLR ref was missing. Added it into mvn dependncy list and code started working. Thanks Alexandre Dupriez for pointing it. I had never guess it by myself.