Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 3.61 KB  |  views: 231  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
  2. Field error in object 'account' on field 'customer': rejected value [Marius mbg@abc.com]; codes [typeMismatch.account.customer,typeMismatch.customer,typeMismatch.test.spring.plugin.domain.Customer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [account.customer,customer]; arguments []; default message [customer]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'test.spring.plugin.domain.Customer' for property 'customer'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [test.spring.plugin.domain.Customer] for property 'customer': no matching editors or conversion strategy found]
  3.         org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:894)
  4.         org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
  5.         javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
  6.         javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
  7.  
  8. root cause
  9.  
  10. org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors
  11. Field error in object 'account' on field 'customer': rejected value [Marius mbg@abc.com]; codes [typeMismatch.account.customer,typeMismatch.customer,typeMismatch.test.spring.plugin.domain.Customer,typeMismatch]; arguments [org.springframework.context.support.DefaultMessageSourceResolvable: codes [account.customer,customer]; arguments []; default message [customer]]; default message [Failed to convert property value of type 'java.lang.String' to required type 'test.spring.plugin.domain.Customer' for property 'customer'; nested exception is java.lang.IllegalStateException: Cannot convert value of type [java.lang.String] to required type [test.spring.plugin.domain.Customer] for property 'customer': no matching editors or conversion strategy found]
  12.         org.springframework.web.method.annotation.ModelAttributeMethodProcessor.resolveArgument(ModelAttributeMethodProcessor.java:110)
  13.         org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:74)
  14.         org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:155)
  15.         org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:117)
  16.         org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:96)
  17.         org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:617)
  18.         org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:578)
  19.         org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:80)
  20.         org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:900)
  21.         org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
  22.         org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
  23.         org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
  24.         javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
  25.         javax.servlet.http.HttpServlet.service(HttpServlet.java:847