title: Spring webflow PropertyNotFoundException: Property not found
body: <p>I am trying to set a variable inside session scope from spring webflow xml definition and hitting property not found..please help</p>
  
  <blockquote>
    <p>118484 [http-8080-6] DEBUG servlet.YBRServlet  - Handler execution
    resulted in exception - forwarding to resolved error view:
    ModelAndView: reference to view with name 'Err010DfltCrtc'; model is
    {exception=org.springframework.webflow.execution.ActionExecutionException:
    Exception thrown executing [AnnotatedAction@87ba9e targetAction =
    [SetAction@1ed364c name =
    flowRequestContext.externalContext.sessionMap.testCompleted, value =
    yes], attributes = map[[empty]]] in state 'AnnIncr' of flow
    'QlfyEnrl' -- action execution attributes were 'map[[empty]]'}
    org.springframework.webflow.execution.ActionExecutionException:
    Exception thrown executing [AnnotatedAction@87ba9e targetAction =
    [SetAction@1ed364c name =
    flowRequestContext.externalContext.sessionMap.testCompleted, value =
    yes], attributes = map[[empty]]] in state 'AnnIncr' of flow
    'QlfyEnrl' -- action execution attributes were 'map[[empty]]'     at
    org.springframework.webflow.execution.ActionExecutor.execute(ActionExecutor.java:60)
      at
    org.springframework.webflow.engine.ActionList.execute(ActionList.java:155)
      at org.springframework.webflow.engine.State.enter(State.java:193)   at
    org.springframework.webflow.engine.Transition.execute(Transition.java:227)
      at
    org.springframework.webflow.engine.DecisionState.doEnter(DecisionState.java:51)
    Caused by:
    org.springframework.binding.expression.PropertyNotFoundException:
    Property not found    at
    org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:87)
      at</p>
    
    <p>org.springframework.expression.spel.SpelEvaluationException:
    EL1008E*<em>:(pos 0): Field or property 'yes' cannot be found on object of</em>*
    type
    'org.springframework.webflow.engine.impl.RequestControlContextImpl'
      at
    org.springframework.expression.spel.ast.PropertyOrFieldReference.readProperty(PropertyOrFieldReference.java:180)
      at
    org.springframework.expression.spel.ast.PropertyOrFieldReference.getValueInternal(PropertyOrFieldReference.java:60)
      at
    org.springframework.expression.spel.ast.SpelNodeImpl.getTypedValue(SpelNodeImpl.java:102)
      at
    org.springframework.expression.spel.standard.SpelExpression.getValue(SpelExpression.java:97)
      at
    org.springframework.binding.expression.spel.SpringELExpression.getValue(SpringELExpression.java:84)
      ... 88 more</p>
  </blockquote>
  
  <p>Flow Code</p>
  
  <pre><code>&lt;view-state id="AnnIncr" view="AnnIncr" model="ssModel"&gt;
  &lt;on-entry&gt;
  
              &lt;set name="flowRequestContext.externalContext.sessionMap.testCompleted" value="yes"&gt;&lt;/set&gt;
          &lt;/on-entry&gt;
  .....
      &lt;on-exit&gt;
      &lt;set name="flowRequestContext.externalContext.sessionMap.testCompleted" value="no"&gt;&lt;/set&gt;
      &lt;/on-exit&gt;
  &lt;/view-state&gt;
  </code></pre>