有人能告诉我以下错误的原因吗?谢谢。
HTTP ERROR: 500
An error has occurred : CommandException: No locking-error workflow found: tried 'system/locking-error' and 'locking-error'
caused by : NoSuchWorkflowException: Unable to retrieve workflow 'system/locking-error': No workflow called "system/locking-error"
Source context:
Application : crm-test
Workflow : settings
Element : atomic-commit
URI :
Line : 6
Column : -1
Path : /workflow[1]/atomic-commit[1]
settings.xml : line 1 : <workflow>
main-page.xml : line 2 : <show-screen>
main-page.xml : line 1 : <workflow>
start.xml : line 3 : <call-workflow>
start.xml : line 1 : <workflow>
Request context:
Request URI: /aviarc/crm-test/22A91EF8DA66B0544BE7F58B3FC011F7发布于 2012-09-04 14:48:10
这里实际上有两个错误:
还没有在workflows/system/locking-error.xml.创建锁定错误处理程序工作流
在任何情况下,此错误通常是由锁定错误以外其他原因引起的。看看您的create/ update /delete查询;也许您认为它会更新一行,但是查询中有一个逻辑错误,它影响的是零行。
如果您不打算使用乐观锁定,您可以为该特定提交禁用它,如下所示:
<atomic-commit optimistic-locking="n">
<dataset name="foo"/>
</atomic-commit>发布于 2012-09-04 14:38:32
默认情况下,原子提交假设所有提交都是使用乐观锁定进行的,如果数据库告诉它提交查询不会影响任何行,它就会假定锁定失败,并尝试调用系统工作流“lock -error”。
https://stackoverflow.com/questions/12257880
复制相似问题