Re: bad file descriptor on store.Area.getArea()
Tobias Downer <[email protected]>
| Newsgroups | gmane.comp.db.mckoi |
|---|---|
| Message-ID | <[email protected]> |
I take it you are using the com.mckoi.store package directly and this isn't part of an error when using Mckoi SQL? The 'com.mckoi.store' package acts as a cache between the data and the file system, and the error appears to be happening when a page from the file is read from the file system into memory. Do you think the file might have been closed, or deleted? Toby. Smriti Rajan wrote: > Hi Toby, > > java IO Exception:Bad File descriptor, gets > sporadically thrown when I try to read from store.Area > --> store.Area.getArea(buffer, 0, pos) > > "Sporadically" : the read is in a loop. It is called > at different 'positions' on the same file, some > iterations on the loop it works, and some it doesnt. > File does not seem to be corrupted. > > Any pointers on why this could be happening ? > > Error trace attached below. > > Thanks, > Smriti > > ----------- > java.io.IOException: Bad file descriptor > at java.io.RandomAccessFile.seek(Native > Method) > at > mckoi.store.IOBufferedFile$IOPageBuffer.initImpl(IOBufferedFile.java:79) > at > mckoi.store.PageBuffer.initialize(PageBuffer.java:184) > at > mckoi.store.AbstractBufferedFile.readByteArray(AbstractBufferedFile.java:230) > at > mckoi.store.ScatteringFileStore.readByteArrayFrom(ScatteringFileStore.java:324) > at > mckoi.store.AbstractStore$StoreArea.<init>(AbstractStore.java:1546) > at > mckoi.store.AbstractStore.getArea(AbstractStore.java:1414) --------------------------------------------------------------- Mckoi SQL Database mailing list http://www.mckoi.com/database/ To unsubscribe, send a message to [email protected]