【问题标题】:BadlyFormattedFlowExecutionKeyException in grails webflowgrails webflow中的BadlyFormattedFlowExecutionKeyException
【发布时间】:2013-03-23 15:02:19
【问题描述】:

我在地址栏中更改执行参数值时遇到 grails “BadlyFormattedFlowExecutionKeyException”异常!有谁知道如何处理此类异常?

干杯!

【问题讨论】:

  • 在这里查看异常的描述:static.springsource.org/spring-webflow/docs/2.3.x/javadoc-api/… - 你能告诉我们你定义密钥的代码吗?
  • 我说的是grails,你没有定义键。当您在 webflow 中时,Grails 会自动为每个 url 添加执行参数。
  • 好的,哪个 URL 给你的问题?您可以粘贴堆栈跟踪或让我们帮助您的东西吗?
  • 你能发布堆栈跟踪和你的流程代码吗?
  • 你将执行参数值更改为什么?

标签: exception grails spring-webflow


【解决方案1】:

我遇到了同样的问题。经过大量谷歌搜索后,我为每个流程制作了一个过滤器。 并且在“之前”关闭中,我读取了 params.execution,如果 params.execution 不为空,我使用 getFlowStateName 函数测试状态:

Accessing flow state name from filter

如果是无效状态(函数返回 null),我会重定向到流程的开头(重定向控制器:'xx',动作:'yy')。

最好的问候!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-05-28
    • 2011-12-14
    • 1970-01-01
    • 1970-01-01
    • 2011-01-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多