Hi,
I get following error on throwing ConstraintViolationException from following server code.
Validator jsr303Validator = Validation.buildDefaultValidatorFactory().getValidator();
Set<ConstraintViolation<UserDto>> violations = jsr303Validator.validate(userDto);
if (!violations.isEmpty()) {
Set<ConstraintViolation<?>> violationSet = new HashSet<ConstraintViolation<?>>(violations);
throw new ConstraintViolationException(violationSet);
}
HashSet can certainly be serialized as I can throw exception with HashSet<String> but throwing exception with HashSet<ConstraintViolation<?>> is not working! Any help is appreciated. I'm using GWT 2.5.1
Thanks.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment