wood burning stoves*
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark " javax.validation.ConstraintViolationException" Watch " javax.validation.ConstraintViolationException" New topic


fabian verbeek
Ranch Hand

Joined: Oct 20, 2012
Posts: 52

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

Joined: Oct 27, 2005
Posts: 19656

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.

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
Similar Threads
hibernate hello world
unable to save
no WebApplicationContext found: no ContextLoaderListener registered?
java.sql.SQLException: Cannot add or update a child row: a foreign key constraint fails
Hibernate Error : org.hibernate.MappingException: Unknown entity