GoogleCredentialas.getApplicationDefault NoSuchMethodError - maven

I'm trying to use the cloud bigtable v2 API and while I know it works in my Apache Beam job, when I try to use the API directly I encounter this error:
Caused by: java.lang.NoSuchMethodError: com.google.auth.oauth2.GoogleCredentials.getApplicationDefault(Lcom/google/api/client/http/HttpTransport;)Lcom/google/auth/oauth2/GoogleCredentials;
at com.google.cloud.bigtable.config.CredentialFactory.getApplicationDefaultCredential(CredentialFactory.java:207)
at com.google.cloud.bigtable.config.CredentialFactory.getCredentials(CredentialFactory.java:112)
at com.google.cloud.bigtable.grpc.io.CredentialInterceptorCache.getCredentialsInterceptor(CredentialInterceptorCache.java:94)
at com.google.cloud.bigtable.grpc.BigtableSession.<init>(BigtableSession.java:272)
I understand that this is some sort of maven/dependency related issue but I'm new to maven and java so I don't really know how to go about debugging this.
How do I triage this?
[INFO] +- org.apache.beam:beam-sdks-java-core:jar:0.6.0:compile
[INFO] | +- org.apache.beam:beam-sdks-common-runner-api:jar:0.6.0:compile
[INFO] | +- io.grpc:grpc-auth:jar:1.0.1:compile
[INFO] | +- io.grpc:grpc-core:jar:1.0.1:compile
[INFO] | | \- io.grpc:grpc-context:jar:1.0.1:compile
[INFO] | +- io.grpc:grpc-netty:jar:1.0.1:compile
[INFO] | | \- io.netty:netty-codec-http2:jar:4.1.3.Final:compile (version selected from constraint [4.1.3.Final,4.1.3.Final])
[INFO] | | \- io.netty:netty-codec-http:jar:4.1.3.Final:compile
[INFO] | +- io.grpc:grpc-stub:jar:1.0.1:compile
[INFO] | +- io.grpc:grpc-all:jar:1.0.1:runtime
[INFO] | | +- io.grpc:grpc-protobuf:jar:1.0.1:compile
[INFO] | | | \- com.google.protobuf:protobuf-java-util:jar:3.0.0:compile
[INFO] | | | \- com.google.code.gson:gson:jar:2.3:compile
[INFO] | | +- io.grpc:grpc-protobuf-nano:jar:1.0.1:runtime
[INFO] | | | \- com.google.protobuf.nano:protobuf-javanano:jar:3.0.0-alpha-5:runtime
[INFO] | | \- io.grpc:grpc-okhttp:jar:1.0.1:runtime
[INFO] | | +- com.squareup.okio:okio:jar:1.6.0:runtime
[INFO] | | \- com.squareup.okhttp:okhttp:jar:2.5.0:runtime
[INFO] | +- io.grpc:grpc-protobuf-lite:jar:1.0.1:compile
[INFO] | +- com.google.protobuf:protobuf-lite:jar:3.0.1:compile
[INFO] | +- com.google.auth:google-auth-library-credentials:jar:0.6.0:compile
[INFO] | +- com.google.auth:google-auth-library-oauth2-http:jar:0.6.0:compile
[INFO] | +- io.netty:netty-handler:jar:4.1.3.Final:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.3.Final:compile
[INFO] | | | \- io.netty:netty-common:jar:4.1.3.Final:compile
[INFO] | | +- io.netty:netty-transport:jar:4.1.3.Final:compile
[INFO] | | | \- io.netty:netty-resolver:jar:4.1.3.Final:compile
[INFO] | | \- io.netty:netty-codec:jar:4.1.3.Final:compile
[INFO] | +- com.google.api.grpc:grpc-google-pubsub-v1:jar:0.1.0:compile
[INFO] | | +- com.google.api.grpc:grpc-google-common-protos:jar:0.1.0:compile
[INFO] | | \- com.google.api.grpc:grpc-google-iam-v1:jar:0.1.0:compile
[INFO] | +- com.google.apis:google-api-services-cloudresourcemanager:jar:v1-rev6-1.22.0:compile
[INFO] | +- com.google.apis:google-api-services-storage:jar:v1-rev71-1.22.0:compile
[INFO] | +- com.google.http-client:google-http-client-jackson:jar:1.22.0:compile
[INFO] | +- com.google.http-client:google-http-client-jackson2:jar:1.22.0:compile
[INFO] | +- com.google.http-client:google-http-client-protobuf:jar:1.22.0:compile
[INFO] | +- com.google.oauth-client:google-oauth-client:jar:1.22.0:compile
[INFO] | +- com.google.cloud.bigdataoss:gcsio:jar:1.4.5:compile
[INFO] | | +- com.google.api-client:google-api-client-java6:jar:1.20.0:compile
[INFO] | | +- com.google.api-client:google-api-client-jackson2:jar:1.20.0:compile
[INFO] | | \- com.google.oauth-client:google-oauth-client-java6:jar:1.20.0:compile
[INFO] | +- com.google.cloud.bigdataoss:util:jar:1.4.5:compile
[INFO] | +- com.google.protobuf:protobuf-java:jar:3.1.0:compile
[INFO] | +- com.google.code.findbugs:jsr305:jar:3.0.1:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.7.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.7.2:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.7.2:compile
[INFO] | +- net.bytebuddy:byte-buddy:jar:1.6.8:compile
[INFO] | +- org.apache.avro:avro:jar:1.8.1: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.thoughtworks.paranamer:paranamer:jar:2.7:compile
[INFO] | | \- org.tukaani:xz:jar:1.5:compile
[INFO] | +- org.xerial.snappy:snappy-java:jar:1.1.2.1:compile
[INFO] | +- org.apache.commons:commons-compress:jar:1.9:compile
[INFO] | \- org.apache.commons:commons-lang3:jar:3.5:compile
[INFO] +- org.apache.beam:beam-sdks-java-io-google-cloud-platform:jar:0.6.0:compile
[INFO] | +- com.google.cloud.datastore:datastore-v1-proto-client:jar:1.4.0:compile
[INFO] | +- com.google.cloud.datastore:datastore-v1-protos:jar:1.3.0:compile
[INFO] | +- com.google.cloud.bigtable:bigtable-protos:jar:0.9.2:compile
[INFO] | +- com.google.cloud.bigtable:bigtable-client-core:jar:0.9.2:compile
[INFO] | | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | | +- com.google.auth:google-auth-library-appengine:jar:0.4.0:compile
[INFO] | | | \- com.google.appengine:appengine-api-1.0-sdk:jar:1.9.34:compile
[INFO] | | \- io.dropwizard.metrics:metrics-core:jar:3.1.2:compile
[INFO] | \- io.netty:netty-tcnative-boringssl-static:jar:1.1.33.Fork18:runtime
[INFO] +- org.apache.beam:beam-sdks-java-extensions-json-jackson:jar:0.6.0:compile
[INFO] +- com.google.api-client:google-api-client:jar:1.22.0:compile
[INFO] +- com.google.apis:google-api-services-bigquery:jar:v2-rev295-1.22.0:compile
[INFO] +- com.google.http-client:google-http-client:jar:1.22.0:compile
[INFO] | \- org.apache.httpcomponents:httpclient:jar:4.0.1:compile
[INFO] | +- org.apache.httpcomponents:httpcore:jar:4.0.1:compile
[INFO] | \- commons-codec:commons-codec:jar:1.3:compile
[INFO] +- com.google.apis:google-api-services-pubsub:jar:v1-rev10-1.22.0:compile
[INFO] +- joda-time:joda-time:jar:2.4:compile
[INFO] +- com.google.cloud:google-cloud-storage:jar:0.10.0-beta:compile
[INFO] | \- com.google.cloud:google-cloud-core:jar:0.10.0-alpha:compile
[INFO] | +- com.google.api-client:google-api-client-appengine:jar:1.21.0:compile
[INFO] | | +- com.google.oauth-client:google-oauth-client-appengine:jar:1.21.0:compile
[INFO] | | | +- com.google.oauth-client:google-oauth-client-servlet:jar:1.21.0:compile
[INFO] | | | | \- com.google.http-client:google-http-client-jdo:jar:1.21.0:compile
[INFO] | | | \- javax.servlet:servlet-api:jar:2.5:compile
[INFO] | | +- com.google.api-client:google-api-client-servlet:jar:1.21.0:compile
[INFO] | | | \- javax.jdo:jdo2-api:jar:2.3-eb:compile
[INFO] | | | \- javax.transaction:transaction-api:jar:1.1:compile
[INFO] | | \- com.google.http-client:google-http-client-appengine:jar:1.21.0:compile
[INFO] | +- org.json:json:jar:20151123:compile
[INFO] | \- com.google.api:gax:jar:0.4.0:compile
[INFO] | +- com.google.inject:guice:jar:4.0:compile
[INFO] | | +- javax.inject:javax.inject:jar:1:compile
[INFO] | | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] | \- com.google.auto.value:auto-value:jar:1.2:compile
[INFO] +- com.google.guava:guava:jar:21.0:compile
[INFO] +- eu.bitwalker:UserAgentUtils:jar:1.20:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.14:compile
[INFO] +- org.slf4j:slf4j-jdk14:jar:1.7.14:runtime
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:compile
[INFO] +- junit:junit:jar:4.12:compile
[INFO] | \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] +- org.apache.beam:beam-runners-direct-java:jar:0.6.0:runtime
[INFO] | +- org.apache.beam:beam-runners-core-construction-java:jar:0.6.0:runtime
[INFO] | \- org.apache.beam:beam-runners-core-java:jar:0.6.0:runtime
[INFO] \- org.apache.beam:beam-sdks-java-io-kafka:jar:0.6.0:compile
[INFO] +- org.apache.kafka:kafka-clients:jar:0.9.0.1:compile
[INFO] | \- net.jpountz.lz4:lz4:jar:1.2.0:compile
[INFO] \- org.springframework:spring-expression:jar:4.3.5.RELEASE:compile
[INFO] \- org.springframework:spring-core:jar:4.3.5.RELEASE:compile

The 0.9.2 client uses an older version of google-auth-library-oauth2-http (0.4.0) than the Beam SDK (0.6.0). The GoogleCredentials object seems to have changed between versions.
The Beam SDK will be using the 0.9.6 cloud-bigtable-client in the near future, which should fix the problem.
Alternatively, you can use the the HBase oriented CloudBigtableIO connector, which shades the dependencies, and doesn't have this specific problem.

Related

SLF4J multiple bindings Spring boot with weblogic

I updated my spring boot application version to 5.3.24, and I excluded the logback from all dependencies, I checked it with dependency:tree
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.2.1.RELEASE:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.25:runtime
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.2.1.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.10.0:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.10.0:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.10.0:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-validation:jar:2.2.1.RELEASE:compile
[INFO] | | +- jakarta.validation:jakarta.validation-api:jar:2.0.1:compile
[INFO] | | \- org.hibernate.validator:hibernate-validator:jar:6.0.18.Final:compile
[INFO] | +- org.springframework:spring-web:jar:5.2.1.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.2.1.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.1.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.2.1.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.2.1.RELEASE:provided
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.27:provided
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:9.0.27:provided
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.27:provided
[INFO] +- org.springframework.boot:spring-boot-starter-integration:jar:2.2.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.2.1.RELEASE:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.4:compile
[INFO] | \- org.springframework.integration:spring-integration-core:jar:5.2.1.RELEASE:compile
[INFO] | +- io.projectreactor:reactor-core:jar:3.3.0.RELEASE:compile
[INFO] | | \- org.reactivestreams:reactive-streams:jar:1.0.3:compile
[INFO] | \- org.springframework.retry:spring-retry:jar:1.2.4.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.2.1.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.2.1.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.2.1.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] | | \- org.ow2.asm:asm:jar:5.0.4:test
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.2:compile
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.5.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.5.2:test
[INFO] | | | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | | | \- org.junit.platform:junit-platform-commons:jar:1.5.2:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.5.2:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.5.2:test
[INFO] | +- org.junit.vintage:junit-vintage-engine:jar:5.5.2:test
[INFO] | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test
[INFO] | | +- org.junit.platform:junit-platform-engine:jar:1.5.2:test
[INFO] | | \- junit:junit:jar:4.12:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:3.1.0:test
[INFO] | +- org.assertj:assertj-core:jar:3.13.2:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.1:test
[INFO] | +- org.mockito:mockito-core:jar:3.1.0:test
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.10.2:compile
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.10.2:test
[INFO] | | \- org.objenesis:objenesis:jar:2.6: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-core:jar:5.2.1.RELEASE:compile
[INFO] | +- org.springframework:spring-test:jar:5.2.1.RELEASE:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.6.3:test
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.2.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.2.1.RELEASE:compile
[INFO] | | +- com.zaxxer:HikariCP:jar:3.4.1:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:5.2.1.RELEASE:compile
[INFO] | +- jakarta.activation:jakarta.activation-api:jar:1.2.1:compile
[INFO] | +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] | +- jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.4.8.Final:compile
[INFO] | | +- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.24.0-GA:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.0.5.Final:compile
[INFO] | | +- org.dom4j:dom4j:jar:2.1.1:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.0.Final:compile
[INFO] | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.2:compile
[INFO] | | +- org.glassfish.jaxb:txw2:jar:2.3.2:compile
[INFO] | | +- com.sun.istack:istack-commons-runtime:jar:3.0.8:compile
[INFO] | | +- org.jvnet.staxex:stax-ex:jar:1.8.1:compile
[INFO] | | \- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.16:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.2.1.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:2.2.1.RELEASE:compile
[INFO] | | \- org.springframework:spring-orm:jar:5.2.1.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.2.1.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-log4j2:jar:2.2.1.RELEASE:compile
[INFO] | +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.12.1:compile
[INFO] | | +- org.slf4j:slf4j-api:jar:1.7.29:compile
[INFO] | | \- org.apache.logging.log4j:log4j-api:jar:2.12.1:compile
[INFO] | +- org.apache.logging.log4j:log4j-core:jar:2.12.1:compile
[INFO] | +- org.apache.logging.log4j:log4j-jul:jar:2.12.1:compile
[INFO] | \- org.slf4j:jul-to-slf4j:jar:1.7.29:compile
[INFO] +- com.lmax:disruptor:jar:3.4.2:compile
[INFO] +- commons-codec:commons-codec:jar:1.13:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.9:compile
[INFO] +- com.oracle.ojdbc:ojdbc8:jar:19.3.0.0:compile
[INFO] | +- com.oracle.ojdbc:ucp:jar:19.3.0.0:compile
[INFO] | +- com.oracle.ojdbc:oraclepki:jar:19.3.0.0:compile
[INFO] | +- com.oracle.ojdbc:osdt_cert:jar:19.3.0.0:compile
[INFO] | +- com.oracle.ojdbc:osdt_core:jar:19.3.0.0:compile
[INFO] | +- com.oracle.ojdbc:simplefan:jar:19.3.0.0:compile
[INFO] | \- com.oracle.ojdbc:ons:jar:19.3.0.0:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:2.2.1.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.2.1.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:2.2.1.RELEASE:compile
[INFO] +- org.apache.httpcomponents:httpclient:jar:4.5.10:compile
[INFO] | \- org.apache.httpcomponents:httpcore:jar:4.4.12:compile
[INFO] +- org.springframework:spring-context-support:jar:5.2.1.RELEASE:compile
[INFO] | +- org.springframework:spring-beans:jar:5.2.1.RELEASE:compile
[INFO] | \- org.springframework:spring-context:jar:5.2.1.RELEASE:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.6.1:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.10:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.10:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.10.0:compile
[INFO] | +- io.springfox:springfox-spi:jar:2.6.1:compile
[INFO] | | \- io.springfox:springfox-core:jar:2.6.1:compile
[INFO] | +- io.springfox:springfox-schema:jar:2.6.1:compile
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.6.1:compile
[INFO] | +- io.springfox:springfox-spring-web:jar:2.6.1:compile
[INFO] | +- com.google.guava:guava:jar:18.0:compile
[INFO] | +- com.fasterxml:classmate:jar:1.5.1: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.0.0.Final:compile
[INFO] +- io.springfox:springfox-swagger-ui:jar:2.6.1:compile
[INFO] +- net.sf.ehcache:ehcache:jar:2.9.0:compile
[INFO] +- com.cccis.framework:bamlogger-weblogic:jar:1.0.1:compile
[INFO] | \- javax.jms:javax.jms-api:jar:2.0.1:compile
[INFO] +- org.springframework:spring-jms:jar:5.2.1.RELEASE:compile
[INFO] | +- org.springframework:spring-messaging:jar:5.2.1.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:5.2.1.RELEASE:compile
[INFO] +- com.cccis.common:common-objects:jar:0.0.6:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.10.0:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.10.0:compile
[INFO] +- com.google.code.gson:gson:jar:2.8.6:compile
[INFO] +- com.cccis.framework:framework-dataobjects:jar:10.3.189:compile
[INFO] | +- com.cccis.framework:framework-core:jar:10.3.189:compile
[INFO] | | \- net.sf.ehcache:ehcache-core:jar:2.5.1:compile
[INFO] | +- axis:axis:jar:1.2:compile
[INFO] | +- com.cccis.servicepower:sp-client:jar:2.12.0:compile
[INFO] | +- com.cccis.stdvehicle:vinservice-common:jar:0.0.23:compile
[INFO] | | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.9:compile
[INFO] | | \- org.codehaus.jackson:jackson-core-asl:jar:1.9.9:compile
[INFO] | \- com.cccis.framework:simple-storage:jar:0.0.7:compile
[INFO] | +- com.fasterxml.uuid:java-uuid-generator:jar:3.1.3:compile
[INFO] | +- org.restlet.jee:org.restlet.ext.httpclient:jar:2.3.1:compile
[INFO] | | +- org.apache.httpcomponents:httpmime:jar:4.5.10:compile
[INFO] | | +- net.jcip:jcip-annotations:jar:1.0:compile
[INFO] | | +- org.apache.james:apache-mime4j-core:jar:0.7.2:compile
[INFO] | | \- org.restlet.jee:org.restlet:jar:2.3.1:compile
[INFO] | +- org.restlet.jse:org.restlet.ext.json:jar:2.3.1:compile
[INFO] | | +- org.restlet.jse:org.restlet.lib.org.json:jar:2.0:compile
[INFO] | | \- org.restlet.jse:org.restlet:jar:2.3.1:compile
[INFO] | +- commons-io:commons-io:jar:1.3.2:compile
[INFO] | \- com.amazonaws:aws-java-sdk-s3:jar:1.10.50:compile
[INFO] | +- com.amazonaws:aws-java-sdk-kms:jar:1.10.50:compile
[INFO] | \- com.amazonaws:aws-java-sdk-core:jar:1.10.50:compile
[INFO] | \- joda-time:joda-time:jar:2.10.5:compile
[INFO] \- com.cccis.frm.journal:journal-logger:jar:5.0.16:compile
[INFO] \- com.cccis.frm.journal:ejb_journal_client:jar:5.0.16:compile
[INFO] \- com.cccis.framework:framework-interfaces:jar:10.3.49:compile
[INFO] ------------------------------------------------------------------------
But After I rebuild my appliation I got the SLF4J multiple bindings and with logback
[ERROR] SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Users/gtth/.m2/repository/ch/qos/logback/logback-classic/1.0.13/logback-classic-1.0.13.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Users/gtth/.m2/repository/org/apache/logging/log4j/log4j-slf4j-impl/2.12.1/log4j-slf4j-impl-2.12.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
I did everything, shall the Spring be bugged? :(
What can i do?

Why spring context,aop,beans,expression version is not updating to 5.x version when I updated spring boot version to 2.6.4?

Below is the result of mvn depdendency:tree .I want to upgrade spring frame work version to 5.3.17. Please help, thanks in advance
\- org.springframework.boot:spring-boot-starter-actuator:jar:2.6.4:compile
[INFO] +- org.springframework.boot:spring-boot-starter:jar:2.6.4:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.6.4:compile
[INFO] | | \- org.springframework:spring-context:jar:4.3.12.RELEASE:compile
[INFO] | | +- org.springframework:spring-aop:jar:4.3.12.RELEASE:compile
[INFO] | | +- org.springframework:spring-beans:jar:4.3.12.RELEASE:compile
[INFO] | | \- org.springframework:spring-expression:jar:4.3.12.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:2.6.4:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:2.6.4:compile
[INFO] | | +- ch.qos.logback:logback-classic:jar:1.2.10:compile
[INFO] | | | +- ch.qos.logback:logback-core:jar:1.2.10:compile
[INFO] | | | \- org.slf4j:slf4j-api:jar:1.7.36:compile
[INFO] | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.17.1:compile
[INFO] | | | \- org.apache.logging.log4j:log4j-api:jar:2.7:compile
[INFO] | | \- org.slf4j:jul-to-slf4j:jar:1.7.36:compile
[INFO] | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | +- org.springframework:spring-core:jar:4.3.12.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.29:compile
[INFO] +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.6.4:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator:jar:2.6.4:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.13.2.1:runtime
[INFO] | | +- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.4:runtime
[INFO] | | \- com.fasterxml.jackson.core:jackson-core:jar:2.11.4:runtime
[INFO] | \- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.8.10:runtime
[INFO] \- io.micrometer:micrometer-core:jar:1.8.3:compile
[INFO] +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime

see a strange php exception in a springboot application

I recently deployed a spring boot application on google cloud compute engine and I see the below error during deployment. The application started fine and everything else works perfectly. Is it a known issue or how can I investigate into this. I looked online here and there were no clear actions. How do I proceed to make sure that my application is safe from this vulnerability.
2021-02-28 15:41:11.249 INFO 9385 --- [nio-8080-exec-5] o.apache.coyote.http11.Http11Processor : Error parsing HTTP request header
Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
java.lang.IllegalArgumentException: Invalid character found in the request target [/index.php?s=/Index/\think\app/invokefunction&function=call_user_func_array&vars[0]=md5&vars[1][]=HelloThinkPHP21]. The valid characters are defined in RFC 7230 and RFC 3986
at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:490) ~[tomcat-embed-core-9.0.41.jar!/:9.0.41]
at org.apache.
Dependency tree: I looked for php related dependencies but couldn't find any.
[INFO]
[INFO] --- maven-dependency-plugin:3.1.2:tree (default-cli) # assessments ---
[INFO] com.lte.assessment:assessments:jar:0.0.1-SNAPSHOT
[INFO] +- org.spockframework:spock-core:jar:1.3-groovy-2.4:test
[INFO] | +- org.codehaus.groovy:groovy-all:jar:2.4.15:test
[INFO] | \- junit:junit:jar:4.13.1:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:2.2:test
[INFO] +- org.spockframework:spock-spring:jar:1.3-groovy-2.4:test
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:2.4.1:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:2.4.1:compile
[INFO] | | \- org.aspectj:aspectjweaver:jar:1.9.6:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.4.1:compile
[INFO] | | +- com.zaxxer:HikariCP:jar:3.4.5:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:5.3.2:compile
[INFO] | +- jakarta.transaction:jakarta.transaction-api:jar:1.3.3:compile
[INFO] | +- jakarta.persistence:jakarta.persistence-api:jar:2.2.3:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.4.25.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.27.0-GA:compile
[INFO] | | +- net.bytebuddy:byte-buddy:jar:1.10.18:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.1.3.Final:compile
[INFO] | | +- org.dom4j:dom4j:jar:2.1.3:compile
[INFO] | | +- org.hibernate.common:hibernate-commons-annotations:jar:5.1.2.Final:compile
[INFO] | | \- org.glassfish.jaxb:jaxb-runtime:jar:2.3.3:compile
[INFO] | | +- org.glassfish.jaxb:txw2:jar:2.3.3:compile
[INFO] | | \- com.sun.istack:istack-commons-runtime:jar:3.0.11:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:2.4.2:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:2.4.2:compile
[INFO] | | \- org.springframework:spring-orm:jar:5.3.2:compile
[INFO] | \- org.springframework:spring-aspects:jar:5.3.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-cache:jar:2.4.1:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.4.1:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.4.1:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile
[INFO] | | | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.27:compile
[INFO] | \- org.springframework:spring-context-support:jar:5.3.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.4.1:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.4.1:compile
[INFO] | | +- org.springframework.boot:spring-boot-actuator:jar:2.4.1:compile
[INFO] | | \- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.3:compile
[INFO] | \- io.micrometer:micrometer-core:jar:1.6.2:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] +- net.sf.ehcache:ehcache:jar:2.10.6:compile
[INFO] | \- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.4.1:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.4.1:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.3:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.4.1:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.41:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.41:compile
[INFO] | +- org.springframework:spring-web:jar:5.3.2:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.3.2:compile
[INFO] | \- org.springframework:spring-expression:jar:5.3.2:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:2.4.1:runtime
[INFO] | +- org.springframework.boot:spring-boot:jar:2.4.1:compile
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:2.4.1:compile
[INFO] +- com.h2database:h2:jar:1.4.200:runtime
[INFO] +- org.projectlombok:lombok:jar:1.18.16:compile (optional)
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.4.1:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.4.1:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.4.1: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] | | \- org.ow2.asm:asm:jar:5.0.4:test
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | +- org.assertj:assertj-core:jar:3.18.1:test
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:test
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.7.0:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.7.0:test
[INFO] | | | +- org.apiguardian:apiguardian-api:jar:1.1.0:test
[INFO] | | | +- org.opentest4j:opentest4j:jar:1.2.0:test
[INFO] | | | \- org.junit.platform:junit-platform-commons:jar:1.7.0:test
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.7.0:test
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.7.0:test
[INFO] | | \- org.junit.platform:junit-platform-engine:jar:1.7.0:test
[INFO] | +- org.mockito:mockito-core:jar:3.6.28:test
[INFO] | | +- net.bytebuddy:byte-buddy-agent:jar:1.10.18:test
[INFO] | | \- org.objenesis:objenesis:jar:3.1:test
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:3.6.28:test
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:test
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:runtime
[INFO] | +- org.springframework:spring-core:jar:5.3.2:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.3.2:compile
[INFO] | +- org.springframework:spring-test:jar:5.3.2:test
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.7.0:test
[INFO] +- mysql:mysql-connector-java:jar:8.0.22:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:2.4.1:compile
[INFO] | +- org.springframework:spring-aop:jar:5.3.2:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:5.4.2:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:5.4.2:compile
[INFO] +- org.springframework.security:spring-security-ldap:jar:5.4.2:compile
[INFO] | +- org.springframework.ldap:spring-ldap-core:jar:2.3.3.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-core:jar:5.4.2:compile
[INFO] | +- org.springframework:spring-beans:jar:5.3.2:compile
[INFO] | +- org.springframework:spring-context:jar:5.3.2:compile
[INFO] | \- org.springframework:spring-tx:jar:5.3.2:compile
[INFO] +- org.springframework.boot:spring-boot-starter-thymeleaf:jar:2.4.1:compile
[INFO] | +- org.thymeleaf:thymeleaf-spring5:jar:3.0.11.RELEASE:compile
[INFO] | | \- org.thymeleaf:thymeleaf:jar:3.0.11.RELEASE:compile
[INFO] | | +- org.attoparser:attoparser:jar:2.0.5.RELEASE:compile
[INFO] | | \- org.unbescape:unbescape:jar:1.1.6.RELEASE:compile
[INFO] | \- org.thymeleaf.extras:thymeleaf-extras-java8time:jar:3.0.4.RELEASE:compile
[INFO] +- org.springframework.security.oauth:spring-security-oauth2:jar:2.1.0.RELEASE:compile
[INFO] | +- commons-codec:commons-codec:jar:1.15: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] +- org.springframework.boot:spring-boot-properties-migrator:jar:2.4.1:runtime
[INFO] | \- org.springframework.boot:spring-boot-configuration-metadata:jar:2.4.1:runtime
[INFO] +- org.springframework:spring:jar:2.0-m1:compile
[INFO] | \- commons-logging:commons-logging:jar:1.0.4:compile
[INFO] +- org.springframework.boot:spring-boot-starter-mail:jar:2.4.1:compile
[INFO] | \- com.sun.mail:jakarta.mail:jar:1.6.5:compile
[INFO] | \- com.sun.activation:jakarta.activation:jar:1.2.2:compile
[INFO] +- io.springfox:springfox-swagger2:jar:2.6.1:compile
[INFO] | +- io.swagger:swagger-annotations:jar:1.5.10:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.10:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
[INFO] | +- io.springfox:springfox-spi:jar:2.6.1:compile
[INFO] | | \- io.springfox:springfox-core:jar:2.6.1:compile
[INFO] | +- io.springfox:springfox-schema:jar:2.6.1:compile
[INFO] | +- io.springfox:springfox-swagger-common:jar:2.6.1:compile
[INFO] | +- io.springfox:springfox-spring-web:jar:2.6.1:compile
[INFO] | +- com.google.guava:guava:jar:18.0:compile
[INFO] | +- com.fasterxml:classmate:jar:1.5.1: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.0.0.Final:compile
[INFO] +- io.springfox:springfox-swagger-ui:jar:2.6.1:compile
[INFO] +- org.apache.poi:poi-ooxml:jar:3.9:compile
[INFO] | +- org.apache.poi:poi: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] | \- dom4j:dom4j:jar:1.6.1:compile
[INFO] | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] +- org.apache.commons:commons-lang3:jar:3.7:compile
[INFO] +- com.auth0:java-jwt:jar:3.4.0:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-databind:jar:2.11.3:compile
[INFO] | \- com.fasterxml.jackson.core:jackson-core:jar:2.11.3:compile
[INFO] +- org.springframework.kafka:spring-kafka:jar:2.6.4:compile
[INFO] | +- org.springframework:spring-messaging:jar:5.3.2:compile
[INFO] | +- org.springframework.retry:spring-retry:jar:1.3.0:compile
[INFO] | \- org.apache.kafka:kafka-clients:jar:2.6.0:compile
[INFO] | +- com.github.luben:zstd-jni:jar:1.4.4-7:compile
[INFO] | +- org.lz4:lz4-java:jar:1.7.1:compile
[INFO] | \- org.xerial.snappy:snappy-java:jar:1.1.7.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-validation:jar:2.4.1:compile
[INFO] | \- org.glassfish:jakarta.el:jar:3.0.3:compile
[INFO] \- org.hibernate.validator:hibernate-validator:jar:7.0.0.Final:compile
[INFO] +- jakarta.validation:jakarta.validation-api:jar:2.0.2:compile
[INFO] \- org.jboss.logging:jboss-logging:jar:3.4.1.Final:compile

