Announcement Announcement Module
Collapse
No announcement yet.
How does decision state investigate nested properties? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How does decision state investigate nested properties?

    Hi, I have an interface called Page {
    Collection<Page> getPages();
    }

    I have a decision state with the following expression: ${requestScope.page.pages == null}

    and I get the following stack trace:

    Code:
    14&#58;15&#58;05,484 ERROR &#91;Engine&#93; StandardWrapperValve&#91;sitebuilder&#93;&#58;Servlet.service&#40;&#41; for servlet sitebuilder threw exception org.springframework.beans.NotReadablePropertyException&#58; Invalid property 'requestScope.page' of bean class &#91;org.springframework.web.flow.execution.impl.StateContextImpl&#93;&#58; Bean property 'requestScope.page' is not readable or has an invalid getter  method&#58; Does the return type of the getter match the parameter type of the setter?
            at org.springframework.beans.BeanWrapperImpl.getPropertyValue&#40;BeanWrapperImpl.java&#58;634&#41;
            at org.springframework.beans.BeanWrapperImpl.getNestedBeanWrapper&#40;BeanWrapperImpl.java&#58;535&#41;
            at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath&#40;BeanWrapperImpl.java&#58;513&#41;
            at org.springframework.beans.BeanWrapperImpl.getBeanWrapperForPropertyPath&#40;BeanWrapperImpl.java&#58;514&#41;
            at org.springframework.beans.BeanWrapperImpl.getPropertyValue&#40;BeanWrapperImpl.java&#58;624&#41;
            at org.springframework.binding.expression.support.BeanWrapperEvaluator.evaluate&#40;BeanWrapperEvaluator.java&#58;25&#41;
            at org.springframework.web.flow.config.TextToTransitionCriteria$ExpressionTransitionCriteria.test&#40;TextToTransitionCriteria
    .java&#58;133&#41;
            at org.springframework.web.flow.Transition.matches&#40;Transition.java&#58;228&#41;
            at org.springframework.web.flow.TransitionableState.getTransition&#40;TransitionableState.java&#58;166&#41;
            at org.springframework.web.flow.TransitionableState.getRequiredTransition&#40;TransitionableState.java&#58;179&#41;
            at org.springframework.web.flow.DecisionState.doEnter&#40;DecisionState.java&#58;110&#41;
    Not sure what the problem is?

    Any ideas?

    Any *yes* there is an object called Page of type Page in requestScope

  • #2
    Solved

    OK, so it is the same problem as http://forum.springframework.org/showthread.php?t=15263

    Is there no way the framework can throw a ClassNotFound exception if it cannot find OGML?
    Last edited by robyn; May 16th, 2006, 03:57 AM.

    Comment


    • #3
      Well right now we try OGNL and if not there we use Spring's bean wrapper. I don't think we want to mandate OGNL, though perhaps its better to rely on an explicit set of a default rather than a fallback. Not sure.

      In any case we've improved logging for PR4 with this -- it'll info you if ognl is not in the classpath.

      Comment


      • #4
        Cool.

        Comment

        Working...
        X