2

@size(max =241) is given for string validation and if the string length is less than 112 characters the validation is passing but if it is more than 112 then it is throwing exception :

javax.validation.ValidationException: HV000028: Unexpected exception during >isValid call.

How should i fix it ?

Abhishek Ghosh
  • 2,593
  • 3
  • 27
  • 60
sai
  • 21
  • 1
  • 2

1 Answers1

0

I was using hibernate-validator-4.3.0-Final.jar for email validation, there was a bug in when handling large string, hence it was throwing the error, once updated the jar file.hibernate-validator-4.3.2-Final.jar this fixed.

Sai
  • 1
  • 1