Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javax.validation.BootstrapConfiguration.getClockProviderClassName()Ljava/lang/String No such method

I am getting below exception while executing springboot application:

Caused by: java.lang.NoSuchMethodError: 'javax.validation.BootstrapConfiguration.getClockProviderClassName()Ljava/lang/String;
at org.hibernate.validator.internal.xml.ValidationBootstrapParameters.<init>(ValidationBootstrapParameters.java:63) ~[hibernate-validator-6.0.7.Final.jar!/:6.0.7.Final]'

I included validation-api as a dependency with latest version & also made sure no other version is coming (not using hibernate validator as well) Still it is failing. Please suggest any solution.

like image 506
esha ingle Avatar asked Oct 28 '22 11:10

esha ingle


1 Answers

Check the lib folder to differing version of validation-api -- for example

  • jakarta.validation-api-2.0.2.jar
  • validation-api-1.1.0.Final.jar

And try to see if you can remove validation-api-1.1.0.Final.jar

like image 55
Tim Funk Avatar answered Nov 15 '22 08:11

Tim Funk