org.springframework.beans.NotReadablePropertyException: Invalid property 'flowScope.sale' of bean class [org.springframework.web.flow.execution.impl.StateContextImpl]: Bean property 'flowScope.sale' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?

Spring JIRA | Ramiya Iyer | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Exception while executing the sellitem sample code org.springframework.beans.NotReadablePropertyException: Invalid property 'flowScope.sale' of bean class [org.springframework.web.flow.execution.impl.StateContextImpl]: Bean property 'flowScope.sale' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter? at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:652) at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:553) at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:531) at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:532) at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:642) at org.springframework.binding.expression.support.BeanWrapperEvaluator.evaluate(BeanWrapperEvaluator.java:25) at org.springframework.web.flow.config.TextToTransitionCriteria$ExpressionTransitionCriteria.test(TextToTransitionCriteria.java:133) at org.springframework.web.flow.Transition.matches(Transition.java:228) at org.springframework.web.flow.TransitionableState.getTransition(TransitionableState.java:166) at org.springframework.web.flow.TransitionableState.getRequiredTransition(TransitionableState.java:179) at org.springframework.web.flow.DecisionState.doEnter(DecisionState.java:110) at org.springframework.web.flow.State.enter(State.java:164) at org.springframework.web.flow.Transition.execute(Transition.java:269) at org.springframework.web.flow.TransitionableState.onEvent(TransitionableState.java:202) at org.springframework.web.flow.execution.impl.FlowExecutionImpl.signalEvent(FlowExecutionImpl.java:317) at org.springframework.web.flow.execution.FlowExecutionManager.onEvent(FlowExecutionManager.java:289) at org.springframework.web.flow.execution.FlowExecutionManager.onEvent(FlowExecutionManager.java:245) at org.springframework.web.flow.execution.servlet.ServletFlowExecutionManager.handle(ServletFlowExecutionManager.java:77) at org.springframework.web.flow.mvc.FlowController.handleRequestInternal(FlowController.java:137) Problem is with the syntax in sellItem-flow.xml - Line 29 It is: <if test="${flowScope.sale.shipping}" then="enterShippingDetails" else="showCostOverview"/> Instead of: <if test="${flowScope.[sale].shipping}" then="enterShippingDetails" else="showCostOverview"/>

    Spring JIRA | 1 decade ago | Ramiya Iyer
    org.springframework.beans.NotReadablePropertyException: Invalid property 'flowScope.sale' of bean class [org.springframework.web.flow.execution.impl.StateContextImpl]: Bean property 'flowScope.sale' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
  2. 0

    Exception while executing the sellitem sample code org.springframework.beans.NotReadablePropertyException: Invalid property 'flowScope.sale' of bean class [org.springframework.web.flow.execution.impl.StateContextImpl]: Bean property 'flowScope.sale' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter? at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:652) at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:553) at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:531) at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:532) at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:642) at org.springframework.binding.expression.support.BeanWrapperEvaluator.evaluate(BeanWrapperEvaluator.java:25) at org.springframework.web.flow.config.TextToTransitionCriteria$ExpressionTransitionCriteria.test(TextToTransitionCriteria.java:133) at org.springframework.web.flow.Transition.matches(Transition.java:228) at org.springframework.web.flow.TransitionableState.getTransition(TransitionableState.java:166) at org.springframework.web.flow.TransitionableState.getRequiredTransition(TransitionableState.java:179) at org.springframework.web.flow.DecisionState.doEnter(DecisionState.java:110) at org.springframework.web.flow.State.enter(State.java:164) at org.springframework.web.flow.Transition.execute(Transition.java:269) at org.springframework.web.flow.TransitionableState.onEvent(TransitionableState.java:202) at org.springframework.web.flow.execution.impl.FlowExecutionImpl.signalEvent(FlowExecutionImpl.java:317) at org.springframework.web.flow.execution.FlowExecutionManager.onEvent(FlowExecutionManager.java:289) at org.springframework.web.flow.execution.FlowExecutionManager.onEvent(FlowExecutionManager.java:245) at org.springframework.web.flow.execution.servlet.ServletFlowExecutionManager.handle(ServletFlowExecutionManager.java:77) at org.springframework.web.flow.mvc.FlowController.handleRequestInternal(FlowController.java:137) Problem is with the syntax in sellItem-flow.xml - Line 29 It is: <if test="${flowScope.sale.shipping}" then="enterShippingDetails" else="showCostOverview"/> Instead of: <if test="${flowScope.[sale].shipping}" then="enterShippingDetails" else="showCostOverview"/>

    Spring JIRA | 1 decade ago | Ramiya Iyer
    org.springframework.beans.NotReadablePropertyException: Invalid property 'flowScope.sale' of bean class [org.springframework.web.flow.execution.impl.StateContextImpl]: Bean property 'flowScope.sale' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
  3. 0

    acess to userName from jsp using spring security

    Stack Overflow | 4 years ago | user2645679
    org.springframework.beans.NotReadablePropertyException: Invalid property 'principal.username' of bean class [org.springframework.security.authentication.UsernamePasswordAuthenticationToken]: Bean property 'principal.username' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring validation issue

    Stack Overflow | 5 years ago | Sandeep
    org.springframework.beans.NotReadablePropertyException: Invalid property 'securityAnswers' of bean class [User]: Bean property 'securityAnswers' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
  6. 0

    I Keep getting 'NotReadablePropertyException' when running a unit test against a new Spring Validator class

    Stack Overflow | 3 years ago | Sudhir
    org.springframework.beans.NotReadablePropertyException: Invalid property 'login' of bean class [springapp.service.LoginValidator]: Bean property 'login' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?

  1. treefolk 5 times, last 2 months ago
  2. abrazeneb 7 times, last 8 months ago
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. org.springframework.beans.NotReadablePropertyException

    Invalid property 'flowScope.sale' of bean class [org.springframework.web.flow.execution.impl.StateContextImpl]: Bean property 'flowScope.sale' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?

    at org.springframework.beans.BeanWrapperImpl.getPropertyValue()
  2. Spring Beans
    BeanWrapperImpl.getPropertyValue
    1. org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:652)
    2. org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper(BeanWrapperImpl.java:553)
    3. org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:531)
    4. org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath(BeanWrapperImpl.java:532)
    5. org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:642)
    5 frames
  3. Spring Binding
    BeanWrapperEvaluator.evaluate
    1. org.springframework.binding.expression.support.BeanWrapperEvaluator.evaluate(BeanWrapperEvaluator.java:25)
    1 frame
  4. org.springframework.web
    FlowController.handleRequestInternal
    1. org.springframework.web.flow.config.TextToTransitionCriteria$ExpressionTransitionCriteria.test(TextToTransitionCriteria.java:133)
    2. org.springframework.web.flow.Transition.matches(Transition.java:228)
    3. org.springframework.web.flow.TransitionableState.getTransition(TransitionableState.java:166)
    4. org.springframework.web.flow.TransitionableState.getRequiredTransition(TransitionableState.java:179)
    5. org.springframework.web.flow.DecisionState.doEnter(DecisionState.java:110)
    6. org.springframework.web.flow.State.enter(State.java:164)
    7. org.springframework.web.flow.Transition.execute(Transition.java:269)
    8. org.springframework.web.flow.TransitionableState.onEvent(TransitionableState.java:202)
    9. org.springframework.web.flow.execution.impl.FlowExecutionImpl.signalEvent(FlowExecutionImpl.java:317)
    10. org.springframework.web.flow.execution.FlowExecutionManager.onEvent(FlowExecutionManager.java:289)
    11. org.springframework.web.flow.execution.FlowExecutionManager.onEvent(FlowExecutionManager.java:245)
    12. org.springframework.web.flow.execution.servlet.ServletFlowExecutionManager.handle(ServletFlowExecutionManager.java:77)
    13. org.springframework.web.flow.mvc.FlowController.handleRequestInternal(FlowController.java:137)
    13 frames