Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchMethodException: org.hibernate.validator.internal.metadata.BeanMetaDataManager.__resetCache() when running springboot 2.3.0 project. #383

Closed
ghuser opened this issue Dec 17, 2020 · 5 comments

Comments

@ghuser
Copy link

ghuser commented Dec 17, 2020

I am getting the following exception on a springboot 2.3.0 project running in tomcat:

HOTSWAP AGENT: 02:44:26.522 ERROR (org.hotswap.agent.plugin.hibernate.HibernatePlugin) - Error refreshing BeanMetaDataManagerCache/AnnotatedMetaDataProvider cache.
java.lang.NoSuchMethodException: org.hibernate.validator.internal.metadata.BeanMetaDataManager.__resetCache()
	at java.base/java.lang.Class.getDeclaredMethod(Class.java:2475)
	at org.hotswap.agent.plugin.hibernate.HibernatePlugin$1.executeCommand(HibernatePlugin.java:107)
	at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:43)

I use dcevm-11.0.9+2 with 1.4.2-SNAPSHOT

Note: Changed are applied when editing rest controllers.

@ghuser ghuser changed the title NoSuchMethodException for __resetCache when running springboot 2.3.0 project. java.lang.NoSuchMethodException: org.hibernate.validator.internal.metadata.BeanMetaDataManager.__resetCache() when running springboot 2.3.0 project. Dec 17, 2020
@kdejaeger
Copy link

I have it as well, it's something that did not occur before (versions a few months ago).

@skybber
Copy link
Contributor

skybber commented Feb 11, 2021

Could you check if you have class org.hibernate.validator.internal.metadata.provider.AnnotationMetaDataProvide in the project?

@ghuser
Copy link
Author

ghuser commented Feb 11, 2021

In our case we have:
org/hibernate/validator/internal/metadata/provider/AnnotationMetaDataProvider.class
inside
app.war/WEB-INF/lib/hibernate-validator-6.1.5.Final.jar

@kdejaeger
Copy link

6.1.7 here. Comes with Spring boot.

@skybber
Copy link
Contributor

skybber commented Feb 11, 2021

Probably this class was removed. HA currently does not support Hibernate 6.x, so just only possible way ho to make it working is disabliing Hibernate plugin on start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants