2013-04-02 78 views
1

当我更改地址栏中的执行参数值时,出现Grails“BadlyFormattedFlowExecutionKeyException”异常!有谁知道如何处理这种例外情况?Grails webflow中的BadlyFormattedFlowExecutionKeyException

干杯!

+0

看看这里的例外描述:http://static.springsource.org/spring-webflow/docs/2.3.x/javadoc-api/org/springframework/webflow/execution/repository/BadlyFormattedFlowExecutionKeyException.html - 你能向我们展示你定义密钥的代码吗? – lucke84

+0

我在谈论grails,你没有定义关键。当您在webflow中时,Grails会自动为每个网址添加执行参数。 – mehmood

+0

好的,哪个URL会给你提供问题?你可以粘贴stacktrace或者让我们帮你吗? – lucke84

回答

1

我有同样的问题。经过大量的谷歌搜索,我为每个流量制作了一个过滤器。 并在“前”封我读params.execution,如果params.execution不为空,我测试与getFlowStateName功能状态:

Accessing flow state name from filter

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

最好的问候!