java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'command' available as request attribute

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

Solutions on the web

via Stack Overflow by Shyam
, 9 months ago
Neither BindingResult nor plain target object for bean name 'command' available as request attribute
via Spring JIRA by Sid, 1 year ago
Neither BindingResult nor plain target object for bean name 'foobar' available as request attribute
via Spring JIRA by Sid, 1 year ago
Neither BindingResult nor plain target object for bean name 'foobar' available as request attribute
via Spring JIRA by Stefan Ocke, 1 year ago
Neither BindingResult nor plain target object for bean name 'foobar' available as request attribute
via Spring JIRA by Stefan Ocke, 1 year ago
Neither BindingResult nor plain target object for bean name 'foobar' available as request attribute
via Stack Overflow by Deepak Marur
, 2 years ago
Neither BindingResult nor plain target object for bean name 'user' available as request attribute
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'command' available as request attribute
at org.springframework.web.servlet.support.BindStatus.(BindStatus.java:144)
at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getBindStatus(AbstractDataBoundFormElementTag.java:168)
at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getPropertyPath(AbstractDataBoundFormElementTag.java:188)
at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getName(AbstractDataBoundFormElementTag.java:154)
at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.writeDefaultAttributes(AbstractDataBoundFormElementTag.java:117)
at org.springframework.web.servlet.tags.form.AbstractHtmlElementTag.writeDefaultAttributes(AbstractHtmlElementTag.java:422)
at org.springframework.web.servlet.tags.form.InputTag.writeTagContent(InputTag.java:142)
at org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:84)
at org.apache.jsp.WEB_002dINF.views.register_jsp._jspx_meth_form_005finput_005f0(register_jsp.java:913)
at org.apache.jsp.WEB_002dINF.views.register_jsp._jspService(register_jsp.java:287)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 2 years ago
2 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 5 months ago
19 more bugmates

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