Hibernate validator issue in spring boot on PCF

Deployment to Pivotal cloud foundry of my spring boot app fails with the following error:
Error creating bean with name 'tomcatEmbeddedServletContainerFactory' defined in class path resource [org/springframework/boot/autoconfigure/web/EmbeddedServletContainerAutoConfiguration$EmbeddedTomcat.class]:
java.lang.NoClassDefFoundError: Could not initialize class org.hibernate.validator.internal.engine.ConfigurationImpl
Using its java buildpack 4.17.2
Problem only in cloud foundry deployment, locally works fine.
Cleaned up dependencies, using spring boot 1.5.19 and its started validator.
How to get rid of this missing dependency? spring-boot-starter-validation includes hibernate validator.
[INFO] +- org.springframework.boot:spring-boot-starter:jar:1.5.19.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:1.5.19.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.5.19.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-logging:jar:1.5.19.RELEASE:compile
[INFO] | | +- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] | | \- org.slf4j:log4j-over-slf4j:jar:1.7.25:compile
[INFO] | +- org.springframework:spring-core:jar:4.3.22.RELEASE:compile
[INFO] | \- org.yaml:snakeyaml:jar:1.17:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.5.19.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:1.5.19.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.5.37:compile
[INFO] | | | \- org.apache.tomcat:tomcat-annotations-api:jar:8.5.37:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.5.37:compile
[INFO] | +- org.springframework:spring-web:jar:4.3.22.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:4.3.22.RELEASE:compile
[INFO] | \- org.springframework:spring-webmvc:jar:4.3.22.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:4.3.22.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-validation:jar:1.5.19.RELEASE:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.5.37:compile
[INFO] | \- org.hibernate:hibernate-validator:jar:5.3.6.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
[INFO] | \- com.fasterxml:classmate:jar:1.3.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-data-jpa:jar:1.5.19.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-aop:jar:1.5.19.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-jdbc:jar:1.5.19.RELEASE:compile
[INFO] | | \- org.springframework:spring-jdbc:jar:4.3.22.RELEASE:compile
[INFO] | +- org.hibernate:hibernate-core:jar:5.0.12.Final:compile
[INFO] | | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | | +- org.javassist:javassist:jar:3.18.1-GA:compile
[INFO] | | +- antlr:antlr:jar:2.7.7:compile
[INFO] | | +- org.jboss:jandex:jar:2.0.0.Final:compile
[INFO] | | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
[INFO] | +- org.hibernate:hibernate-entitymanager:jar:5.0.12.Final:compile
[INFO] | +- javax.transaction:javax.transaction-api:jar:1.2:compile
[INFO] | +- org.springframework.data:spring-data-jpa:jar:1.11.18.RELEASE:compile
[INFO] | | +- org.springframework.data:spring-data-commons:jar:1.13.18.RELEASE:compile
[INFO] | | +- org.springframework:spring-orm:jar:4.3.22.RELEASE:compile
[INFO] | | \- org.springframework:spring-tx:jar:4.3.22.RELEASE:compile
[INFO] | \- org.springframework:spring-aspects:jar:4.3.22.RELEASE:compile
[INFO] +- org.liquibase:liquibase-core:jar:3.6.3:compile
[INFO] | \- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] +- org.springframework.boot:spring-boot-starter-security:jar:1.5.19.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:4.3.22.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:4.2.11.RELEASE:compile
[INFO] | | \- org.springframework.security:spring-security-core:jar:4.2.11.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-web:jar:4.2.11.RELEASE:compile
[INFO] +- wsl-java-validate:wslvalidate4:jar:4.0.1:compile
[INFO] +- wsl-java-validate:asn1:jar:4.0.1:compile
[INFO] +- wsl-java-validate:jsafe:jar:4.0.1:compile
[INFO] +- wsl-java-validate:certj:jar:4.0.1:compile
[INFO] +- org.aspectj:aspectjweaver:jar:1.8.6:compile
[INFO] +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1: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] +- org.springframework.boot:spring-boot-starter-quartz:jar:2.1.4.RELEASE:compile
[INFO] | \- org.quartz-scheduler:quartz:jar:2.3.1:compile
[INFO] | +- com.mchange:mchange-commons-java:jar:0.2.15:compile
[INFO] | \- com.zaxxer:HikariCP-java7:jar:2.4.13:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.5.19.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test:jar:1.5.19.RELEASE:test
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:1.5.19.RELEASE:test
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.2.0:test
[INFO] | | \- net.minidev:json-smart:jar:2.2.1:test
[INFO] | | \- net.minidev:accessors-smart:jar:1.1:test
[INFO] | | \- org.ow2.asm:asm:jar:5.0.3:test
[INFO] | +- org.assertj:assertj-core:jar:2.6.0:test
[INFO] | \- org.springframework:spring-test:jar:4.3.22.RELEASE:test
EDIT:
FIXED. Turns out it has been a problem caused by below jboss libraries I have picked up from another module of my webapp.
After excluding below libraries from target jar file, all works as expected.
Still strange my local deployments did not detect similar hibernate validator issues, need to understand more diffs between PCF java build packs and local java runtime.
[INFO] | +- com.sun.xml.messaging.saaj:saaj-impl:jar:1.3.2:compile
[INFO] | | \- javax.xml.soap:saaj-api:jar:1.3:compile
[INFO] | +- xml-security:xmlsec:jar:1.3.0:compile
[INFO] | +- com.sun.xml.rpc:jaxrpc-impl:jar:1.1.3_01:compile
[INFO] | +- com.sun.xml.rpc:jaxrpc-spi:jar:1.1.3_01:compile
[INFO] | +- com.sun.xml.fastinfoset:FastInfoset:jar:1.0.2:compile
[INFO] | +- jboss:jbossws-core:jar:1.0.4.GA:compile
[INFO] | +- jboss:jboss-common-client:jar:4.0.4.GA:compile
[INFO] | +- jboss.jbossws:jboss-jaxws-ext:jar:3.0.1-native-2.0.4.GA:compile
[INFO] | \- org.jboss:jbossxb:jar:2.0.3.GA:compile
[INFO] | +- org.jboss.logging:jboss-logging-spi:jar:2.0.5.GA:compile
[INFO] | +- org.jboss:jboss-common-core:jar:2.2.9.GA:compile
[INFO] | +- org.jboss:jboss-reflect:jar:2.0.2.GA:compile
[INFO] | +- xml-apis:xml-apis:jar:1.3.04:compile
[INFO] | +- xerces:xercesImpl:jar:2.9.1:compile
[INFO] | +- com.wutka:dtdparser:jar:1.21:compile
[INFO] | \- sun-jaxb:jaxb-api:jar:2.1.9:compile

SDN4 Config - java.lang.annotation.AnnotationFormatError: Invalid default: ...EnableNeo4jRepositories.repositoryBaseClass()

I'm getting the following error with Spring Data Neo4j 4. I think it could be a dependency conflict but I'm not sure what.
java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83) at org.springframework.test.context.web.ServletTestExecutionListener.setUpRequestContextIfNecessary(ServletTestExecutionListener.java:183) at org.springframework.test.context.web.ServletTestExecutionListener.prepareTestInstance(ServletTestExecutionListener.java:123) at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:228) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:217) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:276) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:278) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:236) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:87) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180) at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:264) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:153) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:124) at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:200) at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:153) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103) Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [C:\*****\*****-spa\core\target\test-classes\nz\co\*****\TestNeo4jConfig.class]; nested exception is java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories.repositoryBaseClass()
The highlight of the above seems to be.
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [C:\thescene\thescene-spa\core\target\test-classes\nz\co\thescene\TestNeo4jConfig.class]; nested exception is java.lang.annotation.AnnotationFormatError: Invalid default: public abstract java.lang.Class org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories.repositoryBaseClass()
My spring dependencies are:
[INFO] +- org.springframework:spring-beans:jar:4.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-aop:jar:4.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-expression:jar:4.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-core:jar:4.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-web:jar:4.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-context:jar:4.2.1.RELEASE:compile
[INFO] +- org.springframework:spring-context-support:jar:4.2.1.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-logging:jar:1.3.0.M5:compile
[INFO] +- org.springframework.boot:spring-boot-starter-aop:jar:1.3.0.M5:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:1.2.6.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot:jar:1.2.6.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-autoconfigure:jar:1.2.6.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-crypto:jar:3.2.7.RELEASE:compile
[INFO] +- org.springframework.data:spring-data-neo4j:jar:4.0.0.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:4.2.1.RELEASE:compile
[INFO] +- org.springframework.data:spring-data-commons:jar:1.9.2.RELEASE:compile
[INFO] +- org.springframework.data:spring-data-neo4j:test-jar:tests:4.0.0.RELEASE:test
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:1.3.0.M5:test
[INFO] +- org.springframework:spring-test:jar:4.2.1.RELEASE:test
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:1.2.6.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-starter-tomcat:jar:1.2.6.RELEASE:compile
[INFO] +- org.springframework.security.oauth:spring-security-oauth2:jar:2.0.7.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-core:jar:4.0.2.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-config:jar:4.0.2.RELEASE:compile
[INFO] | +- org.springframework.security:spring-security-web:jar:4.0.2.RELEASE:compile
[INFO] \- org.springframework.social:spring-social-core:jar:1.2.0.BUILD-SNAPSHOT:compile
My neo4j dependencies are:
[INFO] +- org.springframework.data:spring-data-neo4j:jar:4.0.0.RELEASE:compile
[INFO] | +- org.neo4j:neo4j-ogm:jar:1.1.2:compile
[INFO] +- org.neo4j:neo4j-kernel:jar:2.2.5:compile
[INFO] | +- org.neo4j:neo4j-primitive-collections:jar:2.2.5:compile
[INFO] | \- org.neo4j:neo4j-csv:jar:2.2.5:compile
[INFO] +- org.neo4j:neo4j-io:jar:2.2.5:compile
[INFO] | \- org.neo4j:neo4j-unsafe:jar:2.2.5:compile
[INFO] +- org.neo4j.test:neo4j-harness:jar:2.2.5:test
[INFO] | +- org.neo4j.app:neo4j-server:jar:2.2.5:compile
[INFO] | | +- org.neo4j:neo4j-cypher:jar:2.2.5:compile
[INFO] | | | +- org.neo4j:neo4j-lucene-index:jar:2.2.5:compile
[INFO] | | | +- org.neo4j:neo4j-graph-matching:jar:2.2.5:compile
[INFO] | | | +- org.neo4j:neo4j-graph-algo:jar:2.2.5:compile
[INFO] | | | +- org.neo4j:neo4j-cypher-compiler-1.9:jar:2.0.4:compile
[INFO] | | | +- org.neo4j:neo4j-cypher-compiler-2.0:jar:2.0.4:compile
[INFO] | | | +- org.neo4j:neo4j-cypher-compiler-2.1:jar:2.1.8:compile
[INFO] | | | +- org.neo4j:neo4j-cypher-compiler-2.2:jar:2.2.5:compile
[INFO] | | +- org.neo4j.app:neo4j-browser:jar:2.2.5:compile
[INFO] | | \- org.neo4j:neo4j-shell:jar:2.2.5:compile
[INFO] | +- org.neo4j:neo4j-kernel:test-jar:tests:2.2.5:test
[INFO] | +- org.neo4j:neo4j-io:test-jar:tests:2.2.5:test
[INFO] +- org.springframework.data:spring-data-neo4j:test-jar:tests:4.0.0.RELEASE:test
[INFO] +- org.neo4j:neo4j-ogm:test-jar:tests:1.1.2:test
[INFO] | \- org.neo4j:server-api:jar:2.2.5:compile
[INFO] | \- org.neo4j.3rdparty.javax.ws.rs:jsr311-api:jar:1.1.2.r612:compile
Here are all the rest:
[INFO] nz.co.*****:*****-core:jar:0.0.1-SNAPSHOT
[INFO] +- nz.co.*****:*****-model:jar:0.0.1-SNAPSHOT:compile
[INFO] | \- org.hibernate:hibernate-validator:jar:5.1.3.Final:compile
[INFO] | +- javax.validation:validation-api:jar:1.1.0.Final:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.1.3.GA:compile
[INFO] | \- com.fasterxml:classmate:jar:1.0.0:compile
[INFO] | \- aopalliance:aopalliance:jar:1.0:compile
[INFO] | \- commons-logging:commons-logging:jar:1.2:compile
[INFO] | +- ch.qos.logback:logback-classic:jar:1.1.3:compile
[INFO] | | \- ch.qos.logback:logback-core:jar:1.1.3:compile
[INFO] | +- org.slf4j:jul-to-slf4j:jar:1.7.12:compile
[INFO] | \- org.slf4j:log4j-over-slf4j:jar:1.7.12:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.14:compile
[INFO] | +- org.aspectj:aspectjrt:jar:1.8.6:compile
[INFO] | \- org.aspectj:aspectjweaver:jar:1.8.6:compile
[INFO] +- com.voodoodyne.jackson.jsog:jackson-jsog:jar:1.1:compile
[INFO] +- org.projectlombok:lombok:jar:1.16.4:compile
[INFO] +- com.squareup.okhttp:okhttp:jar:2.5.0:compile
[INFO] | \- com.squareup.okio:okio:jar:1.6.0:compile
[INFO] | | | +- org.scala-lang:scala-library:jar:2.10.5:compile
[INFO] | | | +- org.scala-lang:scala-reflect:jar:2.10.5:compile
[INFO] | | | | \- org.apache.lucene:lucene-core:jar:3.6.2:compile
[INFO] | | | +- org.parboiled:parboiled-scala_2.10:jar:1.1.7:compile
[INFO] | | | | \- org.parboiled:parboiled-core:jar:1.1.7:compile
[INFO] | | | +- net.sf.opencsv:opencsv:jar:2.3:compile
[INFO] | | | \- com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:jar:1.4:compile
[INFO] | | +- ch.qos.logback:logback-access:jar:1.1.3:compile
[INFO] | | +- org.codehaus.janino:janino:jar:2.6.1:compile
[INFO] | | | \- org.codehaus.janino:commons-compiler:jar:2.6.1:compile
[INFO] | | +- org.eclipse.jetty:jetty-server:jar:9.2.13.v20150730:compile
[INFO] | | | +- javax.servlet:javax.servlet-api:jar:3.1.0:compile
[INFO] | | | +- org.eclipse.jetty:jetty-http:jar:9.2.13.v20150730:compile
[INFO] | | | | \- org.eclipse.jetty:jetty-util:jar:9.2.13.v20150730:compile
[INFO] | | | \- org.eclipse.jetty:jetty-io:jar:9.2.13.v20150730:compile
[INFO] | | +- org.eclipse.jetty:jetty-webapp:jar:9.2.13.v20150730:compile
[INFO] | | | +- org.eclipse.jetty:jetty-xml:jar:9.2.13.v20150730:compile
[INFO] | | | \- org.eclipse.jetty:jetty-servlet:jar:9.2.13.v20150730:compile
[INFO] | | | \- org.eclipse.jetty:jetty-security:jar:9.2.13.v20150730:compile
[INFO] | | +- com.sun.jersey:jersey-server:jar:1.13:compile
[INFO] | | | \- asm:asm:jar:3.1:compile
[INFO] | | +- com.sun.jersey:jersey-servlet:jar:1.13:compile
[INFO] | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.9.13:compile
[INFO] | | +- org.rrd4j:rrd4j:jar:2.2:compile
[INFO] | | +- org.mozilla:rhino:jar:1.7R4:compile
[INFO] | | +- bouncycastle:bcprov-jdk16:jar:140:compile
[INFO] | | +- com.sun.jersey.contribs:jersey-multipart:jar:1.19:compile
[INFO] | | | \- org.jvnet.mimepull:mimepull:jar:1.9.3:compile
[INFO] | | \- org.apache.servicemix.bundles:org.apache.servicemix.bundles.jline:jar:0.9.94_1:compile
[INFO] | +- commons-configuration:commons-configuration:jar:1.10:compile
[INFO] | +- commons-digester:commons-digester:jar:2.1:compile
[INFO] | | \- commons-beanutils:commons-beanutils:jar:1.9.2:compile
[INFO] | \- com.sun.jersey:jersey-client:jar:1.13:test
[INFO] | \- com.sun.jersey:jersey-core:jar:1.13:compile
[INFO] +- javax.inject:javax.inject:jar:1:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.12:compile
[INFO] +- org.slf4j:jcl-over-slf4j:jar:1.7.12:compile
[INFO] +- org.jasypt:jasypt:jar:1.9.2:compile
[INFO] +- com.fasterxml.jackson.datatype:jackson-datatype-json-org:jar:2.5.0:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-core:jar:2.5.4:compile
[INFO] | +- com.fasterxml.jackson.core:jackson-databind:jar:2.5.4:compile
[INFO] | \- org.apache.geronimo.bundles:json:jar:20090211_1:compile
[INFO] +- com.thoughtworks.xstream:xstream:jar:1.4.2:compile
[INFO] | +- xmlpull:xmlpull:jar:1.1.3.1:compile
[INFO] | \- xpp3:xpp3_min:jar:1.1.4c:compile
[INFO] +- com.fasterxml.jackson.core:jackson-annotations:jar:2.5.4:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.3.2:compile
[INFO] | | \- org.apache.httpcomponents:httpcore:jar:4.4.1:compile
[INFO] | \- commons-lang:commons-lang:jar:2.6:compile
[INFO] | +- org.mockito:mockito-core:jar:2.0.2-beta:test
[INFO] | | \- org.objenesis:objenesis:jar:2.1:test
[INFO] | +- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] | \- org.hamcrest:hamcrest-library:jar:1.3:test
[INFO] +- junit:junit:jar:4.12:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:compile
[INFO] +- org.jbehave:jbehave-core:jar:4.0.1:test
[INFO] | +- org.hamcrest:hamcrest-integration:jar:1.3:test
[INFO] | +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] | +- commons-io:commons-io:jar:2.4:compile
[INFO] | +- org.codehaus.plexus:plexus-utils:jar:3.0.10:test
[INFO] | +- org.freemarker:freemarker:jar:2.3.22:test
[INFO] | \- com.thoughtworks.paranamer:paranamer:jar:2.4:test
[INFO] +- org.jbehave:jbehave-gherkin:jar:4.0.3:compile
[INFO] | \- info.cukes:gherkin:jar:2.11.2:compile
[INFO] +- nz.co.*****:*****-server-plugins:jar:0.0.1-SNAPSHOT:test
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-core:jar:8.0.26:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-el:jar:8.0.26:compile
[INFO] | +- org.apache.tomcat.embed:tomcat-embed-logging-juli:jar:8.0.26:compile
[INFO] | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:8.0.26:compile
[INFO] | +- commons-codec:commons-codec:jar:1.6: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
Does anybody have any idea on how to solve this? Does anybody see anything amiss?
I solved this in the end. I was importing the wrong version of spring-data-commons.

Resources