简体   繁体   English

部署到 KIE 服务器时出现 Drools 错误:Fire 规则限制达到 10000

[英]Drools Error while deploying into KIE-server : Fire rule limit reached 10000

I am getting this below error in Drools while invoking via JSON.在通过 JSON 调用时,我在 Drools 中遇到以下错误。 But the same jar and request works fine after restart of the server.但是在重新启动服务器后,相同的 jar 和请求工作正常。 Not sure of what is the exact reason for this occurrence.不确定发生这种情况的确切原因是什么。

Error JSON Response :错误 JSON 响应:

{
   "type": "FAILURE",
   "msg": "Error calling container MotorPolicyRules_1.0.1: [PrePolicy.TW_OD:1 -- [TW_OD_Computation:3 - Get Max Discount:8] -- Fire rule limit reached 10000, limit can be set via system property org.jbpm.rule.task.firelimit or via data input of business rule task named FireRuleLimit",
   "result": null
}

You're running into a limit whose purpose is to protect your application from looping rules.您遇到了一个限制,其目的是保护您的应用程序免受循环规则的影响。 Unless you have a very rare situation where you legitimately need to trigger the same rule 10,000 times (or 10,000 rules altogether), then you likely have an issue with how your rules are designed and should investigate.除非您遇到非常罕见的情况,即您合法地需要触发相同规则 10,000 次(或总共 10,000 条规则),否则您可能对规则的设计方式存在问题并且应该进行调查。 This exception is being thrown to alert you to this potentially dangerous situation.抛出此异常是为了提醒您注意这种潜在的危险情况。

(A legitimate use case for exceeding 10,000 rules would be a set of rule which need to act on multiple rows in a large spreadsheet.) (超过 10,000 条规则的合法用例是需要对大型电子表格中的多行进行操作的一组规则。)

Why you're hitting this limit could be a number of things, from how the rules and inputs are designed to how you're managing your sessions.达到此限制的原因可能有很多,从规则和输入的设计方式到您管理会话的方式。 You'll need to debug into your server the next time you run into this situation ( prior to restarting , clearly) and take a look around at what is going on and how you're passing information into the rule engine.下次遇到这种情况时(在重新启动之前,很明显),您需要调试到您的服务器,并查看正在发生的事情以及您如何将信息传递到规则引擎中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 刮掉搜索栏的定价 - 达到服务器限制 - Scraping Pricing off a search Bar - reached server limit 处女座服务器抛出java.lang.NoClassDefFoundError:org / json / JSONException部署Java包时出错 - Virgo Server Throwing java.lang.NoClassDefFoundError: org/json/JSONException Error while deploying a Java package AWS Iot创建新规则时创建规则错误 - Aws Iot create rule error while creating new rule 使用 powershell 部署 Azure Json 策略时出错 - Error while deploying Azure Json policy using powershell ajax JSON成功总是在错误=> true时触发 - ajax JSON success always fire while error=>true 将模块部署到物联网边缘设备时发生错误(错误代码:Argumentinvalid) - error occurred while deploying a module to iot edge device (ErrorCode:Argumentinvalid) 当使用Facebook图表获取共享计数时,即使我距离限制不远,我仍然不断收到“申请请求”限制 - When getting share count using Facebook graph, I keep getting Application Request limit reached error even though I'm nowhere near the limit 将JSON有效负载部署到服务器 - Deploying JSON payload to server 与服务器通信时发生错误 - An error occured while communicating to the server POST到服务器时嵌套对象的RestKit错误 - RestKit error for a nested object while POSTing to server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM