Philippe Poulard wrote:
    Resource getResource() throws FileSystemException, XMLDBException {
        boolean isXML = true;
        Collection coll = DatabaseManager.getCollection(
            XMLDBFileObject.this.getParent().getName().getURI()
        );
for ( Iterator it = XMLDBFileObject.this.getContent().getAttributes().entrySet().iterator() ; it.hasNext() ; ) {
            /*
             * getAttributes() fails here because the type
             * is FileType.IMAGINARY : it has been set when
             * delete() has been called
So the problem is that imaginray files are not allowed to have attributes.
Why not simply avoid the loop over the attributes if the file is of type IMAGINARY?

I also do not fully understandy why it works if you call close() after delete() - during the attach() the file should still be IMAGINARY as it is deleted. Might it be that your FileObject.doGetType() do not correctly report the type of the file?


---
Mario


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to