|
There is a problem when I want create Switchyard rules component from Decision Table which is in CSV format. Builder thinks that file's format is XLS and try it parses. The consequence is thrown exception:
java.lang.IllegalArgumentException: Your InputStream was neither an OLE2 stream, nor an OOXML stream at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:75)[368:org.apache.servicemix.bundles.poi:3.9.0.2] at org.drools.decisiontable.parser.xls.ExcelParser.parseFile(ExcelParser.java:82)[369:org.drools.decisiontables:6.1.0.20140801-1612] ...
Version-Release number of selected component (if applicable): JBoss Fuse 6.1.0.redhat-379 + Switchyard 2.0.0.Aplha3 (community version)
How reproducible: Attached maven project with a reproducer (100%).
Actual results: Unable to start switchyard for bundle com.example.switchyard.switchyard-dtables. Full error log is enclosed.
Additional info: Expected problem is in function compileStream of class DecisionTableProviderImpl which passed parameter DecisionTableConfiguration configuration is null instead of a correct configuration with input type CSV.
|