Pessoal, repliquei o projeto conforme o capitulo 2 do curso, a navegação esta ok, os dados estão sendo listados e persistidos no banco normal.
mas quando tento submeter o formulário em branco ao invés de os erros aparecerem tratados na jsp com a tag criada e tudo mais da o seguinte erro:
fev 26, 2018 7:21:42 PM org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: Servlet.service() for servlet [default] in context with path [/vraptor4] threw exception [javax.validation.ConstraintViolationException: 2 constraint violation(s) occurred during method validation.
Constructor or Method: public void br.com.caelum.vraptor.controller.UsuarioController.adiciona(br.com.caelum.vraptor.model.Usuario)
Argument values: [br.com.caelum.vraptor.model.Usuario@3b0b162f]
Constraint violations:
(1) Kind: PROPERTY
message: Não pode estar vazio
root bean: br.com.caelum.vraptor.controller.UsuarioController$Proxy$_$$_WeldSubclass@132143b3
property path: adiciona.arg0.email
constraint: @org.hibernate.validator.constraints.NotEmpty(message={org.hibernate.validator.constraints.NotEmpty.message}, groups=[], payload=[])
(2) Kind: PROPERTY
message: Não pode estar vazio
root bean: br.com.caelum.vraptor.controller.UsuarioController$Proxy$_$$_WeldSubclass@132143b3
property path: adiciona.arg0.nome
constraint: @org.hibernate.validator.constraints.NotEmpty(message={org.hibernate.validator.constraints.NotEmpty.message}, groups=[], payload=[])] with root cause
javax.validation.ConstraintViolationException: 2 constraint violation(s) occurred during method validation.
Constructor or Method: public void br.com.caelum.vraptor.controller.UsuarioController.adiciona(br.com.caelum.vraptor.model.Usuario)
Argument values: [br.com.caelum.vraptor.model.Usuario@3b0b162f]
Constraint violations:
(1) Kind: PROPERTY
message: Não pode estar vazio
root bean: br.com.caelum.vraptor.controller.UsuarioController$Proxy$_$$_WeldSubclass@132143b3
property path: adiciona.arg0.email
constraint: @org.hibernate.validator.constraints.NotEmpty(message={org.hibernate.validator.constraints.NotEmpty.message}, groups=[], payload=[])
(2) Kind: PROPERTY
message: Não pode estar vazio
root bean: br.com.caelum.vraptor.controller.UsuarioController$Proxy$_$$_WeldSubclass@132143b3
property path: adiciona.arg0.nome
constraint: @org.hibernate.validator.constraints.NotEmpty(message={org.hibernate.validator.constraints.NotEmpty.message}, groups=[], payload=[])
at org.hibernate.validator.internal.cdi.interceptor.ValidationInterceptor.validateMethodInvocation(ValidationInterceptor.java:81)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
[restante omitido devido ao tamanho da track]