Hi,
I have troubles during the reading of XLS file. If XLS file contains 600 rows I
can import it, but by example of my use, where I need to import more than 11000
rows I get following error message: Unable to construct record instance, the
following exception occured: null
The code for import is following:
POIFSFileSystem fs = null;
HSSFWorkbook wb = null;
HSSFSheet sheet= null;
try {
fs = new POIFSFileSystem(new FileInputStream(fileName));
logger.info("Read from XLS-File: ".concat(fileName));
wb = new HSSFWorkbook(fs); // -------------- Here is failure
} catch (IOException e) {
setFehler(MessageFormat.format(StringConstants.ERROR_NOFILE,
fileName)+e.getMessage());
return false;
} catch (Exception e) {
setFehler(MessageFormat.format(StringConstants.ERROR_NOFILE,
fileName)+e.getMessage());
return false;
}
How can I import bigger files?
The Import XLS-file I putted as attach.
Greetings,
Jerinic Stasa
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
Mailing List: http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta Poi Project: http://jakarta.apache.org/poi/