Bug 780942 (SOA-3409) - StringIndexOutOfBounds while parsing XLS based decision table
Summary: StringIndexOutOfBounds while parsing XLS based decision table
Keywords:
Status: CLOSED DUPLICATE of bug 2040112
Alias: SOA-3409
Product: JBoss Enterprise SOA Platform 5
Classification: JBoss
Component: JBoss Rules
Version: 5.2.0.ER4
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 5.2.0 GA
Assignee: Julian Coleman
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-22 13:52 UTC by Martin Vecera
Modified: 2011-11-08 00:50 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-11-08 00:50:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
business_ruleservice_jbqa1847.tar.bz2 (25.65 KB, application/x-bzip)
2011-09-22 13:53 UTC, Martin Vecera
no flags Details
server.log.bz2 (448.50 KB, application/x-bzip)
2011-09-22 13:55 UTC, Martin Vecera
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 780061 0 high CLOSED Decision Table: String Index Out Of Range 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-3409 0 None None None Never

Internal Links: 780061

Description Martin Vecera 2011-09-22 13:52:49 UTC
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.

Comment 1 Martin Vecera 2011-09-22 13:53:21 UTC
Attachment: Added: business_ruleservice_jbqa1847.tar.bz2


Comment 2 Martin Vecera 2011-09-22 13:54:01 UTC
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)


Comment 3 Martin Vecera 2011-09-22 13:55:14 UTC
Attached server log where I tried the example twice.

Comment 4 Martin Vecera 2011-09-22 13:55:14 UTC
Attachment: Added: server.log.bz2


Comment 5 Anne-Louise Tangring 2011-09-27 18:51:14 UTC
Remove quickstart if it's out of date.

Comment 6 RH Bugzilla Integration 2011-09-27 19:02:07 UTC
Bugzilla References: Added: https://bugzilla.redhat.com/show_bug.cgi?id=741726


Comment 7 RH Bugzilla Integration 2011-09-27 19:02:10 UTC
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.

Comment 8 Ryan Zhang 2011-09-28 01:21:00 UTC
This is the same issue as https://issues.jboss.org/browse/BRMS-388

The DistCountDT.xls format is a bit old.


Comment 9 RH Bugzilla Integration 2011-09-28 12:13:48 UTC
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

Comment 10 Douglas Palmer 2011-09-28 15:08:38 UTC
Bugzilla References: Removed: https://bugzilla.redhat.com/show_bug.cgi?id=741726 Added: https://bugzilla.redhat.com/show_bug.cgi?id=741726


Comment 11 RH Bugzilla Integration 2011-09-29 04:24:18 UTC
Lukáš Petrovický <lpetrovi> changed the Status of [bug 741726|https://bugzilla.redhat.com/show_bug.cgi?id=741726] from NEW to CLOSED

Comment 12 RH Bugzilla Integration 2011-09-29 04:24:18 UTC
Lukáš Petrovický <lpetrovi> made a comment on [bug 741726|https://bugzilla.redhat.com/show_bug.cgi?id=741726]



Comment 13 Len DiMaggio 2011-09-29 16:21:48 UTC
Is this the same issue as:

   https://issues.jboss.org/browse/SOA-2426

Comment 14 Len DiMaggio 2011-09-29 16:22:12 UTC
Link: Added: This issue is related to SOA-2426


Comment 15 Julian Coleman 2011-10-13 12:47:07 UTC
Bugzilla References: Removed: https://bugzilla.redhat.com/show_bug.cgi?id=741726 Added: https://bugzilla.redhat.com/show_bug.cgi?id=741726


Comment 16 Julian Coleman 2011-10-13 13:26:12 UTC
Duplicate of SOA-2426

Comment 17 David Le Sage 2011-11-08 00:49:38 UTC
Temporarily reopening for release note status.

Comment 18 David Le Sage 2011-11-08 00:49:53 UTC
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



Note You need to log in before you can comment on or make changes to this bug.