java.lang.IllegalStateException

Neither BindingResult nor plain target object for bean name 'contact' available as request attribute

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web104

  • via Stack Overflow by Mr.H.
    ,
  • via Stack Overflow by technics
    ,
  • Stack trace

    • java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'contact' available as request attribute at org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:144)[spring-webmvc-4.3.2.RELEASE.jar!/:4.3.2.RELEASE] at org.thymeleaf.spring4.util.FieldUtils.getBindStatusFromParsedExpression(FieldUtils.java:401)[thymeleaf-spring4-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.spring4.util.FieldUtils.getBindStatus(FieldUtils.java:328)[thymeleaf-spring4-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.spring4.util.FieldUtils.getBindStatus(FieldUtils.java:294)[thymeleaf-spring4-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.spring4.processor.attr.AbstractSpringFieldAttrProcessor.processAttribute(AbstractSpringFieldAttrProcessor.java:98)[thymeleaf-spring4-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.processor.attr.AbstractAttrProcessor.doProcess(AbstractAttrProcessor.java:87)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.processor.AbstractProcessor.process(AbstractProcessor.java:212)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.Node.applyNextProcessor(Node.java:1017)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.Node.processNode(Node.java:972)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.Node.processNode(Node.java:990)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.Node.processNode(Node.java:990)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.Node.processNode(Node.java:990)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.Node.processNode(Node.java:990)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.Node.processNode(Node.java:990)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.Node.processNode(Node.java:990)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.Node.processNode(Node.java:990)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.doAdditionalProcess(NestableNode.java:668)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.Node.processNode(Node.java:990)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE] at org.thymeleaf.dom.NestableNode.computeNextChild(NestableNode.java:695)[thymeleaf-2.1.5.RELEASE.jar!/:2.1.5.RELEASE]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Victor_ITVictor_IT
    6 times, last one
    Unknown visitor
    Unknown visitorOnce,
    Unknown visitor
    Unknown visitorOnce,
    Shadd518Shadd518
    14 times, last one
    qavidqavid
    2 times, last one
    15 more bugmates