aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes  javax.validation.ConstraintViolationException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark " javax.validation.ConstraintViolationException" Watch " javax.validation.ConstraintViolationException" New topic
Author

javax.validation.ConstraintViolationException

fabian verbeek
Ranch Hand

Joined: Oct 20, 2012
Posts: 52
Hi,

I'm new and i use hibernate4 and spring 3. i try to use the validation but i receive the next error : javax.validation.ConstraintViolationException when i try to save



Here is my complete trace error
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19761
    
  20

fabian verbeek wrote:
...

The propertyPath and messageTemplate give a hint about the error that occurred - the NotEmpty is violated. In other words, the userEmail property is either null or the empty string.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
fabian verbeek
Ranch Hand

Joined: Oct 20, 2012
Posts: 52
In fact it's empty but how can i intercept the message and display the message error?
fabian verbeek
Ranch Hand

Joined: Oct 20, 2012
Posts: 52
no one can help me top make working this sample?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.validation.ConstraintViolationException