poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 39634] - HSSFWorkbook throwing intermittent exception on write()
Date Tue, 12 Dec 2006 23:15:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39634>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39634





------- Additional Comments From chris@siterra.com  2006-12-12 15:15 -------
I also have this problem.  The patch from CK seems to correct it.  Thanks.

I'll attach an excel workbook which when written leads to the error.  I used the
 sample code below for testing.

Chris


import java.io.*;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.poifs.filesystem.POIFSFileSystem;

public class ExcelTest
{
    public static void main(String[] args) throws Exception
    {
	InputStream inputStream = new FileInputStream(new File(args[0]));
	OutputStream outputStream = new FileOutputStream(new File(args[1]));
	POIFSFileSystem fileSystem = new POIFSFileSystem(inputStream);
	HSSFWorkbook workbook = new HSSFWorkbook(fileSystem);
	workbook.write(outputStream);
    }
}


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
Mailing List:    http://jakarta.apache.org/site/mail2.html#poi
The Apache Jakarta POI Project: http://jakarta.apache.org/poi/


Mime
View raw message