Announcement Announcement Module
Collapse
No announcement yet.
Spring Web flow upgrade form 1.x to 2.1.x Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Web flow upgrade form 1.x to 2.1.x

    I am upgrading spring web flow from 1.x to 2.1.x .

    In the flow xmls we are using decision states with expression language.

    For some reason it started throwing parsing related exception after the upgrade, which was working fine with SWF 1.x

    the decision-state definition is as follows
    Code:
    <decision-state id="switchEnd">
    	<if test="#{requestParameters.fromPage == 'xxxx' || requestScope.fromPage == 'xxx'}" then="posEdit" />
    	<if test="#{requestParameters.fromPage != 'xxx'}" then="end" />
    </decision-state>
    I am not sure on what am i missed in the above definition.

    The stack trace is as follows
    Code:
    java.lang.IllegalStateException: Cannot handle (123) '{'
            at org.springframework.expression.spel.standard.Tokenizer.process(Tokenizer.java:187)
            at org.springframework.expression.spel.standard.Tokenizer.<init>(Tokenizer.java:47)
            at org.springframework.expression.spel.standard.InternalSpelExpressionParser.doParseExpression(InternalSpelExpressionParser.java:109)
            at org.springframework.expression.spel.standard.SpelExpressionParser.doParseExpression(SpelExpressionParser.java:56)
            at org.springframework.expression.spel.standard.SpelExpressionParser.doParseExpression(SpelExpressionParser.java:1)
            at org.springframework.expression.common.TemplateAwareExpressionParser.parseExpression(TemplateAwareExpressionParser.java:66)
            at org.springframework.binding.expression.spel.SpringELExpressionParser.parseSpelExpression(SpringELExpressionParser.java:85)
            at org.springframework.binding.expression.spel.SpringELExpressionParser.parseExpression(SpringELExpressionParser.java:80)
            at org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder.parseThen(FlowModelFlowBuilder.java:696)
            at org.springframework.webflow.engine.builder.model.FlowModelFlowBuilder.parseIf(FlowModelFlowBuilder.java:686)
    Thanks in advance.
Working...
X