Results 1 to 4 of 4

Thread: How does decision state investigate nested properties?

  1. #1
    Join Date
    Aug 2004
    Posts
    1,905

    Default 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. #2
    Join Date
    Aug 2004
    Posts
    1,905

    Default 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 at 03:57 AM.

  3. #3
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    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.
    Keith Donald
    Core Spring Development Team

  4. #4
    Join Date
    Aug 2004
    Posts
    1,905

    Default

    Cool.

Similar Threads

  1. FlowExecutionStorage in a DB
    By cacho in forum Web Flow
    Replies: 7
    Last Post: Oct 19th, 2009, 03:36 PM
  2. Binding composite properties with DataBinder
    By dhewitt in forum Architecture
    Replies: 16
    Last Post: Jun 1st, 2007, 06:22 AM
  3. Replies: 9
    Last Post: Sep 10th, 2006, 03:52 PM
  4. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  5. Nested properties
    By abstraction in forum Web
    Replies: 2
    Last Post: Jul 29th, 2005, 06:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •