我在使用 Dropwizard 启动时遇到以下异常
Exception in thread "main" javax.validation.ValidationException: Call to TraversableResolver.isReachable() threw an exception
at org.hibernate.validator.engine.ValidatorImpl.isValidationRequired(ValidatorImpl.java:1251)
at org.hibernate.validator.engine.ValidatorImpl.validateConstraint(ValidatorImpl.java:448)
at org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForDefaultGroup(ValidatorImpl.java:397)
at org.hibernate.validator.engine.ValidatorImpl.validateConstraintsForCurrentGroup(ValidatorImpl.java:361)
at org.hibernate.validator.engine.ValidatorImpl.validateInContext(ValidatorImpl.java:313)
at org.hibernate.validator.engine.ValidatorImpl.validate(ValidatorImpl.java:139)
at com.yammer.dropwizard.validation.Validator.validate(Validator.java:32)
at com.yammer.dropwizard.config.ConfigurationFactory.validate(ConfigurationFactory.java:88)
at com.yammer.dropwizard.config.ConfigurationFactory.build(ConfigurationFactory.java:53)
at com.yammer.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:69)
at com.yammer.dropwizard.cli.Command.run(Command.java:113)
at com.yammer.dropwizard.AbstractService.run(AbstractService.java:178)
我将 Dropwizard 与 Hibernate 一起用于 JPA 而不是 JDBI,因为我有复杂的持久性要求。