You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an application, which uses quartz,agroal and hibernate-panache and saves data into DB on regular intervals. After update to the latest 999-SNAPSHOT(1d45952) it now shows multiple warnings about jakarta.validation.NoProviderFoundException being thrown. The application doesn't use any code from javax.validation or jakarta.validation packages. Adding quarkus-hibernate-validator solves this problem. Nothing of sorts is mentioned in the migration guide[1].
The application should work without warnings, and should not require quarkus-hibernate-validator
Actual behavior
(JPA Startup Thread) Error calling `jakarta.validation.Validation#buildDefaultValidatorFactory`: jakarta.validation.NoProviderFoundException: Unable to create a Configuration, because no Jakarta Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.
at jakarta.validation.Validation$GenericBootstrapImpl.configure(Validation.java:291)
at jakarta.validation.Validation.buildDefaultValidatorFactory(Validation.java:103)
at org.hibernate.boot.beanvalidation.TypeSafeActivator.getValidatorFactory(TypeSafeActivator.java:483)
at org.hibernate.boot.beanvalidation.TypeSafeActivator.activate(TypeSafeActivator.java:83)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.hibernate.boot.beanvalidation.BeanValidationIntegrator.integrate(BeanValidationIntegrator.java:140)
at org.hibernate.internal.SessionFactoryImpl.integrate(SessionFactoryImpl.java:451)
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:247)
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:200)
at io.quarkus.hibernate.orm.runtime.boot.FastBootEntityManagerFactoryBuilder.build(FastBootEntityManagerFactoryBuilder.java:78)
at io.quarkus.hibernate.orm.runtime.FastBootHibernatePersistenceProvider.createEntityManagerFactory(FastBootHibernatePersistenceProvider.java:73)
at jakarta.persistence.Persistence.createEntityManagerFactory(Persistence.java:80)
at jakarta.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
at io.quarkus.hibernate.orm.runtime.JPAConfig$LazyPersistenceUnit.get(JPAConfig.java:167)
at io.quarkus.hibernate.orm.runtime.JPAConfig$1.run(JPAConfig.java:68)
at java.base/java.lang.Thread.run(Thread.java:833)
fedinskiy
changed the title
[WIP] Warnings about lack of "Hibernate Validator", despite no validation annotations being used
Warnings about lack of "Hibernate Validator", despite no validation annotations being used
Feb 28, 2023
Describe the bug
I have an application, which uses
quartz
,agroal
andhibernate-panache
and saves data into DB on regular intervals. After update to the latest 999-SNAPSHOT(1d45952) it now shows multiple warnings aboutjakarta.validation.NoProviderFoundException
being thrown. The application doesn't use any code fromjavax.validation
orjakarta.validation
packages. Addingquarkus-hibernate-validator
solves this problem. Nothing of sorts is mentioned in the migration guide[1].[1] https://docs.jboss.org/hibernate/orm/6.0/migration-guide/migration-guide.html
Expected behavior
The application should work without warnings, and should not require
quarkus-hibernate-validator
Actual behavior
How to Reproduce?
git clone git@github.com:fedinskiy/beefy-scenarios.git -b reproducer/hibernate-6
beefy-scenarios/017-quartz-cluster
mvn clean verify #exceptions in logs
<dependency> <groupId>io.quarkus</groupId> <artifactId>quarkus-hibernate-validator</artifactId> </dependency>
to pom.xml
mvn clean verify # no exceptions in app logs
-Dquarkus.platform.version=3.0.0.Alpha4
, then the app works even withouthibernate-validator
The app doesn't use any validation:
find src/ | xargs grep 'validation'
Output of
uname -a
orver
6.0.18-300.fc37.x86_64
Output of
java -version
17.0.5, vendor: GraalVM Community
GraalVM version (if different from Java)
No response
Quarkus version or git rev
1d45952
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
Additional information
Probably related to #31235
The text was updated successfully, but these errors were encountered: