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
  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 | 3 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

    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?
  6. 0

    Create User Exception on Snapshot

    GitHub | 2 years ago | bryanhelmig
    org.springframework.beans.NotReadablePropertyException: Invalid property 'email' of bean class [org.graylog2.restclient.models.api.requests.CreateUserRequestForm]: Bean property 'email' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?

  1. abrazeneb 7 times, last 4 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