Quote:
For me, this is a bug in the Maven dependencies by Hibernate.
Nope, it's not.
If you run mvn dependency:tree, you'll get something like this:
Code:
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ high-performance-java-persistence-core ---
[INFO] +- org.hibernate:hibernate-core:jar:5.2.11-SNAPSHOT:compile
[INFO] | +- org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
[INFO] | +- org.hibernate.javax.persistence:hibernate-jpa-2.1-api:jar:1.0.0.Final:compile
[INFO] | +- org.javassist:javassist:jar:3.20.0-GA:compile
[INFO] | +- antlr:antlr:jar:2.7.7:compile
[INFO] | +- org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:jar:1.0.1.Final:compile
[INFO] | +- org.jboss:jandex:jar:2.0.3.Final:compile
[INFO] | +- com.fasterxml:classmate:jar:1.3.0:compile
[INFO] | +- dom4j:dom4j:jar:1.6.1:compile
[INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] | \- org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
So, as you can clearly see, there's no trace of
jackson-databind dependency.
More, there's
no occurrence for jackson-databind on GitHub as well.
The stack-trace is very accurate about the actual cause for your issue:
Code:
at org.apache.logging.log4j.core.appender.db.jpa.converter.ContextDataJsonAttributeConverter.<clinit>(ContextDataJsonAttributeConverter.java:47)
It's because of the Log4j ContextDataJsonAttributeConverter that you need
jackson-databind.
Cheers!