My code seems to be breaking on a transitive dependency issue that I cannot find. I am trying to migrate from JBoss EAP 7.3 with RedHat's PAM 7.9 product (which is JBPM 7.48) to JBoss EAP 7.4 with PAM 7.12 (ie JBPM 7.59) and am experiencing the issue in a servlet of mine that calls the kie-server via a kie-client API. I have read about and encountered RESTEasy issues before with JBoss, so based upon my error have removed the tags to hopefully avoid any inconsistencies - but still have an odd error.
This is the stack trace that I get which has been edited for brevity:
5:37:57,975 ERROR [io.undertow.request] (default task-4) UT005023: Exception handling request to /PamHelper/pam/helper/pamQuery: org.jboss.resteasy.spi.UnhandledException: java.lang.NoSuchFieldError: _typeCache
at org.jboss.resteasy.core.ExceptionHandler.handleApplicationException(ExceptionHandler.java:82)
at org.jboss.resteasy.core.ExceptionHandler.handleException(ExceptionHandler.java:346)
at org.jboss.resteasy.core.SynchronousDispatcher.writeException(SynchronousDispatcher.java:193)
...
at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
...
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
...
at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:841)
at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1280)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NoSuchFieldError: _typeCache
at org.kie.server.api.marshalling.json.FallbackableTypeFactory.withFallbackClassLoader(FallbackableTypeFactory.java:62)
at org.kie.server.api.marshalling.json.JSONMarshaller.configureMarshaller(JSONMarshaller.java:284)
at org.kie.server.api.marshalling.json.JSONMarshaller.<init>(JSONMarshaller.java:180)
at org.kie.server.api.marshalling.BaseMarshallerBuilder.build(BaseMarshallerBuilder.java:45)
at org.kie.server.api.marshalling.MarshallerFactory.getMarshaller(MarshallerFactory.java:50)
at org.kie.server.client.impl.AbstractKieServicesClientImpl.<init>(AbstractKieServicesClientImpl.java:84)
at org.kie.server.client.impl.KieServicesClientImpl.<init>(KieServicesClientImpl.java:74)
at org.kie.server.client.KieServicesFactory.newKieServicesClient(KieServicesFactory.java:101)
This is my dependency tree. I have guessing there is a conflict either in a RestEasy dependency or (from the error message) some odd problem initializing marshalling; there is no typeCache field either in my code or the JBPM source code.
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # PamServer ---
[INFO] com.gok.ams:PamServer:war:1.0-SNAPSHOT
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.12.3:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.12.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.12.3:compile
[INFO] +- com.fasterxml.jackson.core:jackson-databind:jar:2.12.3:compile
[INFO] +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] +- com.gok.ams:ams-pam-util:jar:0.0.12-SNAPSHOT:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.5.8.Final-redhat-00001:compile
[INFO] | | +- javax.persistence:javax.persistence-api:jar:2.2:compile
[INFO] | | +- org.javassist:javassist:jar:3.27.0.GA-redhat-00001:compile
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.11.12.redhat-00002:compile
[INFO] | | +- antlr:antlr:jar:2.7.7.redhat-7:compile
[INFO] | | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.1.1.Final:compile
[INFO] | | +- org.jboss:jandex:jar:2.2.3.Final-redhat-00001:compile
[INFO] | | +- com.fasterxml:classmate:jar:1.5.1.redhat-00001:compile
[INFO] | | +- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.2.Final-redhat-00003:compile
[INFO] | | +- javax.xml.bind:jaxb-api:jar:2.3.1.redhat-00001:compile
[INFO] | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.1.redhat-00002:compile
[INFO] | | +- org.glassfish.jaxb:txw2:jar:2.3.1.redhat-00002:compile
[INFO] | | +- com.sun.istack:istack-commons-runtime:jar:3.0.7.redhat-00001:compile
[INFO] | | +- org.jvnet.staxex:stax-ex:jar:1.8:compile
[INFO] | | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.15:compile
[INFO] | \- org.apache.commons:commons-lang3:jar:3.12.0:compile
[INFO] +- com.gok.ams:ams-pam-workitemhandlers:jar:2.0.6.41-SNAPSHOT:compile
[INFO] | \- com.gok.ams:amsObjectModel:jar:0.0.65-SNAPSHOT:compile
[INFO] +- org.jbpm:jbpm-workitems-core:jar:7.59.0.Final-redhat-00006:compile
[INFO] | +- org.drools:drools-core:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.kie.soup:kie-soup-xstream:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.drools:drools-core-reflective:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | \- org.kie:kie-memory-compiler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | \- org.drools:drools-core-dynamic:jar:7.59.0.Final-redhat-00006:runtime
[INFO] | +- org.jbpm:jbpm-flow:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.drools:drools-mvel:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.drools:drools-serialization-protobuf:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.kie.soup:kie-soup-commons:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.kie.soup:kie-soup-project-datamodel-commons:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | \- org.kie.soup:kie-soup-project-datamodel-api:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.kie:kie-dmn-feel:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.antlr:antlr4-runtime:jar:4.8.0.redhat-00002:compile
[INFO] | | | +- com.github.javaparser:javaparser-core:jar:3.13.10:compile
[INFO] | | | +- org.drools:drools-mvel-parser:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | \- ch.obermuhlner:big-math:jar:2.0.1:compile
[INFO] | | +- org.kie:kie-dmn-core:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-dmn-backend:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.drools:drools-ruleunit:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.drools:drools-alphanetwork-compiler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | \- org.jpmml:pmml-model:jar:1.5.1:compile
[INFO] | | | \- org.jpmml:pmml-agent:jar:1.5.1:compile
[INFO] | | +- com.google.protobuf:protobuf-java:jar:3.6.1:compile
[INFO] | | \- org.mvel:mvel2:jar:2.4.12.Final-redhat-00001:compile
[INFO] | +- org.jbpm:jbpm-bpmn2:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.drools:drools-compiler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.drools:drools-ecj:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | \- org.jbpm:jbpm-flow-builder:jar:7.59.0.Final-redhat-00006:compile
[INFO] | +- org.kie:kie-internal:jar:7.59.0.Final-redhat-00006:compile
[INFO] | +- org.kie:kie-dmn-api:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | \- org.kie:kie-dmn-model:jar:7.59.0.Final-redhat-00006:compile
[INFO] | +- commons-io:commons-io:jar:2.7.0.redhat-00003:compile
[INFO] | +- org.apache.commons:commons-exec:jar:1.3:compile
[INFO] | \- org.antlr:ST4:jar:4.0.7:compile
[INFO] | \- org.antlr:antlr-runtime:jar:3.5:compile
[INFO] | \- org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] +- org.jbpm:jbpm-services-api:jar:7.59.0.Final-redhat-00006:compile
[INFO] +- org.kie:kie-api:jar:7.59.0.Final-redhat-00006:compile
[INFO] | \- org.kie.soup:kie-soup-maven-support:jar:7.59.0.Final-redhat-00006:compile
[INFO] +- org.kie.server:kie-server-client:jar:7.59.0.Final-redhat-00006:compile
[INFO] | +- org.optaplanner:optaplanner-core:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.drools:drools-canonical-model:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.drools:drools-model-compiler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | \- org.drools:drools-mvel-compiler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.apache.commons:commons-math3:jar:3.4.1.redhat-3:compile
[INFO] | | +- org.reflections:reflections:jar:0.9.11.redhat-00004:compile
[INFO] | | | \- com.google.guava:guava:jar:25.0.0.redhat-1:compile
[INFO] | | | +- com.google.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] | | | +- org.checkerframework:checker-compat-qual:jar:2.0.0:compile
[INFO] | | | +- com.google.errorprone:error_prone_annotations:jar:2.1.3:compile
[INFO] | | | +- com.google.j2objc:j2objc-annotations:jar:1.1:compile
[INFO] | | | \- org.codehaus.mojo:animal-sniffer-annotations:jar:1.14:compile
[INFO] | | \- com.thoughtworks.xstream:xstream:jar:1.4.18.redhat-00001:compile
[INFO] | | \- io.github.x-stream:mxparser:jar:1.2.2:compile
[INFO] | | \- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | +- org.kie.server:kie-server-api:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.optaplanner:optaplanner-persistence-xstream:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | \- org.optaplanner:optaplanner-persistence-common:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- org.optaplanner:optaplanner-persistence-jaxb:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | +- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.12.1.redhat-00002:compile
[INFO] | | +- org.kie:kie-pmml-dependencies:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-api:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-commons:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | | \- org.apache.commons:commons-text:jar:1.9:compile
[INFO] | | | +- org.kie:kie-pmml-compiler-api:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-compiler-core:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-compiler-commons:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-evaluator-api:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-evaluator-core:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-evaluator-assembler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-kie-internal:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-drools-common:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-regression-model:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-regression-compiler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-regression-evaluator:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-drools-tree-model:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-drools-tree-compiler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-drools-tree-evaluator:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | | \- org.kie:kie-pmml-compiler-api:jar:tests:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-drools-scorecard-model:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-drools-scorecard-compiler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-drools-scorecard-evaluator:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-mining-model:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-mining-compiler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-mining-evaluator:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-clustering-model:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | +- org.kie:kie-pmml-models-clustering-compiler:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | | \- org.kie:kie-pmml-models-clustering-evaluator:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | \- org.drools:kie-pmml:jar:7.59.0.Final-redhat-00006:compile
[INFO] | +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6.redhat-00001:compile
[INFO] | +- org.kie.server:kie-server-common:jar:7.59.0.Final-redhat-00006:compile
[INFO] | | \- jakarta.servlet:jakarta.servlet-api:jar:4.0.3.redhat-00002:compile
[INFO] | +- jakarta.jms:jakarta.jms-api:jar:2.0.3.redhat-00001:compile
[INFO] | +- com.sun.xml.bind:jaxb-core:jar:2.3.0.redhat-1:compile
[INFO] | +- com.sun.xml.bind:jaxb-impl:jar:2.3.0.redhat-1:compile
[INFO] | \- org.slf4j:jcl-over-slf4j:jar:1.7.30.redhat-00001:runtime
[INFO] +- org.slf4j:slf4j-api:jar:1.7.26:compile
[INFO] +- org.jboss.resteasy:resteasy-jaxrs:jar:3.0.14.Final:compile
[INFO] | +- org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec:jar:1.0.0.Final:compile
[INFO] | +- org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec:jar:1.0.0.Final:compile
[INFO] | +- javax.activation:activation:jar:1.1.1:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.3.6:compile
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.3.3:compile
[INFO] | | \- commons-logging:commons-logging:jar:1.1.3:compile
[INFO] | +- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] | \- org.jboss.logging:jboss-logging:jar:3.1.4.GA:compile
[INFO] +- org.jboss.resteasy:resteasy-servlet-initializer:jar:6.0.0.Final:compile
[INFO] | +- org.jboss.resteasy:resteasy-core:jar:6.0.0.Final:compile
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:2.0.0:compile
[INFO] | | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:3.0.1:compile
[INFO] | | +- jakarta.activation:jakarta.activation-api:jar:2.0.0:compile
[INFO] | | +- jakarta.validation:jakarta.validation-api:jar:3.0.0:compile
[INFO] | | \- com.ibm.async:asyncutil:jar:0.1.0:compile
[INFO] | \- org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_3.0_spec:jar:1.0.0.Final:compile
[INFO] +- org.jboss.resteasy:resteasy-client:jar:6.0.0.Final:compile
[INFO] | +- org.jboss.resteasy:resteasy-client-api:jar:6.0.0.Final:compile
[INFO] | +- org.jboss.resteasy:resteasy-core-spi:jar:6.0.0.Final:compile
[INFO] | +- commons-codec:commons-codec:jar:1.15:compile
[INFO] | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] +- junit:junit:jar:4.13.2:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] \- org.mockito:mockito-all:jar:1.10.16:test
And this is the dependency part of my pom.xml not related to testing.
<properties>
<version.org.kie>7.59.0.Final-redhat-00006</version.org.kie>
<!--version.org.kie>7.48.0.Final-redhat-00004</version.org.kie-->
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<version.org.slf4j>1.7.26</version.org.slf4j>
<jax-rs-version>3.0.14.Final</jax-rs-version>
<version.object.model>0.0.65-SNAPSHOT</version.object.model>
<version.utils>0.0.12-SNAPSHOT</version.utils>
<version.workItemHandlers>2.0.6.41-SNAPSHOT</version.workItemHandlers>
<version.jakarta.persistence-api>2.2.3</version.jakarta.persistence-api>
<version.resteasy>6.0.0.Final</version.resteasy>
<!--version.jackson>2.12.4.redhat-00001</version.jackson-->
<version.jackson>2.12.3</version.jackson>
</properties>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${version.jackson}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${version.jackson}</version>
<!--scope>provided</scope-->
</dependency>
<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
<version>${version.jakarta.persistence-api}</version>
</dependency>
<dependency>
<groupId>com.gok.ams</groupId>
<artifactId>ams-pam-util</artifactId>
<version>${version.utils}</version>
</dependency>
<dependency>
<artifactId>ams-pam-workitemhandlers</artifactId>
<version>${version.workItemHandlers}</version>
<groupId>com.gok.ams</groupId>
</dependency>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-workitems-core</artifactId>
<version>${version.org.kie}</version>
</dependency>
<dependency>
<groupId>org.jbpm</groupId>
<artifactId>jbpm-services-api</artifactId>
<version>${version.org.kie}</version>
</dependency>
<dependency>
<groupId>org.kie</groupId>
<artifactId>kie-api</artifactId>
<version>${version.org.kie}</version>
</dependency>
<dependency>
<groupId>org.kie.server</groupId>
<artifactId>kie-server-client</artifactId>
<version>${version.org.kie}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${version.org.slf4j}</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-jaxrs</artifactId>
<version>3.0.14.Final</version>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-servlet-initializer</artifactId>
<version>${version.resteasy}</version>
<exclusions>
<exclusion>
<artifactId>resteasy-jaxrs</artifactId>
<groupId>org.jboss.resteasy</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.jboss.resteasy</groupId>
<artifactId>resteasy-client</artifactId>
<version>${version.resteasy}</version>
</dependency>
The other possibility that I can think of is that this is related to this issue which may not have been fixed in PAM ; I have downgraded from Java 11 to Java 8 to have my the code running on my laptop look more like my company's integration environment.
You've got a dependency on two different versions of RESTEasy. You don't want to use 6.0.0.Final as that is Jakarta REST 3.0 which is Jakarta EE 9.1. You want to use the latest 3.15.x version as that is what JBoss EAP 7.4 uses. You also want to make sure you mark those dependencies as <scope>provided</scope> as they are provided by JBoss EAP 7.4.
I don't think you need the org.jboss.resteasy:resteasy-servlet-initializer at either.
Related
I'm migrating a project from Spring Boot 2.6.1 to Spring Boot 3.0.2 and I'm having problems with log4j dependencies versions. I have modified all the dependencies that were giving me problems but I still couldn't solve the problem. The error is as follows:
Java HotSpot(TM) 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
SLF4J: Class path contains SLF4J bindings targeting slf4j-api versions 1.7.x or earlier.
SLF4J: Ignoring binding found at [jar:file:/C:/Users/Pablo/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.18.0/log4j-slf4j-impl-2.18.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See https://www.slf4j.org/codes.html#ignoredBindings for an explanation.
ERROR [2023-01-27 11:54:41] [ org.springframework.boot.diagnostics.LoggingFailureAnalysisReporter report 40]
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.springframework.boot.logging.log4j2.Log4J2LoggingSystem.initialize(Log4J2LoggingSystem.java:242)
The following method did not exist:
'void org.apache.logging.log4j.util.PropertiesUtil.addPropertySource(org.apache.logging.log4j.util.PropertySource)'
The calling method's class, org.springframework.boot.logging.log4j2.Log4J2LoggingSystem, was loaded from the following location:
jar:file:/C:/Users/Pablo/.m2/repository/org/springframework/boot/spring-boot/3.0.2/spring-boot-3.0.2.jar!/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.class
The called method's class, org.apache.logging.log4j.util.PropertiesUtil, is available from the following locations:
jar:file:/C:/Users/Pablo/.m2/repository/org/apache/logging/log4j/log4j-api/2.18.0/log4j-api-2.18.0.jar!/org/apache/logging/log4j/util/PropertiesUtil.class
The called method's class hierarchy was loaded from the following locations:
org.apache.logging.log4j.util.PropertiesUtil: file:/C:/Users/Pablo/.m2/repository/org/apache/logging/log4j/log4j-api/2.18.0/log4j-api-2.18.0.jar
Action:
Correct the classpath of your application so that it contains compatible versions of the classes org.springframework.boot.logging.log4j2.Log4J2LoggingSystem and org.apache.logging.log4j.util.PropertiesUtil
Process finished with exit code 0
And the service dependencies are:
--- maven-dependency-plugin:2.8:tree (default-cli) # core ---
[INFO] es._3xs.adp:core:jar:1.0-SNAPSHOT
[INFO] +- es._3xs.adp:library:jar:1.0-SNAPSHOT:compile
[INFO] | +- org.springframework.boot:spring-boot-configuration-processor:jar:3.0.2:compile
[INFO] | +- org.springframework:spring-websocket:jar:6.0.4:compile
[INFO] | | \- org.springframework:spring-context:jar:6.0.4:compile
[INFO] | +- org.springframework.retry:spring-retry:jar:2.0.0:compile
[INFO] | +- com.opencsv:opencsv:jar:5.5.2:compile
[INFO] | | +- org.apache.commons:commons-lang3:jar:3.12.0:compile
[INFO] | | +- org.apache.commons:commons-text:jar:1.9:compile
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.9.4:compile
[INFO] | | | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | \- org.apache.commons:commons-collections4:jar:4.4:compile
[INFO] | \- org.apache.httpcomponents:httpclient:jar:4.5.14:compile
[INFO] | \- commons-codec:commons-codec:jar:1.15:compile
[INFO] +- org.springframework.data:spring-data-redis:jar:3.0.1:compile
[INFO] | +- org.springframework.data:spring-data-keyvalue:jar:3.0.1:compile
[INFO] | | \- org.springframework.data:spring-data-commons:jar:3.0.1:compile
[INFO] | +- org.springframework:spring-tx:jar:6.0.4:compile
[INFO] | +- org.springframework:spring-oxm:jar:6.0.4:compile
[INFO] | +- org.springframework:spring-aop:jar:6.0.4:compile
[INFO] | +- org.springframework:spring-context-support:jar:6.0.4:compile
[INFO] | \- org.slf4j:slf4j-api:jar:2.0.6:compile
[INFO] +- redis.clients:jedis:jar:3.7.0:compile
[INFO] | \- org.apache.commons:commons-pool2:jar:2.11.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-websocket:jar:3.0.2:compile
[INFO] | \- org.springframework:spring-messaging:jar:6.0.4:compile
[INFO] +- commons-io:commons-io:jar:2.6:compile
[INFO] +- org.springframework.boot:spring-boot-starter-mail:jar:3.0.2:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:3.0.2:compile
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:2.1.1:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.33:compile
[INFO] | \- org.eclipse.angus:jakarta.mail:jar:1.0.0:compile
[INFO] | \- org.eclipse.angus:angus-activation:jar:1.0.0:runtime
[INFO] +- uk.org.webcompere:system-stubs-junit4:jar:1.2.0:test
[INFO] | \- uk.org.webcompere:system-stubs-core:jar:1.2.0:test
[INFO] +- com.h2database:h2:jar:1.4.200:compile
[INFO] +- org.apache.httpcomponents.client5:httpclient5:jar:5.2.1:compile
[INFO] | +- org.apache.httpcomponents.core5:httpcore5:jar:5.1.5:compile
[INFO] | \- org.apache.httpcomponents.core5:httpcore5-h2:jar:5.1.5:compile
[INFO] +- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[INFO] +- org.springframework.boot:spring-boot-starter-thymeleaf:jar:3.0.2:compile
[INFO] | \- org.thymeleaf:thymeleaf-spring6:jar:3.1.1.RELEASE:compile
[INFO] | \- org.thymeleaf:thymeleaf:jar:3.1.1.RELEASE:compile
[INFO] | +- org.attoparser:attoparser:jar:2.0.6.RELEASE:compile
[INFO] | \- org.unbescape:unbescape:jar:1.1.6.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-rest:jar:3.0.2:compile
[INFO] | \- org.springframework.data:spring-data-rest-webmvc:jar:4.0.1:compile
[INFO] | \- org.springframework.data:spring-data-rest-core:jar:4.0.1:compile
[INFO] | +- org.springframework.hateoas:spring-hateoas:jar:2.0.1:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:3.0.0:compile
[INFO] | \- org.atteo:evo-inflector:jar:1.3:compile
[INFO] +- org.thymeleaf.extras:thymeleaf-extras-springsecurity5:jar:3.0.4.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:3.0.2:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:3.0.2:compile
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:3.0.2:compile
[INFO] +- org.springframework.ldap:spring-ldap-core:jar:2.3.6.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:6.0.4:compile
[INFO] | \- org.springframework:spring-core:jar:6.0.4:compile
[INFO] | \- org.springframework:spring-jcl:jar:6.0.4:compile
[INFO] +- com.github.wvengen:proguard-maven-plugin:jar:2.6.0:compile
[INFO] | +- org.apache.ant:ant:jar:1.10.12:compile
[INFO] | | \- org.apache.ant:ant-launcher:jar:1.10.12:compile
[INFO] | +- org.apache.maven:maven-archiver:jar:2.4:compile
[INFO] | | +- org.apache.maven:maven-artifact:jar:2.0:compile
[INFO] | | +- org.apache.maven:maven-model:jar:2.0:compile
[INFO] | | +- org.apache.maven:maven-project:jar:2.0:compile
[INFO] | | | +- org.apache.maven:maven-profile:jar:2.0:compile
[INFO] | | | +- org.apache.maven:maven-artifact-manager:jar:2.0:compile
[INFO] | | | | +- org.apache.maven:maven-repository-metadata:jar:2.0:compile
[INFO] | | | | \- org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:compile
[INFO] | | | \- org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:compile
[INFO] | | | \- classworlds:classworlds:jar:1.1-alpha-2:compile
[INFO] | | +- org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-11:compile
[INFO] | | | +- org.codehaus.plexus:plexus-component-api:jar:1.0-alpha-15:compile
[INFO] | | | \- org.codehaus.plexus:plexus-io:jar:1.0-alpha-3:compile
[INFO] | | +- org.codehaus.plexus:plexus-utils:jar:1.4.9:compile
[INFO] | | \- org.codehaus.plexus:plexus-interpolation:jar:1.6:compile
[INFO] | \- org.apache.maven:maven-plugin-api:jar:3.8.6:compile
[INFO] | +- org.eclipse.sisu:org.eclipse.sisu.plexus:jar:0.3.5:compile
[INFO] | | +- javax.annotation:javax.annotation-api:jar:1.2:compile
[INFO] | | +- org.eclipse.sisu:org.eclipse.sisu.inject:jar:0.3.5:compile
[INFO] | | \- org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[INFO] | \- org.codehaus.plexus:plexus-classworlds:jar:2.6.0:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.22:compile
[INFO] +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-oauth2:jar:2.2.5.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-security:jar:2.2.5.RELEASE:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-security:jar:2.2.5.RELEASE:compile
[INFO] | | \- org.springframework.boot:spring-boot-starter-security:jar:3.0.2:compile
[INFO] | +- org.springframework.security.oauth.boot:spring-security-oauth2-autoconfigure:jar:2.1.2.RELEASE:compile
[INFO] | | +- org.springframework.security.oauth:spring-security-oauth2:jar:2.3.4.RELEASE:compile
[INFO] | | | +- org.springframework.security:spring-security-core:jar:6.0.1:compile
[INFO] | | | +- org.springframework.security:spring-security-config:jar:6.0.1:compile
[INFO] | | | +- org.springframework.security:spring-security-web:jar:6.0.1:compile
[INFO] | | | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] | | | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] | | \- org.springframework.security:spring-security-jwt:jar:1.0.9.RELEASE:compile
[INFO] | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.56:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.56:compile
[INFO] | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] +- org.glassfish.jaxb:jaxb-runtime:jar:2.3.2:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:4.0.0:compile
[INFO] | +- org.glassfish.jaxb:txw2:jar:4.0.1:compile
[INFO] | +- com.sun.istack:istack-commons-runtime:jar:4.1.1:compile
[INFO] | +- org.jvnet.staxex:stax-ex:jar:2.1.0:compile
[INFO] | +- com.sun.xml.fastinfoset:FastInfoset:jar:2.1.0:compile
[INFO] | \- jakarta.activation:jakarta.activation-api:jar:2.1.1:compile
[INFO] +- com.sun.xml.bind:jaxb-core:jar:3.0.2:compile
[INFO] | \- com.sun.activation:jakarta.activation:jar:2.0.1:compile
[INFO] +- com.sun.xml.bind:jaxb-impl:jar:2.3.0:compile
[INFO] +- javax.xml.bind:jaxb-api:jar:2.4.0-b180830.0359:compile
[INFO] +- com.fasterxml.jackson.dataformat:jackson-dataformat-xml:jar:2.13.0:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.14.1:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.14.1:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.14.1:compile
[INFO] | +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
[INFO] | \- com.fasterxml.woodstox:woodstox-core:jar:6.2.6:compile
[INFO] +- net.sourceforge.jtds:jtds:jar:1.3.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:3.0.2:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:3.0.2:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.19:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:3.0.2:compile
[INFO] | | +- com.zaxxer:HikariCP:jar:5.0.1:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:6.0.4:compile
[INFO] | +- org.hibernate.orm:hibernate-core:jar:6.1.6.Final:compile
[INFO] | | +- jakarta.persistence:jakarta.persistence-api:jar:3.1.0:compile
[INFO] | | +- jakarta.transaction:jakarta.transaction-api:jar:2.0.1:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.5.0.Final:runtime
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:6.0.2.Final:runtime
[INFO] | | +- org.jboss:jandex:jar:2.4.2.Final:runtime
[INFO] | | +- com.fasterxml:classmate:jar:1.5.1:runtime
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.12.22:runtime
[INFO] | | +- jakarta.inject:jakarta.inject-api:jar:2.0.0:runtime
[INFO] | | \- org.antlr:antlr4-runtime:jar:4.10.1:runtime
[INFO] | +- org.springframework.data:spring-data-jpa:jar:3.0.1:compile
[INFO] | | \- org.springframework:spring-orm:jar:6.0.4:compile
[INFO] | \- org.springframework:spring-aspects:jar:6.0.4:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:3.0.2:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:3.0.2:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.14.1:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.14.1:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.14.1:compile
[INFO] | +- org.springframework:spring-web:jar:6.0.4:compile
[INFO] | \- org.springframework:spring-webmvc:jar:6.0.4:compile
[INFO] | \- org.springframework:spring-expression:jar:6.0.4:compile
[INFO] +- org.apache.logging.log4j:log4j-core:jar:2.18.0:compile
[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.18.0:compile
[INFO] +- org.apache.logging.log4j:log4j-jul:jar:2.18.0:compile
[INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.18.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-log4j2:jar:2.6.3:compile
[INFO] | \- org.slf4j:jul-to-slf4j:jar:2.0.6:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jetty:jar:3.0.2:compile
[INFO] | +- jakarta.servlet:jakarta.servlet-api:jar:6.0.0:compile
[INFO] | +- jakarta.websocket:jakarta.websocket-api:jar:2.1.0:compile
[INFO] | +- jakarta.websocket:jakarta.websocket-client-api:jar:2.1.0:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:10.1.5:compile
[INFO] | +- org.eclipse.jetty:jetty-servlets:jar:11.0.13:compile
[INFO] | | +- org.eclipse.jetty:jetty-http:jar:11.0.13:compile
[INFO] | | +- org.eclipse.jetty:jetty-util:jar:11.0.13:compile
[INFO] | | \- org.eclipse.jetty:jetty-io:jar:11.0.13:compile
[INFO] | +- org.eclipse.jetty:jetty-webapp:jar:11.0.13:compile
[INFO] | | +- org.eclipse.jetty:jetty-servlet:jar:11.0.13:compile
[INFO] | | | \- org.eclipse.jetty:jetty-security:jar:11.0.13:compile
[INFO] | | | \- org.eclipse.jetty:jetty-server:jar:11.0.13:compile
[INFO] | | \- org.eclipse.jetty:jetty-xml:jar:11.0.13:compile
[INFO] | +- org.eclipse.jetty.websocket:websocket-jakarta-server:jar:11.0.13:compile
[INFO] | | +- org.eclipse.jetty.websocket:websocket-jakarta-client:jar:11.0.13:compile
[INFO] | | | +- org.eclipse.jetty.websocket:websocket-jakarta-common:jar:11.0.13:compile
[INFO] | | | +- org.eclipse.jetty.websocket:websocket-core-client:jar:11.0.13:compile
[INFO] | | | \- org.eclipse.jetty:jetty-client:jar:11.0.13:compile
[INFO] | | | \- org.eclipse.jetty:jetty-alpn-client:jar:11.0.13:compile
[INFO] | | +- org.eclipse.jetty.websocket:websocket-servlet:jar:11.0.13:compile
[INFO] | | | \- org.eclipse.jetty.websocket:websocket-core-server:jar:11.0.13:compile
[INFO] | | \- org.eclipse.jetty:jetty-annotations:jar:11.0.13:compile
[INFO] | | +- org.eclipse.jetty:jetty-plus:jar:11.0.13:compile
[INFO] | | | \- org.eclipse.jetty:jetty-jndi:jar:11.0.13:compile
[INFO] | | +- org.ow2.asm:asm:jar:9.4:compile
[INFO] | | \- org.ow2.asm:asm-commons:jar:9.4:compile
[INFO] | | \- org.ow2.asm:asm-tree:jar:9.4:compile
[INFO] | \- org.eclipse.jetty.websocket:websocket-jetty-server:jar:11.0.13:compile
[INFO] | +- org.eclipse.jetty.websocket:websocket-jetty-api:jar:11.0.13:compile
[INFO] | \- org.eclipse.jetty.websocket:websocket-jetty-common:jar:11.0.13:compile
[INFO] | \- org.eclipse.jetty.websocket:websocket-core-common:jar:11.0.13:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:3.0.2:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:3.0.2:compile
[INFO] | | \- org.springframework.boot:spring-boot-actuator:jar:3.0.2:compile
[INFO] | \- io.micrometer:micrometer-observation:jar:1.10.3:compile
[INFO] | \- io.micrometer:micrometer-commons:jar:1.10.3:compile
[INFO] +- org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:jar:3.1.0:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter:jar:3.1.0:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-context:jar:3.1.0:compile
[INFO] | | | \- org.springframework.security:spring-security-crypto:jar:6.0.1:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-commons:jar:3.1.0:compile
[INFO] | | \- org.springframework.security:spring-security-rsa:jar:1.0.10.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-netflix-eureka-client:jar:3.1.0:compile
[INFO] | +- com.netflix.eureka:eureka-client:jar:1.10.17:compile
[INFO] | | +- com.netflix.netflix-commons:netflix-eventbus:jar:0.3.0:compile
[INFO] | | | +- com.netflix.netflix-commons:netflix-infix:jar:0.3.0:runtime
[INFO] | | | | +- commons-jxpath:commons-jxpath:jar:1.3:runtime
[INFO] | | | | +- joda-time:joda-time:jar:2.3:runtime
[INFO] | | | | +- org.antlr:antlr-runtime:jar:3.4:runtime
[INFO] | | | | | +- org.antlr:stringtemplate:jar:3.2.1:runtime
[INFO] | | | | | \- antlr:antlr:jar:2.7.7:runtime
[INFO] | | | | \- com.google.code.gson:gson:jar:2.9.1:runtime
[INFO] | | | \- org.apache.commons:commons-math:jar:2.2:runtime
[INFO] | | +- com.thoughtworks.xstream:xstream:jar:1.4.18:compile
[INFO] | | | \- io.github.x-stream:mxparser:jar:1.2.2:compile
[INFO] | | | \- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | | +- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | | +- com.netflix.servo:servo-core:jar:0.12.21:compile
[INFO] | | | \- com.google.guava:guava:jar:19.0:compile
[INFO] | | +- commons-configuration:commons-configuration:jar:1.10:compile
[INFO] | | | \- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | +- com.google.inject:guice:jar:4.1.0:compile
[INFO] | | | \- javax.inject:javax.inject:jar:1:compile
[INFO] | | \- org.codehaus.jettison:jettison:jar:1.4.0:runtime
[INFO] | +- com.netflix.eureka:eureka-core:jar:1.10.17:compile
[INFO] | \- org.springframework.cloud:spring-cloud-starter-loadbalancer:jar:3.1.0:compile
[INFO] | +- org.springframework.cloud:spring-cloud-loadbalancer:jar:3.1.0:compile
[INFO] | | +- io.projectreactor:reactor-core:jar:3.5.2:compile
[INFO] | | | \- org.reactivestreams:reactive-streams:jar:1.0.4:compile
[INFO] | | \- io.projectreactor.addons:reactor-extra:jar:3.5.0:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-cache:jar:3.0.2:compile
[INFO] | \- com.stoyanr:evictor:jar:1.0.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:3.0.2:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:3.0.2:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.7.0:compile
[INFO] | | \- net.minidev:json-smart:jar:2.4.8:compile
[INFO] | | \- net.minidev:accessors-smart:jar:2.4.8:compile
[INFO] | +- org.assertj:assertj-core:jar:3.23.1:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.9.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.9.2:test
[INFO] | | | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | | | +- org.junit.platform:junit-platform-commons:jar:1.9.2:test
[INFO] | | | \- org.apiguardian:apiguardian-api:jar:1.1.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.9.2:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.9.2:test
[INFO] | | \- org.junit.platform:junit-platform-engine:jar:1.9.2:test
[INFO] | +- org.mockito:mockito-core:jar:4.8.1:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.12.22:test
[INFO] | | \- org.objenesis:objenesis:jar:3.2:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:4.8.1:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.1:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:6.0.4:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.9.1:test
[INFO] +- org.springframework.boot:spring-boot-test:jar:3.0.2:compile
[INFO] +- junit:junit:jar:4.13.1:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:2.2:test
[INFO] +- io.micrometer:micrometer-core:jar:1.8.1:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] \- io.micrometer:micrometer-registry-prometheus:jar:1.8.0:compile
[INFO] \- io.prometheus:simpleclient_common:jar:0.16.0:compile
[INFO] \- io.prometheus:simpleclient:jar:0.16.0:compile
[INFO] +- io.prometheus:simpleclient_tracer_otel:jar:0.16.0:compile
[INFO] | \- io.prometheus:simpleclient_tracer_common:jar:0.16.0:compile
[INFO] \- io.prometheus:simpleclient_tracer_otel_agent:jar:0.16.0:compile
[INFO]
Does anyone know which versions of the dependencies are compatible with each other?
I would hazard a guess this is because you have a property defined like so in your original project:
<log4j2.version>2.18.0</log4j2.version>
This is a very normal (and important!) thing to see with Spring Boot 2.x projects because of log4shell - by default Spring Boot 2.6.1 depends on a vulnerable version, so there must be some kind of property like this in the original pom that's bringing it up to 2.18.
Spring Boot 3.0.2 depends on log4j 2.19 which isn't vulnerable, so once again, you must have a property explicitly setting it to 2.18 for this to be an issue. Such a property isn't needed (and as you've found, is a regression that makes it incompatible anyway.)
Delete that explicit log4j2.version property, clean and rebuild, and you should be fine.
Does anyone know which versions of the dependencies are compatible with each other?
Spring-boot does. Stop forcing versions of dependencies managed by boot and you'll stop having incompatibility issues.
Also, you are changing a major version => expect breaking changes and modifications in your code.
Maybe should you refer to migration guide?
Apparently, there is some kind of incompatibility with the log4j version so I had to force it to use version 2.19.0. With that, it worked.
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.19.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.19.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jul</artifactId>
<version>2.19.0</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.19.0</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
<version>3.0.2</version>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-jul</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
</exclusion>
</exclusions>
</dependency>
I have a spark spring-boot application and upgrading spring boot from 1.X to 2.1.5.Now with spring-boot 2.1.15 upgrade , I am getting snakeyaml error in application startup as:
ERROR SpringApplication - Application run failed
java.lang.NoSuchMethodError: org.yaml.snakeyaml.Yaml.<init>(Lorg/yaml/snakeyaml/constructor/BaseConstructor;Lorg/yaml/snakeyaml/representer/Representer;Lorg/yaml/snakeyaml/DumperOptions;Lorg/yaml/snakeyaml/LoaderOptions;Lorg/yaml/snakeyaml/resolver/Resolver;)V
at org.springframework.boot.env.OriginTrackedYamlLoader.createYaml(OriginTrackedYamlLoader.java:71)
at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:162)
at org.springframework.boot.env.OriginTrackedYamlLoader.load(OriginTrackedYamlLoader.java:76)
at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:50)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadDocuments(ConfigFileApplicationListener.java:544)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:499)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadForFileExtension(ConfigFileApplicationListener.java:475)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:445)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$null$6(ConfigFileApplicationListener.java:427)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.lambda$load$7(ConfigFileApplicationListener.java:427)
at java.lang.Iterable.forEach(Iterable.java:75)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:424)
at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:323)
at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:204)
at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:188)
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:178)
at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:166)
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:76)
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:53)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:342)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:305)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1204)
at com.capitalone.customercore.autolink.AutolinkApp.main(AutolinkApp.java:17)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:845)
at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:161)
at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:184)
at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:920)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:929)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
I did check the snakeyaml in dependency:tree and see org.yaml:snakeyaml:jar:1.23:compile
My dependency:tree is :
com.test.customercore:autolink-utility:jar:0.30-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.1.15.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.1.15.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.1.15.RELEASE:compile
[INFO] | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | +- org.springframework:spring-core:jar:5.1.16.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.1.16.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.23:compile
[INFO] +- org.springframework:spring-expression:jar:5.3.17:compile
[INFO] [INFO] | +- com.amazonaws:aws-java-sdk-kinesisvideo:jar:1.11.511:compile
[INFO] | | \- io.netty:netty-handler:jar:4.1.50.Final:compile
[INFO] | | +- io.netty:netty-common:jar:4.1.50.Final:compile
[INFO] | | +- io.netty:netty-resolver:jar:4.1.50.Final:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.50.Final:compile
[INFO] | | +- io.netty:netty-transport:jar:4.1.50.Final:compile
[INFO] | | \- io.netty:netty-codec:jar:4.1.50.Final:compile
[INFO] | [INFO] +- org.springframework.boot:spring-boot-starter-data-cassandra:jar:2.1.15.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:5.1.16.RELEASE:compile
[INFO] +- org.springframework.data:spring-data-cassandra:jar:2.1.18.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:5.1.16.RELEASE:compile
[INFO] | | \- org.springframework:spring-aop:jar:5.1.16.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:5.1.16.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-commons:jar:2.1.18.RELEASE:compile
[INFO] | +- com.datastax.cassandra:cassandra-driver-core:jar:3.6.0:compile
[INFO] | | +- com.github.jnr:jnr-ffi:jar:2.1.7:compile
[INFO] | | | +- com.github.jnr:jffi:jar:1.2.16:compile
[INFO] | | | +- com.github.jnr:jffi:jar:native:1.2.16:runtime
[INFO] | | | +- org.ow2.asm:asm:jar:5.0.3:compile
[INFO] | | | +- org.ow2.asm:asm-commons:jar:5.0.3:compile
[INFO] | | | +- org.ow2.asm:asm-analysis:jar:5.0.3:compile
[INFO] | | | +- org.ow2.asm:asm-tree:jar:5.0.3:compile
[INFO] | | | +- org.ow2.asm:asm-util:jar:5.0.3:compile
[INFO] | | | \- com.github.jnr:jnr-x86asm:jar:1.0.2:compile
[INFO] | | \- com.github.jnr:jnr-posix:jar:3.0.44:compile
[INFO] | | \- com.github.jnr:jnr-constants:jar:0.9.9:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.1.15.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.1.15.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.1.15.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.3:compile
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.11.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.23.4:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.9.16:compile
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.9.16:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:compile
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:test
[INFO] | +- org.springframework:spring-test:jar:5.1.16.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.6.4:test
[INFO] +- org.springframework.boot:spring-boot-starter-log4j:jar:1.3.8.RELEASE:compile
[INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.7.30:compile
[INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | \- org.slf4j:slf4j-log4j12:jar:1.7.30:compile
[INFO] +- org.apache.logging.log4j:log4j-api:jar:2.17.1:compile
[INFO] +- com.test.api.customers:customers-relations-common:jar:1.1.28-RELEASE:compile
[INFO] | +- javax.inject:javax.inject:jar:1:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.8.1:compile
[INFO] | +- org.apache.commons:commons-collections4:jar:4.1:compile
[INFO] | +- com.test.chassis.model:chassis-business-model:jar:3.1.1.RELEASE:compile
[INFO] | | +- com.test.chassis:chassis-annotations:jar:3.1.1.RELEASE:compile
[INFO] | | +- io.swagger:swagger-annotations:jar:1.5.21:compile
[INFO] | | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | | +- org.jooq:jool-java-8:jar:0.9.13:compile
[INFO] | | +- com.sun.xml.bind:jaxb-core:jar:2.3.0:compile
[INFO] | | \- com.sun.xml.bind:jaxb-impl:jar:2.3.0:compile
[INFO] | +- com.test.chassis.engine:chassis-model:jar:3.1.1.RELEASE:compile
[INFO] | | +- javax.ws.rs:javax.ws.rs-api:jar:2.1:compile
[INFO] | | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | +- javax.el:javax.el-api:jar:3.0.0:compile
[INFO] | | \- org.glassfish.web:el-impl:jar:2.2:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:jar:2.9.10:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.9.10:compile
[INFO] | +- org.hamcrest:java-hamcrest:jar:2.0.0.0:compile
[INFO] | +- redis.clients:jedis:jar:2.9.3:compile
[INFO] | | \- org.apache.commons:commons-pool2:jar:2.6.2:compile
[INFO] | \- org.springframework.data:spring-data-redis:jar:2.1.18.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-keyvalue:jar:2.1.18.RELEASE:compile
[INFO] | +- org.springframework:spring-oxm:jar:5.1.16.RELEASE:compile
[INFO] | \- org.springframework:spring-context-support:jar:5.1.16.RELEASE:compile
[INFO] +- org.hibernate.validator:hibernate-validator:jar:6.1.5.Final:compile
[INFO] | +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.3.Final:compile
[INFO] | \- com.fasterxml:classmate:jar:1.4.0:compile
[INFO] +- org.apache.spark:spark-sql_2.11:jar:2.4.0:compile
[INFO] | +- com.univocity:univocity-parsers:jar:2.7.3:compile
[INFO] | +- org.apache.spark:spark-sketch_2.11:jar:2.4.0:compile
[INFO] | +- org.apache.spark:spark-catalyst_2.11:jar:2.4.0:compile
[INFO] | | +- org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.1.0:compile
[INFO] | | +- org.codehaus.janino:janino:jar:3.0.16:compile
[INFO] | | +- org.codehaus.janino:commons-compiler:jar:3.0.16:compile
[INFO] | | \- org.antlr:antlr4-runtime:jar:4.7:compile
[INFO] | +- org.apache.spark:spark-tags_2.11:jar:2.4.0:compile
[INFO] | +- org.apache.orc:orc-core:jar:nohive:1.5.2:compile
[INFO] | | +- org.apache.orc:orc-shims:jar:1.5.2:compile
[INFO] | | \- io.airlift:aircompressor:jar:0.10:compile
[INFO] | +- org.apache.orc:orc-mapreduce:jar:nohive:1.5.2:compile
[INFO] | +- org.apache.parquet:parquet-column:jar:1.10.0:compile
[INFO] | | +- org.apache.parquet:parquet-common:jar:1.10.0:compile
[INFO] | | \- org.apache.parquet:parquet-encoding:jar:1.10.0:compile
[INFO] | +- org.apache.parquet:parquet-hadoop:jar:1.10.0:compile
[INFO] | | +- org.apache.parquet:parquet-format:jar:2.4.0:compile
[INFO] | | +- org.apache.parquet:parquet-jackson:jar:1.10.0:compile
[INFO] | | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] | +- org.apache.arrow:arrow-vector:jar:0.10.0:compile
[INFO] | | +- org.apache.arrow:arrow-format:jar:0.10.0:compile
[INFO] | | +- org.apache.arrow:arrow-memory:jar:0.10.0:compile
[INFO] | | +- com.carrotsearch:hppc:jar:0.7.2:compile
[INFO] | | \- com.vlkan:flatbuffers:jar:1.2.0-3f79e055:compile
[INFO] | +- org.apache.xbean:xbean-asm6-shaded:jar:4.8:compile
[INFO] | \- org.spark-project.spark:unused:jar:1.0.0:compile
[INFO] +- org.apache.spark:spark-core_2.11:jar:2.4.1:compile
[INFO] | +- com.thoughtworks.paranamer:paranamer:jar:2.8:compile
[INFO] | +- org.apache.avro:avro:jar:1.8.2:compile
[INFO] | | \- org.tukaani:xz:jar:1.5:compile
[INFO] | +- org.apache.avro:avro-mapred:jar:hadoop2:1.8.2:compile
[INFO] | | \- org.apache.avro:avro-ipc:jar:1.8.2:compile
[INFO] | +- com.twitter:chill_2.11:jar:0.9.3:compile
[INFO] | | \- com.esotericsoftware:kryo-shaded:jar:4.0.2:compile
[INFO] | | \- com.esotericsoftware:minlog:jar:1.3.0:compile
[INFO] | +- com.twitter:chill-java:jar:0.9.3:compile
[INFO] | +- org.apache.spark:spark-launcher_2.11:jar:2.4.1:compile
[INFO] | +- org.apache.spark:spark-kvstore_2.11:jar:2.4.1:compile
[INFO] | +- org.apache.spark:spark-network-shuffle_2.11:jar:2.4.1:compile
[INFO] | +- org.apache.spark:spark-unsafe_2.11:jar:2.4.1:compile
[INFO] | +- javax.activation:activation:jar:1.1.1:compile
[INFO] | +- org.apache.curator:curator-recipes:jar:2.6.0:compile
[INFO] | | \- org.apache.curator:curator-framework:jar:2.6.0:compile
[INFO] | +- org.apache.zookeeper:zookeeper:jar:3.4.6:compile
[INFO] | +- javax.servlet:javax.servlet-api:jar:4.0.1:compile
[INFO] | +- org.apache.commons:commons-math3:jar:3.4.1:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:1.3.9:compile
[INFO] | +- com.ning:compress-lzf:jar:1.0.3:compile
[INFO] | +- org.xerial.snappy:snappy-java:jar:1.1.7.1:compile
[INFO] | +- org.lz4:lz4-java:jar:1.4.0:compile
[INFO] | +- com.github.luben:zstd-jni:jar:1.3.2-2:compile
[INFO] | +- org.roaringbitmap:RoaringBitmap:jar:0.5.11:compile
[INFO] | +- commons-net:commons-net:jar:3.1:compile
[INFO] | +- org.scala-lang:scala-library:jar:2.11.12:compile
[INFO] | +- org.json4s:json4s-jackson_2.11:jar:3.5.3:compile
[INFO] | | \- org.json4s:json4s-core_2.11:jar:3.5.3:compile
[INFO] | | +- org.json4s:json4s-ast_2.11:jar:3.5.3:compile
[INFO] | | +- org.json4s:json4s-scalap_2.11:jar:3.5.3:compile
[INFO] | | \- org.scala-lang.modules:scala-xml_2.11:jar:1.0.6:compile
[INFO] | +- org.glassfish.jersey.core:jersey-client:jar:2.27:compile
[INFO] | | \- org.glassfish.hk2.external:javax.inject:jar:2.5.0-b42:compile
[INFO] | +- org.glassfish.jersey.core:jersey-common:jar:2.27:compile
[INFO] | | \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:compile
[INFO] | +- org.glassfish.jersey.core:jersey-server:jar:2.27:compile
[INFO] | | \- org.glassfish.jersey.media:jersey-media-jaxb:jar:2.27:compile
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet:jar:2.27:compile
[INFO] | +- org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.27:compile
[INFO] | +- com.clearspring.analytics:stream:jar:2.7.0:compile
[INFO] | +- io.dropwizard.metrics:metrics-core:jar:3.2.2:compile
[INFO] | +- io.dropwizard.metrics:metrics-jvm:jar:4.0.7:compile
[INFO] | +- io.dropwizard.metrics:metrics-json:jar:4.0.7:compile
[INFO] | +- io.dropwizard.metrics:metrics-graphite:jar:4.0.7:compile
[INFO] | | \- com.rabbitmq:amqp-client:jar:5.4.3:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.9.10.4:compile
[INFO] | +- com.fasterxml.jackson.module:jackson-module-scala_2.11:jar:2.9.10:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.9.10:compile
[INFO] | +- org.apache.ivy:ivy:jar:2.4.0:compile
[INFO] | +- oro:oro:jar:2.0.8:compile
[INFO] | +- net.razorvine:pyrolite:jar:4.13:compile
[INFO] | +- net.sf.py4j:py4j:jar:0.10.7:compile
[INFO] | \- org.apache.commons:commons-crypto:jar:1.0.0:compile
[INFO] +- org.apache.spark:spark-network-common_2.11:jar:2.4.6:compile
[INFO] | +- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.10:compile
[INFO] +- commons-codec:commons-codec:jar:1.13:compile
[INFO] +- org.apache.logging.log4j:log4j-1.2-api:jar:2.17.1:compile
[INFO] +- commons-lang:commons-lang:jar:2.6:compile
[INFO] +- com.datastax.spark:spark-cassandra-connector-unshaded_2.11:jar:2.4.0:compile
[INFO] | +- org.joda:joda-convert:jar:1.2:compile
[INFO] | +- joda-time:joda-time:jar:2.10.6:compile
[INFO] | +- io.netty:netty-all:jar:4.1.50.Final:compile
[INFO] | +- com.twitter:jsr166e:jar:1.1.0:compile
[INFO] | \- org.scala-lang:scala-reflect:jar:2.11.12:compile
[INFO] +- org.cassandraunit:cassandra-unit:jar:3.1.1.0:test
[INFO] | +- org.apache.cassandra:cassandra-all:jar:3.9:test
[INFO] | | +- net.jpountz.lz4:lz4:jar:1.3.0:test
[INFO] | | +- commons-cli:commons-cli:jar:1.1:compile
[INFO] | | +- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.4:test
[INFO] | | +- org.antlr:antlr:jar:3.5.2:test
[INFO] | | | \- org.antlr:ST4:jar:4.0.8:test
[INFO] | | +- org.antlr:antlr-runtime:jar:3.5.2:test
[INFO] | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.2:test
[INFO] | | +- com.googlecode.json-simple:json-simple:jar:1.1:test
[INFO] | | +- com.boundary:high-scale-lib:jar:1.0.6:test
[INFO] | | +- org.mindrot:jbcrypt:jar:0.3m:test
[INFO] | | +- com.addthis.metrics:reporter-config3:jar:3.0.0:test
[INFO] | | | \- com.addthis.metrics:reporter-config-base:jar:3.0.0:test
[INFO] | | +- com.thinkaurelius.thrift:thrift-server:jar:0.3.7:test
[INFO] | | | \- com.lmax:disruptor:jar:3.0.1:test
[INFO] | | +- org.apache.thrift:libthrift:jar:0.9.2:test
[INFO] | | +- org.apache.cassandra:cassandra-thrift:jar:3.9:test
[INFO] | | | +- de.jflex:jflex:jar:1.6.0:test
[INFO] | | | | \- org.apache.ant:ant:jar:1.7.0:test
[INFO] | | | | \- org.apache.ant:ant-launcher:jar:1.7.0:test
[INFO] | | | +- net.mintern:primitive:jar:1.0:test
[INFO] | | | +- com.github.rholder:snowball-stemmer:jar:1.3.0.581.1:test
[INFO] | | | \- com.googlecode.concurrent-trees:concurrent-trees:jar:2.4.0:test
[INFO] | | +- net.java.dev.jna:jna:jar:4.5.2:test
[INFO] | | +- com.github.jbellis:jamm:jar:0.3.0:test
[INFO] | | +- org.fusesource:sigar:jar:1.6.4:test
[INFO] | | +- org.eclipse.jdt.core.compiler:ecj:jar:4.4.2:test
[INFO] | | +- org.caffinitas.ohc:ohc-core:jar:0.4.3:test
[INFO] | | \- com.github.ben-manes.caffeine:caffeine:jar:2.6.2:test
[INFO] | \- com.google.guava:guava:jar:18.0:compile
[INFO] +- io.netty:netty:jar:3.10.6.Final:compile
[INFO] +- org.apache.hadoop:hadoop-client:jar:3.3.2:compile
[INFO] | +- org.apache.hadoop:hadoop-common:jar:3.3.2:compile
[INFO] | | +- org.apache.hadoop.thirdparty:hadoop-shaded-protobuf_3_7:jar:1.1.1:compile
[INFO] | | +- org.apache.hadoop.thirdparty:hadoop-shaded-guava:jar:1.1.1:compile
[INFO] | | +- org.apache.httpcomponents:httpclient:jar:4.5.12:compile
[INFO] | | | \- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[INFO] | | +- commons-io:commons-io:jar:2.8.0:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | | +- jakarta.activation:jakarta.activation-api:jar:1.2.1:runtime
[INFO] | | +- javax.servlet.jsp:jsp-api:jar:2.1:runtime
[INFO] | | +- com.sun.jersey:jersey-servlet:jar:1.19:compile
[INFO] | | +- commons-beanutils:commons-beanutils:jar:1.9.4:compile
[INFO] | | +- org.apache.commons:commons-configuration2:jar:2.1.1:compile
[INFO] | | +- org.apache.commons:commons-text:jar:1.4:compile
[INFO] | | +- com.google.re2j:re2j:jar:1.1:compile
[INFO] | | +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
[INFO] | | +- com.google.code.gson:gson:jar:2.8.6:compile
[INFO] | | +- org.apache.hadoop:hadoop-auth:jar:3.3.2:compile
[INFO] | | | +- com.nimbusds:nimbus-jose-jwt:jar:9.8.1:compile
[INFO] | | | | \- com.github.stephenc.jcip:jcip-annotations:jar:1.0-1:compile
[INFO] | | | \- org.apache.kerby:kerb-simplekdc:jar:1.0.1:compile
[INFO] | | | +- org.apache.kerby:kerb-client:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerby-config:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerb-common:jar:1.0.1:compile
[INFO] | | | | | \- org.apache.kerby:kerb-crypto:jar:1.0.1:compile
[INFO] | | | | +- org.apache.kerby:kerb-util:jar:1.0.1:compile
[INFO] | | | | \- org.apache.kerby:token-provider:jar:1.0.1:compile
[INFO] | | | \- org.apache.kerby:kerb-admin:jar:1.0.1:compile
[INFO] | | | +- org.apache.kerby:kerb-server:jar:1.0.1:compile
[INFO] | | | | \- org.apache.kerby:kerb-identity:jar:1.0.1:compile
[INFO] | | | \- org.apache.kerby:kerby-xdr:jar:1.0.1:compile
[INFO] | | +- org.apache.curator:curator-client:jar:4.2.0:compile
[INFO] | | +- org.apache.commons:commons-compress:jar:1.21:compile
[INFO] | | +- org.apache.kerby:kerb-core:jar:1.0.1:compile
[INFO] | | | \- org.apache.kerby:kerby-pkix:jar:1.0.1:compile
[INFO] | | | +- org.apache.kerby:kerby-asn1:jar:1.0.1:compile
[INFO] | | | \- org.apache.kerby:kerby-util:jar:1.0.1:compile
[INFO] | | +- org.codehaus.woodstox:stax2-api:jar:4.2.1:compile
[INFO] | | +- com.fasterxml.woodstox:woodstox-core:jar:5.0.3:compile
[INFO] | | \- dnsjava:dnsjava:jar:2.1.7:compile
[INFO] | +- org.apache.hadoop:hadoop-hdfs-client:jar:3.3.2:compile
[INFO] | | \- com.squareup.okhttp:okhttp:jar:2.7.5:compile
[INFO] | | \- com.squareup.okio:okio:jar:1.6.0:compile
[INFO] | +- org.apache.hadoop:hadoop-yarn-api:jar:3.3.2:compile
[INFO] | +- org.apache.hadoop:hadoop-yarn-client:jar:3.3.2:compile
[INFO] | | \- org.jline:jline:jar:3.9.0:compile
[INFO] | \- org.apache.hadoop:hadoop-annotations:jar:3.3.2:compile
[INFO] \- commons-configuration:commons-configuration:jar:1.10:compile
[INFO] \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] --------------------------------------------------------------------
how do I resolve snakeyaml error?
So, you had been using Snakeyaml with an earlier Spring Boot version, but with a newer Spring Boot version, Snakeyaml stopped working. This very much seems to be a version incompatibility issue.
Here: https://search.maven.org/artifact/org.springframework.boot/spring-boot-starter/2.1.15.RELEASE/jar
we can see this structure:
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starters</artifactId>
<version>2.1.15.RELEASE</version>
</parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>2.1.15.RELEASE</version>
<name>Spring Boot Starter</name>
<description>Core starter, including auto-configuration support, logging and YAML</description>
<url>https://projects.spring.io/spring-boot/#/spring-boot-parent/spring-boot-starters/spring-boot-starter</url>
<organization>
<name>Pivotal Software, Inc.</name>
<url>https://spring.io</url>
</organization>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<developers>
<developer>
<name>Pivotal</name>
<email>info#pivotal.io</email>
<organization>Pivotal Software, Inc.</organization>
<organizationUrl>https://www.spring.io</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:git://github.com/spring-projects/spring-boot.git</connection>
<developerConnection>scm:git:ssh://git#github.com/spring-projects/spring-boot.git</developerConnection>
<url>https://github.com/spring-projects/spring-boot</url>
</scm>
<issueManagement>
<system>Github</system>
<url>https://github.com/spring-projects/spring-boot/issues</url>
</issueManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot</artifactId>
<version>2.1.15.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>2.1.15.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
<version>2.1.15.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.1.16.RELEASE</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.23</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>
where the interesting part from our perspective is:
<artifactId>snakeyaml</artifactId>
<version>1.23</version>
so, you will likely need to ensure that your Snakeyaml version is 1.23.
We can create a software solution for the above case by separating the above functionalities in three objects as below. 1) The Snake Box Factory The factory will produce the Snake Boxes. The factory could be
A Maven Java project using geotools 15.2 generates an error : NoSuchFieldError: METER
pom.xml
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-data</artifactId>
<version>15.2</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-shapefile</artifactId>
<version>15.2</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-swing</artifactId>
<version>15.2</version>
</dependency>
When running the code, the error is generated when calling source.getFeatures(Filter.INCLUDE).
Stacktrace
java.lang.NoSuchFieldError: METER
at org.geotools.referencing.wkt.Parser.parseSpheroid(Parser.java:560)
at org.geotools.referencing.wkt.Parser.parseDatum(Parser.java:656)
at org.geotools.referencing.wkt.Parser.parseGeoGCS(Parser.java:867)
at org.geotools.referencing.wkt.Parser.parseProjCS(Parser.java:913)
at org.geotools.referencing.wkt.Parser.parseCoordinateReferenceSystem(Parser.java:225)
at org.geotools.referencing.wkt.Parser.parseCoordinateReferenceSystem(Parser.java:204)
I found out that SI.METER is linked to javax.measure but even if I add it to the project, the error is still present.
The result of mvn dependency:tree is
[INFO] +- com.vividsolutions:jts:jar:1.13:compile
[INFO] +- org.opengis:geoapi:jar:3.0.0:compile
[INFO] | \- javax.measure:jsr-275:jar:0.9.3:compile
[INFO] +- org.geotools:gt-data:jar:15.2:compile
[INFO] | +- org.geotools:gt-main:jar:15.2:compile
[INFO] | | \- org.geotools:gt-api:jar:15.2:compile
[INFO] | \- javax.media:jai_core:jar:1.1.3:compile
[INFO] +- org.geotools:gt-shapefile:jar:15.2:compile
[INFO] | \- org.jdom:jdom:jar:1.1.3:compile
[INFO] \- org.geotools:gt-swing:jar:15.2:compile
[INFO] +- org.geotools:gt-referencing:jar:15.2:compile
[INFO] | +- com.googlecode.efficient-java-matrix-library:core:jar:0.26:compile
[INFO] | +- commons-pool:commons-pool:jar:1.5.4:compile
[INFO] | +- org.geotools:gt-metadata:jar:15.2:compile
[INFO] | | \- org.geotools:gt-opengis:jar:15.2:compile
[INFO] | | \- net.java.dev.jsr-275:jsr-275:jar:1.0-beta-2:compile
[INFO] | +- jgridshift:jgridshift:jar:1.0:compile
[INFO] | \- net.sf.geographiclib:GeographicLib-Java:jar:1.44:compile
[INFO] +- org.geotools:gt-render:jar:15.2:compile
[INFO] | +- org.geotools:gt-coverage:jar:15.2:compile
[INFO] | | +- javax.media:jai_imageio:jar:1.1:compile
[INFO] | | +- it.geosolutions.imageio-ext:imageio-ext-tiff:jar:1.1.15:compile
[INFO] | | | +- it.geosolutions.imageio-ext:imageio-ext-utilities:jar:1.1.15:compile
[INFO] | | | +- it.geosolutions.imageio-ext:imageio-ext-geocore:jar:1.1.15:compile
[INFO] | | | | \- it.geosolutions.imageio-ext:imageio-ext-streams:jar:1.1.15:compile
[INFO] | | | \- javax.media:jai_codec:jar:1.1.3:compile
[INFO] | | +- org.jaitools:jt-zonalstats:jar:1.4.0:compile
[INFO] | | +- org.jaitools:jt-utils:jar:1.4.0:compile
[INFO] | | +- it.geosolutions.jaiext.affine:jt-affine:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.algebra:jt-algebra:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.bandmerge:jt-bandmerge:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.bandselect:jt-bandselect:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.bandcombine:jt-bandcombine:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.border:jt-border:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.buffer:jt-buffer:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.crop:jt-crop:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.iterators:jt-iterators:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.lookup:jt-lookup:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.mosaic:jt-mosaic:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.nullop:jt-nullop:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.rescale:jt-rescale:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.scale:jt-scale:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.stats:jt-stats:jar:1.0.11:compile
[INFO] | | | \- com.google.guava:guava:jar:17.0:compile
[INFO] | | +- it.geosolutions.jaiext.translate:jt-translate:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.utilities:jt-utilities:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.warp:jt-warp:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.zonal:jt-zonal:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.binarize:jt-binarize:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.format:jt-format:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.colorconvert:jt-colorconvert:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.errordiffusion:jt-errordiffusion:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.orderdither:jt-orderdither:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.colorindexer:jt-colorindexer:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.imagefunction:jt-imagefunction:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.piecewise:jt-piecewise:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.classifier:jt-classifier:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.rlookup:jt-rlookup:jar:1.0.11:compile
[INFO] | | +- it.geosolutions.jaiext.vectorbin:jt-vectorbin:jar:1.0.11:compile
[INFO] | | \- commons-io:commons-io:jar:2.1:compile
[INFO] | \- org.geotools:gt-cql:jar:15.2:compile
[INFO] \- com.miglayout:miglayout:jar:swing:3.7:compile
Am I missing a dependency ?
The answer was found with the help of #IanTurton
I upgraded the geotools version from 15.2 to 20.5. I also added the gt-epsg-hsql jar. The pom.xml is now like this :
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-api</artifactId>
<version>20.5</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-shapefile</artifactId>
<version>20.5</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-swing</artifactId>
<version>20.5</version>
</dependency>
<dependency>
<groupId>org.geotools</groupId>
<artifactId>gt-epsg-hsql</artifactId>
<version>20.5</version>
</dependency>
I also updated my code to use org.locationtech.jts.geom.Geometry instead of com.vividsolutions
I have the problem that maven is including 2 versions of the org.json package from two different dependencies.
I have the following:
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
But I also have the following outputs ( vaadin is the one I don't want ):
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.0.3.RELEASE:test
The dependency tree is showing the following two entries:
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.0.3.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.0.3.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.3.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.3:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.9.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.15.0:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.7.11:compile
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.7.11:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:runtime
AND
[INFO] +- org.json:json:jar:20171018:compile
I have tried the following but the annoying vaadin jar is still being included in the project:
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
</dependency>
<dependency>
<groupId>org.mbak.test</groupId>
<artifactId>mb-cloud-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
This is causing a method not found exception.
If we go and delete the JAR from the packaged war manually, everthing is fine!
Update
Below is the full stack trace:
[INFO] --- maven-dependency-plugin:3.0.2:tree (default-cli) # mb-doc-tools ---
[INFO] Verbose not supported since maven-dependency-plugin 3.0
[INFO] org.mbak.menios:mb-doc-tools:war:0.0.1-SNAPSHOT
[INFO] +- org.mbak.mb.meniosapp:mb-cloud-starter:jar:2.0.6.19-SNAPSHOT:compile
[INFO] | +- org.mbak.mb.meniosapp:mb-masc:jar:0.0.0-SNAPSHOT:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.9.6:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.9.0:compile
[INFO] | | +- de.escalon.hypermedia:hydra-spring:jar:0.3.1:compile
[INFO] | | | +- de.escalon.hypermedia:hydra-jsonld:jar:0.3.1:compile
[INFO] | | | | \- de.escalon.hypermedia:hydra-commons:jar:0.3.1:compile
[INFO] | | | +- de.escalon.hypermedia:spring-hateoas-ext:jar:0.3.1:compile
[INFO] | | | | \- com.damnhandy:handy-uri-templates:jar:2.1.4:compile
[INFO] | | | \- com.github.jsonld-java:jsonld-java:jar:0.5.1:compile
[INFO] | | | +- org.apache.httpcomponents:httpclient-cache:jar:4.5.6:compile
[INFO] | | | \- org.slf4j:jcl-over-slf4j:jar:1.7.25:runtime
[INFO] | | \- org.springframework.hateoas:spring-hateoas:jar:0.25.0.RELEASE:compile
[INFO] | +- org.springframework.data:spring-data-commons:jar:2.0.8.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.0.7.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-properties-migrator:jar:2.0.5.RELEASE:runtime
[INFO] | | \- org.springframework.boot:spring-boot-configuration-metadata:jar:2.0.5.RELEASE:runtime
[INFO] | +- org.jolokia:jolokia-core:jar:1.5.0:compile
[INFO] | | \- com.googlecode.json-simple:json-simple:jar:1.1.1:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-config:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-starter:jar:2.0.0.RELEASE:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-context:jar:2.0.0.RELEASE:compile
[INFO] | | | \- org.springframework.security:spring-security-rsa:jar:1.0.5.RELEASE:compile
[INFO] | | | \- org.bouncycastle:bcpkix-jdk15on:jar:1.56:compile
[INFO] | | | \- org.bouncycastle:bcprov-jdk15on:jar:1.56:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-config-client:jar:2.0.0.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-commons:jar:2.0.0.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-crypto:jar:5.0.6.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-eureka-client:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-core:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-eureka-client:jar:2.0.0.RELEASE:compile
[INFO] | | +- com.netflix.eureka:eureka-client:jar:1.9.2:compile
[INFO] | | | +- org.codehaus.jettison:jettison:jar:1.3.7:runtime
[INFO] | | | | \- stax:stax-api:jar:1.0.1:runtime
[INFO] | | | +- com.netflix.netflix-commons:netflix-eventbus:jar:0.3.0:runtime
[INFO] | | | | +- com.netflix.netflix-commons:netflix-appix:jar:0.3.0:runtime
[INFO] | | | | | +- commons-jxpath:commons-jxpath:jar:1.3:runtime
[INFO] | | | | | \- org.antlr:antlr-runtime:jar:3.4:runtime
[INFO] | | | | | +- org.antlr:stringtemplate:jar:3.2.1:runtime
[INFO] | | | | | \- antlr:antlr:jar:2.7.7:runtime
[INFO] | | | | \- org.apache.commons:commons-math:jar:2.2:runtime
[INFO] | | | +- com.netflix.archaius:archaius-core:jar:0.7.6:compile
[INFO] | | | +- javax.ws.rs:jsr311-api:jar:1.1.1:runtime
[INFO] | | | +- com.netflix.servo:servo-core:jar:0.12.21:runtime
[INFO] | | | +- com.sun.jersey:jersey-core:jar:1.19.1:runtime
[INFO] | | | +- com.sun.jersey:jersey-client:jar:1.19.1:runtime
[INFO] | | | +- com.sun.jersey.contribs:jersey-apache-client4:jar:1.19.1:runtime
[INFO] | | | +- com.google.inject:guice:jar:4.1.0:runtime
[INFO] | | | | \- aopalliance:aopalliance:jar:1.0:runtime
[INFO] | | | \- com.github.vlsi.compactmap:compactmap:jar:1.2.1:runtime
[INFO] | | | \- com.github.andrewoma.dexx:dexx-collections:jar:0.2:runtime
[INFO] | | +- com.netflix.eureka:eureka-core:jar:1.9.2:compile
[INFO] | | | \- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:runtime
[INFO] | | | +- javax.xml.stream:stax-api:jar:1.0-2:runtime
[INFO] | | | \- org.codehaus.woodstox:stax2-api:jar:3.1.4:runtime
[INFO] | | +- org.springframework.cloud:spring-cloud-starter-netflix-archaius:jar:2.0.0.RELEASE:compile
[INFO] | | | +- org.springframework.cloud:spring-cloud-netflix-archaius:jar:2.0.0.RELEASE:compile
[INFO] | | | \- commons-configuration:commons-configuration:jar:1.8:compile
[INFO] | | \- com.netflix.ribbon:ribbon-eureka:jar:2.2.5:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-zuul:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-zuul:jar:2.0.0.RELEASE:compile
[INFO] | | | \- com.netflix.netflix-commons:netflix-commons-util:jar:0.3.0:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-starter-netflix-hystrix:jar:2.0.0.RELEASE:compile
[INFO] | | | +- com.netflix.hystrix:hystrix-core:jar:1.5.12:compile
[INFO] | | | +- com.netflix.hystrix:hystrix-serialization:jar:1.5.12:compile
[INFO] | | | | \- com.fasterxml.jackson.module:jackson-module-afterburner:jar:2.9.6:runtime
[INFO] | | | +- com.netflix.hystrix:hystrix-metrics-event-stream:jar:1.5.12:compile
[INFO] | | | +- com.netflix.hystrix:hystrix-javanica:jar:1.5.12:compile
[INFO] | | | | \- org.ow2.asm:asm:jar:5.0.4:runtime
[INFO] | | | \- io.reactivex:rxjava-reactive-streams:jar:1.2.1:compile
[INFO] | | | \- org.reactivestreams:reactive-streams:jar:1.0.2:runtime
[INFO] | | \- com.netflix.zuul:zuul-core:jar:1.3.1:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-netflix-ribbon:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-netflix-ribbon:jar:2.0.0.RELEASE:compile
[INFO] | | +- com.netflix.ribbon:ribbon:jar:2.2.5:compile
[INFO] | | | +- com.netflix.ribbon:ribbon-transport:jar:2.2.5:runtime
[INFO] | | | | +- io.reactivex:rxnetty-contexts:jar:0.4.9:runtime
[INFO] | | | | \- io.reactivex:rxnetty-servo:jar:0.4.9:runtime
[INFO] | | | +- javax.inject:javax.inject:jar:1:runtime
[INFO] | | | \- io.reactivex:rxnetty:jar:0.4.9:runtime
[INFO] | | | +- io.netty:netty-codec-http:jar:4.1.25.Final:runtime
[INFO] | | | | \- io.netty:netty-codec:jar:4.1.25.Final:runtime
[INFO] | | | \- io.netty:netty-transport-native-epoll:jar:4.1.25.Final:runtime
[INFO] | | | +- io.netty:netty-common:jar:4.1.25.Final:runtime
[INFO] | | | +- io.netty:netty-buffer:jar:4.1.25.Final:runtime
[INFO] | | | +- io.netty:netty-transport-native-unix-common:jar:4.1.25.Final:runtime
[INFO] | | | \- io.netty:netty-transport:jar:4.1.25.Final:runtime
[INFO] | | | \- io.netty:netty-resolver:jar:4.1.25.Final:runtime
[INFO] | | +- com.netflix.ribbon:ribbon-core:jar:2.2.5:compile
[INFO] | | | \- commons-lang:commons-lang:jar:2.6:compile
[INFO] | | +- com.netflix.ribbon:ribbon-httpclient:jar:2.2.5:compile
[INFO] | | +- com.netflix.ribbon:ribbon-loadbalancer:jar:2.2.5:compile
[INFO] | | | \- com.netflix.netflix-commons:netflix-statistics:jar:0.1.1:runtime
[INFO] | | \- io.reactivex:rxjava:jar:1.3.8:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-openfeign:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.cloud:spring-cloud-openfeign-core:jar:2.0.0.RELEASE:compile
[INFO] | | +- io.github.openfeign:feign-core:jar:9.5.1:compile
[INFO] | | +- io.github.openfeign:feign-slf4j:jar:9.5.1:compile
[INFO] | | +- io.github.openfeign:feign-hystrix:jar:9.5.1:compile
[INFO] | | \- io.github.openfeign:feign-java8:jar:9.5.1:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-ribbon:jar:1.4.5.RELEASE:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-hystrix:jar:1.4.5.RELEASE:compile
[INFO] | +- io.github.openfeign.form:feign-form:jar:3.3.0:compile
[INFO] | | \- com.google.code.findbugs:annotations:jar:3.0.1:compile
[INFO] | | \- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] | +- io.github.openfeign.form:feign-form-spring:jar:3.3.0:compile
[INFO] | | \- commons-fileupload:commons-fileupload:jar:1.3.3:compile
[INFO] | +- com.keyholesoftware:khs-spring-boot-troublemaker-starter:jar:1.0.0:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.6:compile
[INFO] | +- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | +- net.logstash.logback:logstash-logback-encoder:jar:4.11:compile
[INFO] | +- ch.qos.logback:logback-access:jar:1.2.3:compile
[INFO] | +- commons-io:commons-io:jar:2.6:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-sleuth:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-aop:jar:2.0.5.RELEASE:compile
[INFO] | | | \- org.aspectj:aspectjweaver:jar:1.8.13:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-sleuth-core:jar:2.0.0.RELEASE:compile
[INFO] | | +- org.aspectj:aspectjrt:jar:1.8.13:compile
[INFO] | | +- io.zipkin.brave:brave:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-context-log4j2:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-instrumentation-spring-web:jar:5.1.0:compile
[INFO] | | | \- io.zipkin.brave:brave-instrumentation-http:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-instrumentation-spring-rabbit:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-instrumentation-kafka-clients:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-instrumentation-httpclient:jar:5.1.0:compile
[INFO] | | +- io.zipkin.brave:brave-instrumentation-httpasyncclient:jar:5.1.0:compile
[INFO] | | \- io.zipkin.brave:brave-instrumentation-spring-webmvc:jar:5.1.0:compile
[INFO] | | \- io.zipkin.brave:brave-instrumentation-servlet:jar:5.1.0:compile
[INFO] | +- org.springframework.cloud:spring-cloud-starter-zipkin:jar:2.0.0.RELEASE:compile
[INFO] | | \- org.springframework.cloud:spring-cloud-sleuth-zipkin:jar:2.0.0.RELEASE:compile
[INFO] | | +- io.zipkin.zipkin2:zipkin:jar:2.9.3:compile
[INFO] | | +- io.zipkin.reporter2:zipkin-reporter:jar:2.7.3:compile
[INFO] | | +- io.zipkin.reporter2:zipkin-sender-kafka11:jar:2.7.3:compile
[INFO] | | \- io.zipkin.reporter2:zipkin-sender-amqp-client:jar:2.7.3:compile
[INFO] | +- io.micrometer:micrometer-core:jar:1.0.6:compile
[INFO] | | +- org.hdrhistogram:HdrHistogram:jar:2.1.10:compile
[INFO] | | \- org.latencyutils:LatencyUtils:jar:2.0.3:compile
[INFO] | +- io.micrometer:micrometer-registry-prometheus:jar:1.0.6:compile
[INFO] | | \- io.prometheus:simpleclient_common:jar:0.4.0:compile
[INFO] | | \- io.prometheus:simpleclient:jar:0.4.0:compile
[INFO] | +- org.togglz:togglz-spring-boot-starter:jar:2.7.0-SNAPSHOT:compile
[INFO] | | \- org.togglz:togglz-spring-boot-autoconfigure:jar:2.7.0-SNAPSHOT:compile
[INFO] | | +- org.togglz:togglz-core:jar:2.7.0-SNAPSHOT:compile
[INFO] | | +- org.togglz:togglz-spring-core:jar:2.7.0-SNAPSHOT:compile
[INFO] | | \- org.togglz:togglz-spring-web:jar:2.7.0-SNAPSHOT:compile
[INFO] | +- org.togglz:togglz-console:jar:2.7.0-SNAPSHOT:compile
[INFO] | | \- org.togglz:togglz-servlet:jar:2.7.0-SNAPSHOT:compile
[INFO] | \- io.github.anand1st:sshd-shell-spring-boot-starter:jar:2.5:compile
[INFO] | +- org.apache.sshd:sshd-core:jar:1.6.0:compile
[INFO] | +- org.jline:jline-reader:jar:3.5.1:compile
[INFO] | | \- org.jline:jline-terminal:jar:3.5.1:compile
[INFO] | \- org.jline:jline-builtins:jar:3.5.1:compile
[INFO] +- com.google.code.gson:gson:jar:2.8.5:compile
[INFO] +- org.mbak.mb.meniosapp:mb-cloud-starter-test:jar:2.0.0-SNAPSHOT:test
[INFO] +- com.aspose:aspose-cells:jar:8.8.2:compile
[INFO] +- com.aspose.pdf:aspose-pdf-jdk16:jar:9.3.1.0:compile
[INFO] +- com.thoughtworks.xstream:xstream:jar:1.4.10:compile
[INFO] | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] +- com.stanfy:gson-xml-java:jar:0.1.7:compile
[INFO] +- org.json:json:jar:20171018:compile
[INFO] +- com.aspose:aspose-words:jar:jdk16:16.8.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.0.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.5.RELEASE:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0:compile
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.10.0:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] | | +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.19:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.0.5.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.9.6:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.9.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.0.5.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.34:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.34:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.34:compile
[INFO] | +- org.hibernate.validator:hibernate-validator:jar:6.0.12.Final:compile
[INFO] | | +- javax.validation:validation-api:jar:2.0.1.Final:compile
[INFO] | | \- org.jboss.logging:jboss-logging:jar:3.3.2.Final:compile
[INFO] | +- org.springframework:spring-web:jar:5.0.7.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.0.7.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.0.7.RELEASE:compile
[INFO] | +- org.springframework:spring-context:jar:5.0.7.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.0.7.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.0.5.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.0.5.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-actuator:jar:2.0.5.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:2.0.5.RELEASE:runtime
[INFO] | +- org.springframework.boot:spring-boot:jar:2.0.5.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.5.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.0.5.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.0.5.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.0.5.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.3:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:test
[INFO] | +- junit:junit:jar:4.12:test
[INFO] | +- org.assertj:assertj-core:jar:3.9.1:test
[INFO] | +- org.mockito:mockito-core:jar:2.15.0:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.7.11:compile
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.7.11:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | +- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
-here
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:runtime
[INFO] | +- org.springframework:spring-core:jar:5.0.9.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.0.7.RELEASE:compile
[INFO] | +- org.springframework:spring-test:jar:5.0.7.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.5.1:test
[INFO] +- org.springframework.restdocs:spring-restdocs-mockmvc:jar:2.0.0.RELEASE:test
[INFO] | \- javax.servlet:javax.servlet-api:jar:3.1.0:test
[INFO] +- io.rest-assured:rest-assured:jar:3.0.6:test
[INFO] | +- org.codehaus.groovy:groovy:jar:2.4.15:compile
[INFO] | +- org.codehaus.groovy:groovy-xml:jar:2.4.15:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.6:compile
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.4.10:compile
[INFO] | | \- commons-codec:commons-codec:jar:1.11:compile
[INFO] | +- org.apache.httpcomponents:httpmime:jar:4.5.6:test
[INFO] | \- org.ccil.cowan.tagsoup:tagsoup:jar:1.2.1:compile
[INFO] +- io.rest-assured:xml-path:jar:3.0.6:compile
[INFO] | +- io.rest-assured:rest-assured-common:jar:3.0.6:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] | \- javax.xml.bind:jaxb-api:jar:2.3.0:compile
[INFO] +- io.rest-assured:json-path:jar:3.0.6:compile
[INFO] | \- org.codehaus.groovy:groovy-json:jar:2.4.15:compile
[INFO] +- io.rest-assured:json-schema-validator:jar:3.0.6:test
[INFO] | \- com.github.fge:json-schema-validator:jar:2.2.6:test
[INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
[INFO] | +- joda-time:joda-time:jar:2.9.9:compile
[INFO] | +- com.googlecode.libphonenumber:libphonenumber:jar:6.2:test
[INFO] | +- com.github.fge:json-schema-core:jar:1.2.5:test
[INFO] | | +- com.github.fge:uri-template:jar:0.9:test
[INFO] | | | \- com.github.fge:mmb-simple:jar:1.1:test
[INFO] | | | \- com.github.fge:btf:jar:1.2:test
[INFO] | | +- com.github.fge:jackson-coreutils:jar:1.8:test
[INFO] | | \- org.mozilla:rhino:jar:1.7R4:test
[INFO] | +- javax.mail:mailapi:jar:1.4.3:test
[INFO] | | \- javax.activation:activation:jar:1.1:test
[INFO] | \- net.sf.jopt-simple:jopt-simple:jar:4.6:test
[INFO] +- org.springframework.restdocs:spring-restdocs-core:jar:2.0.0.RELEASE:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.9.6:compile
[INFO] +- org.springframework.restdocs:spring-restdocs-restassured:jar:2.0.0.RELEASE:compile
[INFO] +- capital.scalable:spring-auto-restdocs-core:jar:1.0.11:test
[INFO] | +- commons-collections:commons-collections:jar:3.2.2:runtime
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.25:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.8.0:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.14:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.14:compile
[INFO] | +- io.springfox:springfox-spi:jar:2.8.0:compile
[INFO] | | \- io.springfox:springfox-core:jar:2.8.0:compile
[INFO] | +- io.springfox:springfox-schema:jar:2.8.0:compile
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.8.0:compile
[INFO] | +- io.springfox:springfox-spring-web:jar:2.8.0:compile
[INFO] | | \- org.reflections:reflections:jar:0.9.11:compile
[INFO] | | \- org.javassist:javassist:jar:3.21.0-GA:compile
[INFO] | +- com.google.guava:guava:jar:20.0:compile
[INFO] | +- com.fasterxml:classmate:jar:1.3.4:compile
[INFO] | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] | \- org.mapstruct:mapstruct:jar:1.2.0.Final:compile
[INFO] +- io.springfox:springfox-swagger-ui:jar:2.8.0:compile
[INFO] \- org.projectlombok:lombok:jar:1.16.22:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
And because of vaadin I was getting:
org.springframework.web.util.NestedServletException: Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.json.JSONObject.entrySet()Ljava/util/Set;
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1006)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:974)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:877)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:851)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
Update
I tried the following but it still doesn't fail to exclude vaadin:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
Additionally, I am noticing the behavior is different when you do mvn spring-boot:run and when you run a packaged war file.
When running the packaged war file we have the error. When we do spring-boot:run we do not.
Weird fix
A colleague of mine fixed this by entering the following exclusion ( but I don't understand why it worked ):
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
Anyone got any ideas?
Similar/same Issue
https://github.com/spring-projects/spring-boot/issues/8706
https://github.com/spring-projects/spring-boot/issues/9248
Dependency still on classpath after Gradle dependency exclusion
You can specify the version which you want to use with dependency org.json and use that dependency above the one which you don't want.
A colleague of mine fixed this by entering the following exclusion ( but I don't understanf why it worked ):
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
</exclusion>
</exclusions>
</dependency>
I came across this problem when trying to integrate kafka, storm and druid.
Their corresponding versions are:
kafka_2.11-0.8.2.2
druid-0.9.1.1
apache-storm-0.10.1
log4j-over-slf4j.jar and slf4j-log4j12.jar conflitct... but i don't have log4j-over-slf4j
This question almost resembles my question except that I got this error even though I have excluded slf4j-log4j12.jar. This is how the error looks like in storm log that corresponding to a KafkaSpout(storm.kafka.KafkaSpout):
2016-08-02 14:54:50.446 STDIO [ERROR] SLF4J: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError.
2016-08-02 14:54:50.446 o.s.c.ConfigurationObjectFactory [INFO] Using method itself for [task.warmingPeriod] on [com.metamx.tranquility.config.PropertiesBasedConfig#taskWarmingPeriod()]
2016-08-02 14:54:50.446 STDIO [ERROR] SLF4J: See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details.
2016-08-02 14:54:50.447 b.s.util [ERROR] Async loop died!
java.lang.NoClassDefFoundError: Could not initialize class org.apache.log4j.Log4jLoggerFactory
This is my output for mvn dependency:tree
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) # CloudStormDruid ---
[INFO] com.cloud.xxx:CloudStormDruid:war:1.0
[INFO] +- io.druid:tranquility-core_2.11:jar:0.8.2:compile
[INFO] | +- org.scala-lang:scala-library:jar:2.11.7:compile
[INFO] | +- com.metamx:scala-util_2.11:jar:1.11.6:compile
[INFO] | | +- com.metamx:loglady_2.11:jar:1.1.0-mmx:compile
[INFO] | | +- com.metamx:http-client:jar:1.0.3:compile
[INFO] | | +- com.metamx:emitter:jar:0.3.3:compile
[INFO] | | +- com.metamx:server-metrics:jar:0.2.6:compile
[INFO] | | +- joda-time:joda-time:jar:2.1:compile
[INFO] | | +- org.joda:joda-convert:jar:1.6:compile
[INFO] | | +- org.scalaj:scalaj-time_2.11:jar:0.5:compile
[INFO] | | +- org.skife.config:config-magic:jar:0.9:compile
[INFO] | | +- com.google.guava:guava:jar:16.0.1:compile
[INFO] | | +- org.yaml:snakeyaml:jar:1.11:compile
[INFO] | | +- org.jdbi:jdbi:jar:2.27:compile
[INFO] | | +- com.h2database:h2:jar:1.3.158:compile
[INFO] | | +- c3p0:c3p0:jar:0.9.1.2:compile
[INFO] | | +- org.apache.zookeeper:zookeeper:jar:3.4.5:compile
[INFO] | | +- org.apache.curator:curator-recipes:jar:2.6.0:compile
[INFO] | | \- org.apache.curator:curator-x-discovery:jar:2.6.0:compile
[INFO] | +- com.metamx:java-util:jar:0.27.4:compile
[INFO] | | \- net.sf.opencsv:opencsv:jar:2.3:compile
[INFO] | +- io.netty:netty:jar:3.10.5.Final:compile
[INFO] | +- com.twitter:util-core_2.11:jar:6.30.0:compile
[INFO] | | +- com.twitter:util-function_2.11:jar:6.30.0:compile
[INFO] | | \- com.twitter:jsr166e:jar:1.0.0:compile
[INFO] | +- com.twitter:finagle-core_2.11:jar:6.31.0:compile
[INFO] | | +- com.twitter:util-app_2.11:jar:6.30.0:compile
[INFO] | | | \- com.twitter:util-registry_2.11:jar:6.30.0:compile
[INFO] | | +- com.twitter:util-cache_2.11:jar:6.30.0:compile
[INFO] | | +- com.twitter:util-codec_2.11:jar:6.30.0:compile
[INFO] | | +- com.twitter:util-collection_2.11:jar:6.30.0:compile
[INFO] | | +- com.twitter:util-hashing_2.11:jar:6.30.0:compile
[INFO] | | +- com.twitter:util-jvm_2.11:jar:6.30.0:compile
[INFO] | | +- com.twitter:util-lint_2.11:jar:6.30.0:compile
[INFO] | | +- com.twitter:util-logging_2.11:jar:6.30.0:compile
[INFO] | | \- com.twitter:util-stats_2.11:jar:6.30.0:compile
[INFO] | +- com.twitter:finagle-http_2.11:jar:6.31.0:compile
[INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.12:compile
[INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
[INFO] | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.4.6:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.4.6:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.4.6:compile
[INFO] | +- com.fasterxml.jackson.dataformat:jackson-dataformat-smile:jar:2.4.6:compile
[INFO] | +- com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.6:compile
[INFO] | +- com.fasterxml.jackson.module:jackson-module-scala_2.11:jar:2.4.5:compile
[INFO] | | +- org.scala-lang:scala-reflect:jar:2.11.2:compile
[INFO] | | +- com.thoughtworks.paranamer:paranamer:jar:2.6:compile
[INFO] | | \- com.google.code.findbugs:jsr305:jar:2.0.1:compile
[INFO] | +- io.druid:druid-server:jar:0.9.1:compile
[INFO] | | +- io.druid:druid-processing:jar:0.9.1:compile
[INFO] | | | +- io.druid:druid-common:jar:0.9.1:compile
[INFO] | | | | +- io.druid:druid-api:jar:0.9.1:compile
[INFO] | | | | | \- io.airlift:airline:jar:0.7:compile
[INFO] | | | | | \- com.google.code.findbugs:annotations:jar:2.0.3:compile
[INFO] | | | | +- org.apache.commons:commons-dbcp2:jar:2.0.1:compile
[INFO] | | | | +- commons-pool:commons-pool:jar:1.6:compile
[INFO] | | | | +- org.hibernate:hibernate-validator:jar:5.1.3.Final:compile
[INFO] | | | | | \- com.fasterxml:classmate:jar:1.0.0:compile
[INFO] | | | | +- javax.el:javax.el-api:jar:3.0.0:compile
[INFO] | | | | +- com.fasterxml.jackson.datatype:jackson-datatype-guava:jar:2.4.6:compile
[INFO] | | | | +- org.apache.logging.log4j:log4j-jul:jar:2.5:compile
[INFO] | | | | +- org.slf4j:jcl-over-slf4j:jar:1.7.12:compile
[INFO] | | | | +- net.java.dev.jets3t:jets3t:jar:0.9.4:compile
[INFO] | | | | | +- javax.activation:activation:jar:1.1.1:compile
[INFO] | | | | | \- com.jamesmurty.utils:java-xmlbuilder:jar:1.1:compile
[INFO] | | | | | \- net.iharder:base64:jar:2.3.8:compile
[INFO] | | | | \- org.antlr:antlr4-runtime:jar:4.5.1:compile
[INFO] | | | +- com.metamx:bytebuffer-collections:jar:0.2.4:compile
[INFO] | | | | +- com.metamx:extendedset:jar:1.3.9:compile
[INFO] | | | | \- org.roaringbitmap:RoaringBitmap:jar:0.5.16:compile
[INFO] | | | +- com.ning:compress-lzf:jar:1.0.3:compile
[INFO] | | | +- com.ibm.icu:icu4j:jar:4.8.1:compile
[INFO] | | | +- org.mozilla:rhino:jar:1.7R5:compile
[INFO] | | | \- org.mapdb:mapdb:jar:1.0.8:compile
[INFO] | | +- io.druid:druid-aws-common:jar:0.9.1:compile
[INFO] | | | \- com.amazonaws:aws-java-sdk:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-support:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-simpledb:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-simpleworkflow:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-storagegateway:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-route53:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-s3:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-importexport:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-sts:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-sqs:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-rds:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-redshift:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-elasticbeanstalk:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-glacier:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-iam:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-datapipeline:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-elasticloadbalancing:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-emr:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-elasticache:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-elastictranscoder:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-ec2:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-dynamodb:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-sns:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-cloudtrail:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-cloudwatch:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-logs:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-cognitoidentity:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-cognitosync:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-directconnect:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-cloudformation:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-cloudfront:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-kinesis:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-opsworks:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-ses:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-autoscaling:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-cloudsearch:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-cloudwatchmetrics:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-swf-libraries:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-codedeploy:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-codepipeline:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-kms:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-config:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-lambda:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-ecs:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-cloudhsm:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-ssm:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-workspaces:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-machinelearning:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-directory:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-efs:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-codecommit:jar:1.10.21:compile
[INFO] | | | +- com.amazonaws:aws-java-sdk-devicefarm:jar:1.10.21:compile
[INFO] | | | \- com.amazonaws:aws-java-sdk-core:jar:1.10.21:compile
[INFO] | | +- io.druid:druid-console:jar:0.0.3:compile
[INFO] | | +- commons-cli:commons-cli:jar:1.2:compile
[INFO] | | +- javax.inject:javax.inject:jar:1:compile
[INFO] | | +- org.glassfish:javax.el:jar:3.0.0:compile
[INFO] | | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:jar:2.4.6:compile
[INFO] | | | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-base:jar:2.4.6:compile
[INFO] | | | \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.4.6:compile
[INFO] | | +- com.fasterxml.jackson.jaxrs:jackson-jaxrs-smile-provider:jar:2.4.6:compile
[INFO] | | +- com.sun.jersey:jersey-server:jar:1.19:compile
[INFO] | | +- com.sun.jersey:jersey-core:jar:1.19:compile
[INFO] | | | \- javax.ws.rs:jsr311-api:jar:1.1.1:compile
[INFO] | | +- com.sun.jersey.contribs:jersey-guice:jar:1.19:compile
[INFO] | | | \- com.sun.jersey:jersey-servlet:jar:1.19:compile
[INFO] | | +- org.eclipse.jetty:jetty-server:jar:9.2.5.v20141112:compile
[INFO] | | | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] | | | +- org.eclipse.jetty:jetty-http:jar:9.2.5.v20141112:compile
[INFO] | | | \- org.eclipse.jetty:jetty-io:jar:9.2.5.v20141112:compile
[INFO] | | +- org.eclipse.jetty:jetty-proxy:jar:9.2.5.v20141112:compile
[INFO] | | | +- org.eclipse.jetty:jetty-client:jar:9.2.5.v20141112:compile
[INFO] | | | \- org.eclipse.jetty:jetty-util:jar:9.2.5.v20141112:compile
[INFO] | | +- io.tesla.aether:tesla-aether:jar:0.0.5:compile
[INFO] | | | +- org.eclipse.aether:aether-spi:jar:0.9.0.M2:compile
[INFO] | | | +- org.eclipse.aether:aether-util:jar:0.9.0.M2:compile
[INFO] | | | +- org.eclipse.aether:aether-impl:jar:0.9.0.M2:compile
[INFO] | | | +- org.eclipse.aether:aether-connector-file:jar:0.9.0.M2:compile
[INFO] | | | +- io.tesla.aether:aether-connector-okhttp:jar:0.0.9:compile
[INFO] | | | | +- com.squareup.okhttp:okhttp:jar:1.0.2:compile
[INFO] | | | | \- org.apache.maven.wagon:wagon-provider-api:jar:2.4:compile
[INFO] | | | +- org.apache.maven:maven-aether-provider:jar:3.1.1:compile
[INFO] | | | | +- org.apache.maven:maven-model:jar:3.1.1:compile
[INFO] | | | | +- org.apache.maven:maven-model-builder:jar:3.1.1:compile
[INFO] | | | | +- org.apache.maven:maven-repository-metadata:jar:3.1.1:compile
[INFO] | | | | \- org.codehaus.plexus:plexus-utils:jar:3.0.15:compile
[INFO] | | | +- org.apache.maven:maven-settings-builder:jar:3.1.1:compile
[INFO] | | | | \- org.codehaus.plexus:plexus-interpolation:jar:1.19:compile
[INFO] | | | \- org.apache.maven:maven-settings:jar:3.1.1:compile
[INFO] | | +- org.eclipse.aether:aether-api:jar:0.9.0.M2:compile
[INFO] | | +- net.spy:spymemcached:jar:2.11.7:compile
[INFO] | | +- net.jpountz.lz4:lz4:jar:1.3.0:compile
[INFO] | | +- org.eclipse.jetty:jetty-servlet:jar:9.2.5.v20141112:compile
[INFO] | | | \- org.eclipse.jetty:jetty-security:jar:9.2.5.v20141112:compile
[INFO] | | +- org.eclipse.jetty:jetty-servlets:jar:9.2.5.v20141112:compile
[INFO] | | | \- org.eclipse.jetty:jetty-continuation:jar:9.2.5.v20141112:compile
[INFO] | | +- com.ircclouds.irc:irc-api:jar:1.0-0014:compile
[INFO] | | +- com.maxmind.geoip2:geoip2:jar:0.4.0:compile
[INFO] | | | +- com.maxmind.maxminddb:maxminddb:jar:0.2.0:compile
[INFO] | | | \- com.google.http-client:google-http-client-jackson2:jar:1.15.0-rc:compile
[INFO] | | +- org.apache.derby:derby:jar:10.11.1.1:compile
[INFO] | | +- org.apache.derby:derbynet:jar:10.11.1.1:compile
[INFO] | | +- org.apache.derby:derbyclient:jar:10.11.1.1:compile
[INFO] | | \- org.apache.commons:commons-math3:jar:3.6.1:compile
[INFO] | +- com.google.inject:guice:jar:4.0:compile
[INFO] | +- com.google.inject.extensions:guice-servlet:jar:4.0:compile
[INFO] | +- com.google.inject.extensions:guice-multibindings:jar:4.0:compile
[INFO] | \- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] +- io.druid:tranquility-storm_2.11:jar:0.8.2:compile
[INFO] +- org.apache.storm:storm-core:jar:0.10.1:provided
[INFO] | +- com.esotericsoftware.kryo:kryo:jar:2.21:provided
[INFO] | | +- com.esotericsoftware.reflectasm:reflectasm:jar:shaded:1.07:provided
[INFO] | | | \- org.ow2.asm:asm:jar:4.0:provided
[INFO] | | \- com.esotericsoftware.minlog:minlog:jar:1.2:provided
[INFO] | +- org.clojure:clojure:jar:1.6.0:provided
[INFO] | +- com.googlecode.disruptor:disruptor:jar:2.10.4:provided
[INFO] | +- org.apache.logging.log4j:log4j-api:jar:2.1:provided
[INFO] | +- org.apache.logging.log4j:log4j-core:jar:2.1:provided
[INFO] | +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.1:provided
[INFO] | +- org.slf4j:log4j-over-slf4j:jar:1.6.6:provided
[INFO] | \- org.apache.hadoop:hadoop-auth:jar:2.4.0:provided
[INFO] +- org.apache.storm:storm-kafka:jar:0.10.1:compile
[INFO] | +- commons-io:commons-io:jar:2.4:compile
[INFO] | +- org.apache.curator:curator-framework:jar:2.5.0:compile
[INFO] | | \- org.apache.curator:curator-client:jar:2.5.0:compile
[INFO] | +- commons-lang:commons-lang:jar:2.5:compile
[INFO] | \- com.googlecode.json-simple:json-simple:jar:1.1:compile
[INFO] +- org.apache.kafka:kafka_2.11:jar:0.8.2.2:compile
[INFO] | +- org.scala-lang.modules:scala-xml_2.11:jar:1.0.2:compile
[INFO] | +- com.yammer.metrics:metrics-core:jar:2.2.0:compile
[INFO] | +- net.sf.jopt-simple:jopt-simple:jar:3.2:compile
[INFO] | +- org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.0.2:compile
[INFO] | +- com.101tec:zkclient:jar:0.3:compile
[INFO] | \- org.apache.kafka:kafka-clients:jar:0.8.2.2:compile
[INFO] | \- org.xerial.snappy:snappy-java:jar:1.1.1.7:compile
[INFO] +- com.jayway.jsonpath:json-path:jar:2.0.0:compile
[INFO] | \- net.minidev:json-smart:jar:2.1.1:compile
[INFO] | \- net.minidev:asm:jar:1.0.2:compile
[INFO] | \- asm:asm:jar:3.3.1:compile
[INFO] +- com.cloud.base:CloudUtil:jar:1.0:compile
[INFO] | +- com.aliyun.odps:odps-sdk-core:jar:0.20.7-public:compile
[INFO] | | +- com.aliyun.odps:odps-sdk-commons:jar:0.20.7-public:compile
[INFO] | | | \- com.jcabi:jcabi-aspects:jar:0.20.1:compile
[INFO] | | | +- com.jcabi:jcabi-log:jar:0.15:compile
[INFO] | | | \- org.aspectj:aspectjrt:jar:1.8.2:compile
[INFO] | | +- commons-codec:commons-codec:jar:1.9:compile
[INFO] | | +- net.sourceforge.javacsv:javacsv:jar:2.0:compile
[INFO] | | +- org.bouncycastle:bcprov-jdk15on:jar:1.52:compile
[INFO] | | \- com.google.protobuf:protobuf-java:jar:2.4.1:compile
[INFO] | +- org.apache.struts:struts2-core:jar:2.3.15.1:compile
[INFO] | | +- org.apache.struts.xwork:xwork-core:jar:2.3.15.1:compile
[INFO] | | | \- asm:asm-commons:jar:3.3:compile
[INFO] | | | \- asm:asm-tree:jar:3.3:compile
[INFO] | | +- org.freemarker:freemarker:jar:2.3.19:compile
[INFO] | | \- ognl:ognl:jar:3.0.6:compile
[INFO] | +- org.apache.struts:struts2-spring-plugin:jar:2.3.15.1:compile
[INFO] | +- org.apache.struts:struts2-convention-plugin:jar:2.3.15.1:compile
[INFO] | +- org.apache.struts:struts2-json-plugin:jar:2.3.15.1:compile
[INFO] | +- com.thoughtworks.xstream:xstream:jar:1.4.5:compile
[INFO] | | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.2.1:compile
[INFO] | +- com.lowagie:itext:jar:2.1.7:compile
[INFO] | | +- bouncycastle:bcmail-jdk14:jar:138:compile
[INFO] | | +- bouncycastle:bcprov-jdk14:jar:138:compile
[INFO] | | \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile
[INFO] | | +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile
[INFO] | | \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile
[INFO] | +- com.lowagie:itextasian:jar:1.0:compile
[INFO] | +- xerces:xercesImpl:jar:2.11.0:compile
[INFO] | | \- xml-apis:xml-apis:jar:1.4.01:compile
[INFO] | +- net.sourceforge.jexcelapi:jxl:jar:2.6.10:compile
[INFO] | +- commons-fileupload:commons-fileupload:jar:1.3:compile
[INFO] | +- org.apache.commons:commons-compress:jar:1.6:compile
[INFO] | | \- org.tukaani:xz:jar:1.4:compile
[INFO] | +- org.apache.poi:poi:jar:3.9:compile
[INFO] | +- org.apache.poi:poi-ooxml:jar:3.9:compile
[INFO] | | \- org.apache.poi:poi-ooxml-schemas:jar:3.9:compile
[INFO] | | \- org.apache.xmlbeans:xmlbeans:jar:2.3.0:compile
[INFO] | | \- stax:stax-api:jar:1.0.1:compile
[INFO] | +- jaxen:jaxen:jar:1.1.6:compile
[INFO] | +- net.sf.json-lib:json-lib:jar:jdk15:2.4:compile
[INFO] | | +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] | | \- net.sf.ezmorph:ezmorph:jar:1.0.6:compile
[INFO] | +- com.alibaba:dubbo:jar:2.5.3:compile
[INFO] | +- org.apache.zookeeper:zookeeper:pom:3.4.5:compile
[INFO] | | \- jline:jline:jar:0.9.94:compile
[INFO] | +- redis.clients:jedis:jar:2.7.2:compile
[INFO] | | \- org.apache.commons:commons-pool2:jar:2.3:compile
[INFO] | +- org.springframework.data:spring-data-redis:jar:1.6.0.RELEASE:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.1:compile
[INFO] | | \- org.apache.httpcomponents:httpcore:jar:4.4.3:compile
[INFO] | \- org.jdom:jdom:jar:1.1.3:compile
[INFO] +- javax.servlet:jstl:jar:1.2:compile
[INFO] +- commons-beanutils:commons-beanutils:jar:1.8.3:compile
[INFO] | \- commons-logging:commons-logging:jar:1.1.1:compile
[INFO] +- javax.servlet.jsp:jsp-api:jar:2.2.1-b03:provided
[INFO] +- javax.servlet:servlet-api:jar:2.5:provided
[INFO] +- org.slf4j:slf4j-api:jar:1.7.6:compile
[INFO] +- com.alibaba:fastjson:jar:1.1.24:compile
[INFO] +- org.aspectj:aspectjweaver:jar:1.7.0:compile
[INFO] +- com.alibaba:druid:jar:1.0.3:compile
[INFO] +- mysql:mysql-connector-java:jar:5.1.21:compile
[INFO] +- junit:junit:jar:4.10:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.1:test
[INFO] +- org.hibernate:hibernate-core:jar:4.1.7.Final:compile
[INFO] | +- antlr:antlr:jar:2.7.7:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.1.0.GA:compile
[INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec:jar:1.0.0.Final:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | +- org.hibernate.javax.persistence:hibernate-jpa-2.0-api:jar:1.0.1.Final:compile
[INFO] | +- org.javassist:javassist:jar:3.15.0-GA:compile
[INFO] | \- org.hibernate.common:hibernate-commons-annotations:jar:4.0.1.Final:compile
[INFO] +- org.hibernate:hibernate-ehcache:jar:4.1.7.Final:compile
[INFO] | \- net.sf.ehcache:ehcache-core:jar:2.4.3:compile
[INFO] +- org.springframework:spring-core:jar:3.2.4.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:3.2.4.RELEASE:compile
[INFO] | \- org.springframework:spring-aop:jar:3.2.4.RELEASE:compile
[INFO] +- org.springframework:spring-jdbc:jar:3.2.4.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:3.2.4.RELEASE:compile
[INFO] +- org.springframework:spring-beans:jar:3.2.4.RELEASE:compile
[INFO] +- org.springframework:spring-web:jar:3.2.4.RELEASE:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] +- org.springframework:spring-expression:jar:3.2.4.RELEASE:compile
[INFO] +- org.springframework:spring-orm:jar:3.2.4.RELEASE:compile
[INFO] +- org.projectreactor:reactor-spring:jar:1.0.1.RELEASE:compile
[INFO] | \- org.projectreactor:reactor-core:jar:1.0.1.RELEASE:compile
[INFO] | \- com.lmax:disruptor:jar:3.2.0:compile
[INFO] +- org.springframework:spring-test:jar:3.2.4.RELEASE:test
[INFO] \- org.springframework:spring-context-support:jar:3.2.4.RELEASE:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
I excluded slf4j-log4j12.jar for kafka as such in my pom.xml:
<dependency>
<groupId>org.apache.storm</groupId>
<artifactId>storm-kafka</artifactId>
<version>0.10.1</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.11</artifactId>
<version>0.8.2.2</version>
<exclusions>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
And I used maven-assembly-plugin to build a distribution bin for storm-nimbus to parse:
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<mainClass>com.cloud.storm.topology.TopologyService</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
What would be the cause of this problem? What would I have to do if I want to exclude slf4j-log4j12 and keep log4j-over-slf4j?
Thanks in Advance.
Find if there is a org.slf4j.impl.Log4jLoggerFactory class in your topology jar.
For example, activemq-all jar has this class, and will cause slf4j-log4j12.jar detected.
When you exclude it from your kafka dependency, you are excluding the logging dependencies storm requires that were coming transitively. To solve it, you need to declare it explicitly by including slf4j-api and log4j-over-sl4j in your dependency list, as below:
<dependencies>
<!-- (...) some other dependencies (...) -->
<dependency>
<!-- should be excluded from the shaded binary-->
<groupId>org.apache.storm</groupId>
<artifactId>storm-core</artifactId>
<version>${storm.version}</version>
</dependency>
<dependency>
<groupId>org.apache.storm</groupId>
<artifactId>storm-kafka</artifactId>
<version>${storm-kafka.version}</version>
</dependency>
<dependency>
<groupId>org.apache.kafka</groupId>
<artifactId>kafka_2.11</artifactId>
<version>${kafka.version}</version>
<exclusions>
<exclusion>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
</exclusion>
<exclusion>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>${log4j.version}</version>
</dependency>
</dependencies>
Just as a notice, I normally use maven-shade-plugin to build the binary package for nimbus, as this is the recommended way and makes your life easier by providing the ability to merge manifest entries. This can be done as below:
<plugins>
<!-- (...) some other plugins (...) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<configuration>
<minimizeJar>false</minimizeJar>
<artifactSet>
<excludes>
<exclude>org.apache.storm:storm-core</exclude>
</excludes>
</artifactSet>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>MyTopologyMainClassFQDN</mainClass>
</transformer>
</transformers>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>