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 a deployment issue after upgrading my app to spring-cloud Dalston.SR1:
Caused By: java.lang.ClassNotFoundException: org.hibernate.validator.method.MethodValidator
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:364)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:325)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:80)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:193)
at weblogic.utils.classloaders.ChangeAwareClassLoader.loadClass(ChangeAwareClassLoader.java:50)
at org.springframework.validation.beanvalidation.MethodValidationInterceptor$HibernateValidatorDelegate.invokeWithinValidation(MethodValidationInterceptor.java:185)
at org.springframework.validation.beanvalidation.MethodValidationInterceptor.invoke(MethodValidationInterceptor.java:152)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)
at org.springframework.cloud.zookeeper.ZookeeperProperties$$EnhancerBySpringCGLIB$$195c3f00.getBaseSleepTimeMs(<generated>)
at org.springframework.cloud.zookeeper.ZookeeperAutoConfiguration.exponentialBackoffRetry(ZookeeperAutoConfiguration.java:79)
at org.springframework.cloud.zookeeper.ZookeeperAutoConfiguration$$EnhancerBySpringCGLIB$$413b2ff7.CGLIB$exponentialBackoffRetry$1(<generated>)
at org.springframework.cloud.zookeeper.ZookeeperAutoConfiguration$$EnhancerBySpringCGLIB$$413b2ff7$$FastClassBySpringCGLIB$$88b0432d.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:358)
at org.springframework.cloud.zookeeper.ZookeeperAutoConfiguration$$EnhancerBySpringCGLIB$$413b2ff7.exponentialBackoffRetry(<generated>)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
I am using spring boot 1.5.4 which brings in hibernate-validator 5.3 and this one no longer has this class. When i downgrade hibernate-validator to latest 4.x i am getting a different error
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'encryptionBootstrapConfiguration': Unsatisfied dependency expressed through field 'key'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'encrypt-org.springframework.cloud.bootstrap.encrypt.KeyProperties': Initialization of bean failed; nested exception is java.lang.AbstractMethodError: org.hibernate.validator.internal.engine.ConfigurationImpl.getDefaultParameterNameProvider()Ljavax/validation/ParameterNameProvider;
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:588)
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues
Not sure how to get out of this, seems that spring 4 requires validator 4.x but spring-cloud needs 5.x , is this correct ?
Apologies if this is not the correct spring-cloud subproject, but since cloud.zookeeper is first in the stacktrace i am posting it here.
The text was updated successfully, but these errors were encountered:
Thanks for confirming, after a few attempts i managed to get the right combination of classpath tweaking by forcing weblogic to use both javax.validation and org.hibernate.validator from the application rather than the server (prefer-application-packages for the weblogic initiated)
Hi,
I have a deployment issue after upgrading my app to spring-cloud Dalston.SR1:
I am using spring boot 1.5.4 which brings in hibernate-validator 5.3 and this one no longer has this class. When i downgrade hibernate-validator to latest 4.x i am getting a different error
Not sure how to get out of this, seems that spring 4 requires validator 4.x but spring-cloud needs 5.x , is this correct ?
Apologies if this is not the correct spring-cloud subproject, but since cloud.zookeeper is first in the stacktrace i am posting it here.
The text was updated successfully, but these errors were encountered: