project_key: SOA StringIndexOutOfBoundsException while trying to work with Drools decision table in XLS file. Attached is a reproducer. Simply extract the archive in quickstarts directory, copy build/Quickstart_business_rules_service_jbqa-1847.esb to server's deploy directory and run 'ant runtest'. Please note that this is a bogus quickstart without sources (hence no other ant tasks will work). You can find the decision table file inside of the esb archive.
Attachment: Added: business_ruleservice_jbqa1847.tar.bz2
2011-09-22 15:44:32,421 DEBUG [org.jboss.soa.esb.listeners.message.ActionProcessingPipeline] (pool-44-thread-1) Unexpected exception caught while processing the action pipeline java.lang.StringIndexOutOfBoundsException: String index out of range: 68 at java.lang.String.checkBounds(String.java:401) at java.lang.String.<init>(String.java:442) at jxl.biff.StringHelper.getString(StringHelper.java:164) at jxl.read.biff.WriteAccessRecord.<init>(WriteAccessRecord.java:56) at jxl.read.biff.WorkbookParser.parse(WorkbookParser.java:821) at jxl.Workbook.getWorkbook(Workbook.java:271) at org.drools.decisiontable.parser.xls.ExcelParser.parseFile(ExcelParser.java:75) at org.drools.decisiontable.SpreadsheetCompiler.compile(SpreadsheetCompiler.java:89) at org.drools.decisiontable.SpreadsheetCompiler.compile(SpreadsheetCompiler.java:68) at org.drools.decisiontable.DecisionTableProviderImpl.compileStream(DecisionTableProviderImpl.java:38) at org.drools.decisiontable.DecisionTableProviderImpl.loadFromInputStream(DecisionTableProviderImpl.java:21) at org.drools.compiler.DecisionTableFactory.loadFromInputStream(DecisionTableFactory.java:18) at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:590) at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:34) at org.jboss.internal.soa.esb.services.rules.DroolsRuleBaseHelper.createRuleBaseFromDecisionTable(DroolsRuleBaseHelper.java:205) at org.jboss.internal.soa.esb.services.rules.DroolsRuleService.getRuleBaseStateForDecisionTable(DroolsRuleService.java:294) at org.jboss.internal.soa.esb.services.rules.DroolsRuleService.executeStatelessRulesFromDecisionTable(DroolsRuleService.java:106) at org.jboss.internal.soa.esb.services.rules.RuleServiceCallHelper.executeStateless(RuleServiceCallHelper.java:286) at org.jboss.internal.soa.esb.services.rules.RuleServiceCallHelper.executeRulesService(RuleServiceCallHelper.java:274) at org.jboss.soa.esb.actions.BusinessRulesProcessor.executeRulesService(BusinessRulesProcessor.java:144) at org.jboss.soa.esb.actions.BusinessRulesProcessor.process(BusinessRulesProcessor.java:125) at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:649) at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.processPipeline(ActionProcessingPipeline.java:603) at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.process(ActionProcessingPipeline.java:433) at org.jboss.soa.esb.listeners.message.MessageAwareListener$TransactionalRunner.run(MessageAwareListener.java:550) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
Attached server log where I tried the example twice.
Attachment: Added: server.log.bz2
Remove quickstart if it's out of date.
Bugzilla References: Added: https://bugzilla.redhat.com/show_bug.cgi?id=741726
Len DiMaggio <ldimaggi> made a comment on [bug 741726|https://bugzilla.redhat.com/show_bug.cgi?id=741726] See: https://issues.jboss.org/browse/SOA-3409 The same code is in BRMS 5.2 - we will want the fix for SOA-3409in BRMS 5.2 too.
This is the same issue as https://issues.jboss.org/browse/BRMS-388 The DistCountDT.xls format is a bit old.
Ryan Zhang <rzhang> made a comment on [bug 741726|https://bugzilla.redhat.com/show_bug.cgi?id=741726] This issue should be the same as Bug 724443 - (BRMS-388) Decision Table: String Index Out Of Range
Bugzilla References: Removed: https://bugzilla.redhat.com/show_bug.cgi?id=741726 Added: https://bugzilla.redhat.com/show_bug.cgi?id=741726
Lukáš Petrovický <lpetrovi> changed the Status of [bug 741726|https://bugzilla.redhat.com/show_bug.cgi?id=741726] from NEW to CLOSED
Lukáš Petrovický <lpetrovi> made a comment on [bug 741726|https://bugzilla.redhat.com/show_bug.cgi?id=741726]
Is this the same issue as: https://issues.jboss.org/browse/SOA-2426
Link: Added: This issue is related to SOA-2426
Duplicate of SOA-2426
Temporarily reopening for release note status.
Release Notes Docs Status: Added: Not Required Writer: Added: dlesage Bugzilla References: Removed: https://bugzilla.redhat.com/show_bug.cgi?id=741726 Added: https://bugzilla.redhat.com/show_bug.cgi?id=741726