poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Burch <nick.bu...@alfresco.com>
Subject Re: InvalidOperationException - POI cannot read temp file
Date Thu, 30 Dec 2010 00:50:01 GMT
On Wed, 29 Dec 2010, link wrote:
> here is the code:
>
> XSSFWorkbook workbook = new XSSFWorkbook(sourceFile.getAbsolutePath());
> XSSFSheet sheet = workbook.getSheetAt(0);
> XSSFRow rowW = sheet.getRow(2);
>
> first line throws this:
>
> org.apache.poi.openxml4j.exceptions.InvalidOperationException: Can't open
> the specified file: '/tmp/poifiles/poi-ooxml-1611734909.tmp'

Are you on windows? Windows generally wants you to close a file before you 
can re-open it.

Nick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message