wood burning stoves 2.0*
The moose likes Validation -JSR303 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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java JSRs » Validation -JSR303
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: 19557
    
  16

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