org.drools.template.parser.DecisionTableParseException: An error occurred opening the workbook. It is possible that the encoding of the document did not match the encoding of the reader.

Stack Overflow | Ajeet Singh | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Issue with Excel DecisionTable to load from newClasspathResource

    Stack Overflow | 9 months ago | Ajeet Singh
    org.drools.template.parser.DecisionTableParseException: An error occurred opening the workbook. It is possible that the encoding of the document did not match the encoding of the reader.
  2. 0

    Upgrade from 4.x to 6.5.0.Final - Can't buildAll from .XLS file

    Google Groups | 6 months ago | Unknown author
    org.drools.template.parser.DecisionTableParseException: An error occurred opening the workbook. It is possible that the encoding of the document did not match the encoding of the reader.

    1 unregistered visitors

    Root Cause Analysis

    1. org.apache.poi.openxml4j.exceptions.InvalidFormatException

      Your InputStream was neither an OLE2 stream, nor an OOXML stream

      at org.apache.poi.ss.usermodel.WorkbookFactory.create()
    2. POI
      WorkbookFactory.create
      1. org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:211)
      2. org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:168)
      2 frames
    3. Drools :: Decision Tables
      DecisionTableProviderImpl.loadFromResource
      1. org.drools.decisiontable.parser.xls.ExcelParser.parseFile(ExcelParser.java:83)
      2. org.drools.decisiontable.parser.xls.ExcelParser.parseFile(ExcelParser.java:85)
      3. org.drools.decisiontable.SpreadsheetCompiler.parseResource(SpreadsheetCompiler.java:126)
      4. org.drools.decisiontable.SpreadsheetCompiler.getRuleSheetListener(SpreadsheetCompiler.java:185)
      5. org.drools.decisiontable.SpreadsheetCompiler.compile(SpreadsheetCompiler.java:172)
      6. org.drools.decisiontable.SpreadsheetCompiler.compile(SpreadsheetCompiler.java:167)
      7. org.drools.decisiontable.DecisionTableProviderImpl.compileResource(DecisionTableProviderImpl.java:81)
      8. org.drools.decisiontable.DecisionTableProviderImpl.loadFromResource(DecisionTableProviderImpl.java:44)
      8 frames
    4. Drools :: Compiler
      KnowledgeBuilderImpl.add
      1. org.drools.compiler.compiler.DecisionTableFactory.loadFromResource(DecisionTableFactory.java:37)
      2. org.drools.compiler.builder.impl.KnowledgeBuilderImpl.decisionTableToPackageDescr(KnowledgeBuilderImpl.java:404)
      3. org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addPackageFromDecisionTable(KnowledgeBuilderImpl.java:374)
      4. org.drools.compiler.builder.impl.KnowledgeBuilderImpl.addKnowledgeResource(KnowledgeBuilderImpl.java:766)
      5. org.drools.compiler.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:2249)
      5 frames