<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
I'm getting a problem with the org.apache.poi.openxml4j.exceptions
package in my osgi things. I could not find a bundle that exports
such package.<br>
<br>
Investigating a bit, the unique class that I could find using this
api is org.drools.decisiontable.parser.xls.ExcelParser, but only
org.apache.poi.openxml4j.exceptions.InvalidFormatException class.<br>
<br>
is this api really needed?<br>
<br>
<blockquote type="cite"> public void parseFile(InputStream
inStream) {<br>
try {<br>
Workbook workbook = WorkbookFactory.create(inStream);<br>
<br>
if ( _useFirstSheet ) {<br>
Sheet sheet = workbook.getSheetAt( 0 );<br>
processSheet( sheet, _listeners.get(
DEFAULT_RULESHEET_NAME ) );<br>
} else {<br>
for ( String sheetName : _listeners.keySet() ) {<br>
Sheet sheet = workbook.getSheet( sheetName );<br>
if (sheet == null) {<br>
throw new IllegalStateException("Could not
find the sheetName (" + sheetName<br>
+ ") in
the workbook sheetNames.");<br>
}<br>
processSheet( sheet,<br>
_listeners.get( sheetName ) );<br>
<br>
}<br>
}<br>
} catch ( <b>InvalidFormatException</b> e ) {<br>
throw new DecisionTableParseException( "An error
occurred opening the workbook. It is possible that the encoding of
the document did not match the encoding of the reader.",<br>
e );<br>
<br>
} catch ( IOException e ) {<br>
throw new DecisionTableParseException( "Failed to open
Excel stream, " + "please check that the content is xls97
format.",<br>
e );<br>
}<br>
<br>
}</blockquote>
<br>
<br>
all other behavior is being supported by
org/apache/poi/poi/3.9/poi-3.9.jar<br>
<br>
<br>
regards,<br>
<br>
Cristiano<br>
</body>
</html>