java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'foobar' 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 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
via Stack Overflow by Shyam
, 9 months ago
Neither BindingResult nor plain target object for bean name 'command' available as request attribute
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'foobar' available as request attribute
at org.springframework.web.servlet.support.BindStatus.(BindStatus.java:141)
at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getBindStatus(AbstractDataBoundFormElementTag.java:175)
at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getPropertyPath(AbstractDataBoundFormElementTag.java:195)
at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getName(AbstractDataBoundFormElementTag.java:161)
at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.writeDefaultAttributes(AbstractDataBoundFormElementTag.java:124)
at org.springframework.web.servlet.tags.form.AbstractHtmlElementTag.writeDefaultAttributes(AbstractHtmlElementTag.java:409)
at org.springframework.web.servlet.tags.form.InputTag.writeTagContent(InputTag.java:140)
at org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:91)

Users with the same issue

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, 1 year ago
3 times, 2 months 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.