users@glassfish.java.net

Glassfish glassfishv3/glassfish/modules/bean-validator.jar and Hibernate

From: <forums_at_java.net>
Date: Tue, 5 Jul 2011 09:21:11 -0500 (CDT)

Hallo ,
Ihave a Problem with Glassfish and Hibernate Validator. As far as I know
Glassfish use Hibernate Validator 4.0.1 and Actual version of the
Hibernate Validator is 4.2.0 .
I have problem with the following bug :
Hibernate Validator HV-438 (Call to TraversableResolver.isReachable()
threw an exception)
http://opensource.atlassian.com/projects/hibernate/browse/HV-438
Is it possible to add the following patch in GlassFish bean-validator.jar
in DefaultTraversableResolver, i added "|| (traversableProperty.getName()
== null" portion.
        public boolean isReachable(Object traversableObject, Path.Node
traversableProperty, Class<?> rootBeanType, Path pathToTraversableObject,
ElementType elementType) {
                return jpaTraversableResolver == null ||
(traversableProperty.getName()
== null) || jpaTraversableResolver.isReachable(
                               
traversableObject, traversableProperty, rootBeanType,
pathToTraversableObject, elementType
                );
        }
or somehow disable bean-validator.jar so my reference to Hibernate
Validator 4.2.0 is used with my fix.

Sorry for my English :) !

thank you
 


--
[Message sent by forum member 'Seifi']
View Post: http://forums.java.net/node/818721