Do you have permissions to write there? Are you out of file handles? Is the file already closed? -- Andrew C. Oliver http://www.superlinksoftware.com/poi.jsp Custom enhancements and Commercial Implementation for Jakarta POI
http://jakarta.apache.org/poi For Java and Excel, Got POI? The views expressed in this email are those of the author and are almost definitely not shared by the Apache Software Foundation, its board or its general membership. In fact they probably most definitively disagree with everything espoused in the above email. > From: "Mehner, Bj�rn" <[EMAIL PROTECTED]> > Reply-To: "POI Users List" <[EMAIL PROTECTED]> > Date: Tue, 16 Dec 2003 16:09:29 +0100 > To: "POI Users List (E-Mail)" <[EMAIL PROTECTED]> > Subject: Bad Filedescriptor > > I am getting following exception when writing a workbook to file: > > java.io.IOException: Bad file descriptor > at java.io.FileOutputStream.writeBytes(Native Method) > at java.io.FileOutputStream.write(FileOutputStream.java:203) > at > org.apache.poi.poifs.storage.BigBlock.doWriteData(BigBlock.java:91) > at > org.apache.poi.poifs.storage.HeaderBlockWriter.writeData(HeaderBlockWrit > er.java:250) > at > org.apache.poi.poifs.storage.BigBlock.writeBlocks(BigBlock.java:122) > at > org.apache.poi.poifs.filesystem.POIFSFileSystem.writeFilesystem(POIFSFil > eSystem.java:299) > at > org.apache.poi.hssf.usermodel.HSSFWorkbook.write(HSSFWorkbook.java:746) > at > de.epos_cs.export.spreadsheet.excel.SaxExcelHandler.close(SaxExcelHandle > r.java:106) > at de.epos_cs.export.ExportImpl.close(ExportImpl.java:194) > at > de.epos_cs.exporttest.ExportTest.testMultiSheets(ExportTest.java:87) > at java.lang.reflect.Method.invoke(Native Method) > at junit.framework.TestCase.runTest(TestCase.java:154) > at junit.framework.TestCase.runBare(TestCase.java:127) > at junit.framework.TestResult$1.protect(TestResult.java:106) > at junit.framework.TestResult.runProtected(TestResult.java:124) > at junit.framework.TestResult.run(TestResult.java:109) > at junit.framework.TestCase.run(TestCase.java:118) > at junit.framework.TestSuite.runTest(TestSuite.java:208) > at junit.framework.TestSuite.run(TestSuite.java:203) > at junit.textui.TestRunner.doRun(TestRunner.java:116) > at junit.textui.TestRunner.doRun(TestRunner.java:109) > at junit.textui.TestRunner.run(TestRunner.java:72) > at de.epos_cs.exporttest.ExportTest.main(ExportTest.java:541) > > The file is completly new, that is gets freshly created. I generate > several sheets. Nothing very special. Not even many data. > Anybody any ideas what this could mean? > > Thanks in advance. > > ciao Bodo > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
