org.springframework.web.bind.ServletRequestBindingException: Errors binding onto object 'controle'; nested exception is org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
Field error in object 'controle' on field 'produit': rejected value [idArticle=[12] libelle=[ds] qtite=[12] numeroArticle=[art12] controleIdControle=[12] ]; codes [typeMismatch.controle.produit,typeMismatch.produit,typeMismatch.org.msi.pfe.domain.Produit,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [controle.produit,produit]; arguments []; default message [produit]]; default message [Failed to convert property value of type [java.lang.String] to required type [org.msi.pfe.domain.Produit] for property 'produit'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [org.msi.pfe.domain.Produit] for property 'produit': no matching editors or conversion strategy found]
org.springframework.web.bind.ServletRequestDataBinder.closeNoCatch(ServletRequestDataBinder.java:121)
org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodInvoker.doBind(AnnotationMethodHandlerAdapter.java:568)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.resolveHandlerArguments(HandlerMethodInvoker.java:213)
org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:132)
Partager