You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2006/12/13 00:15:12 UTC

DO NOT REPLY [Bug 39634] - HSSFWorkbook throwing intermittent exception on write()

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/