[
https://jira.jboss.org/jira/browse/JBESB-2084?page=com.atlassian.jira.plu...
]
Burr Sutter commented on JBESB-2084:
------------------------------------
OK. So the only way to see the syntax error in the .drl (or .xls) is to have DEBUG level
logging on for the container and then look in server.log.
It doesn't show up on the console but I do find the following in my server.log of the
.org ESB Server which has DEBUG turned on:
2008-10-01 17:06:15,293 DEBUG
[org.jboss.soa.esb.listeners.message.ActionProcessingPipeline] Unexpected exception caught
while processing the action pipeline: header: [ To: JMSEpr [ PortReference <
<wsa:Address jms://127.0.0.1:1099/queue/quickstart_Business_Rules_Request_ESB/>,
<wsa:ReferenceProperties jbossesb:java.naming.factory.initial :
org.jnp.interfaces.NamingContextFactory/>, <wsa:ReferenceProperties
jbossesb:java.naming.provider.url : 127.0.0.1:1099/>, <wsa:ReferenceProperties
jbossesb:java.naming.factory.url.pkgs : org.jnp.interfaces/>,
<wsa:ReferenceProperties jbossesb:destination-type : queue/>,
<wsa:ReferenceProperties jbossesb:specification-version : 1.1/>,
<wsa:ReferenceProperties jbossesb:connection-factory : ConnectionFactory/>,
<wsa:ReferenceProperties jbossesb:persistent : true/>, <wsa:ReferenceProperties
jbossesb:acknowledge-mode : AUTO_ACKNOWLEDGE/>, <wsa:ReferenceProperties
jbossesb:transacted : false/>, <wsa:ReferenceProperties jbossesb:type :
urn:jboss/esb/epr/type/jms/> > ] MessageID: fae35550-980d-4fcd-8940-fc68f978a393
RelatesTo: jms:correlationID#fae35550-980d-4fcd-8940-fc68f978a393 ]
org.jboss.soa.esb.actions.ActionProcessingException: [12,0]: unknown:12:0 mismatched
token: [@101,395:399='BOGUS',<7>,12:0];
at
org.jboss.soa.esb.actions.BusinessRulesProcessor.process(BusinessRulesProcessor.java:105)
at
org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:485)
at
org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:369)
at
org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:530)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.jboss.internal.soa.esb.services.rules.RuleServiceException: [12,0]:
unknown:12:0 mismatched token: [@101,395:399='BOGUS',<7>,12:0];
at
org.jboss.internal.soa.esb.services.rules.DroolsRuleBaseHelper.getNewRuleBaseWithPackage(DroolsRuleBaseHelper.java:272)
at
org.jboss.internal.soa.esb.services.rules.DroolsRuleBaseHelper.createRuleBaseFromRuleFiles(DroolsRuleBaseHelper.java:134)
at
org.jboss.internal.soa.esb.services.rules.DroolsRuleService.getRuleBaseForFileBasedRules(DroolsRuleService.java:479)
at
org.jboss.internal.soa.esb.services.rules.DroolsRuleService.executeStatelessRules(DroolsRuleService.java:126)
at
org.jboss.internal.soa.esb.services.rules.RuleServiceCallHelper.executeRulesService(RuleServiceCallHelper.java:137)
at
org.jboss.soa.esb.actions.BusinessRulesProcessor.executeRulesService(BusinessRulesProcessor.java:121)
at
org.jboss.soa.esb.actions.BusinessRulesProcessor.process(BusinessRulesProcessor.java:97)
... 6 more
Caused by: org.drools.rule.InvalidRulePackage: [12,0]: unknown:12:0 mismatched token:
[@101,395:399='BOGUS',<7>,12:0];
at org.drools.rule.Package.checkValidity(Package.java:424)
at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:394)
at
org.jboss.internal.soa.esb.services.rules.DroolsRuleBaseHelper.getNewRuleBaseWithPackage(DroolsRuleBaseHelper.java:267)
... 12 more
Decision Tables fail silently using BusinessRuleProcessor
---------------------------------------------------------
Key: JBESB-2084
URL:
https://jira.jboss.org/jira/browse/JBESB-2084
Project: JBoss ESB
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Rosetta
Affects Versions: 4.4
Reporter: Burr Sutter
Attachments: ABusiness_rules_service.zip
See attached example/quickstart. The following in the jboss-esb.xml
<action
class="org.jboss.soa.esb.actions.BusinessRulesProcessor"
name="calculateOrderPriority">
<property name="decisionTable"
value="decisionTables/Priority_Rules.xls" />
<property name="ruleReload" value="true" />
<property name="object-paths">
<object-path esb="body.orderHeader" />
<object-path esb="body.customer" />
</property>
</action>
Does nothing.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira