javax.servlet.ServletException: Unable to locate object to be marshalled in model: {org.springframework.validation.BindingResult.employees=org.springframework.validation.BeanPropertyBindingResult: 0 errors, employees=dw.spring3.rest.bean.EmployeeList@103c1a5}

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via ibm.com by Unknown author, 1 year ago
Unable to locate object to be marshalled in model: {org.springframework.validation.BindingResult.employees=org.springframework.validation.BeanPropertyBindingResult: 0 errors, employees=dw.spring3.rest.bean.EmployeeList@103c1a5}
via Stack Overflow by skip
, 1 year ago
Unable to locate object to be marshalled in model: {movies=[com.wickedlynotsmart.imdb.model.Movie@1450f1f, com.wickedlynotsmart.imdb.model.Movie@ac622a, com.wickedlynotsmart.imdb.model.Movie@160c21a, com.wickedlynotsmart.imdb.model.Movie@1677737, com.wickedlynotsmart.imdb.model.Movie@1c3dc66]}
via Stack Overflow by subha sankar
, 2 years ago
Unable to locate object to be marshalled in model: {modelAndView=ModelAndView: reference to view with name 'employees'; model is {employees=com.spring.rest.bean.EmployeeList@6ac2d3c}, org.springframework.validation.BindingResult.modelAndView=org.springframework.validation.BeanPropertyBindingResult: 0 errors}
javax.servlet.ServletException: Unable to locate object to be marshalled in model: {org.springframework.validation.BindingResult.employees=org.springframework.validation.BeanPropertyBindingResult: 0 errors, employees=dw.spring3.rest.bean.EmployeeList@103c1a5}
at org.springframework.web.servlet.view.xml.MarshallingView.renderMergedOutputModel(MarshallingView.java:100)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1062)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:709)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:613)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
8 times, 1 month ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
12 times, 7 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.