[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Storing XML files



i want to store xml files in an ozone database (what an idea ;-)) . i
use the following code which is almost the same as in the samples.

 PersistentDOMParser parser;
 InputSource source = new InputSource();
 source.setCharacterStream(
   new FileReader(new File(filename)));

 parser = (PersistentDOMParser) new OzoneDOMParser (database);
 parser.storeDocument (source, filename);

but i always get an exception when executing this code

java.io.IOException: org.apache.xerces.dom.DeferredDocumentImpl at
org.ozoneDB.xml.util.OzoneDOMParser.storeDocument(OzoneDOMParser.java:77)
at org.alo.util.Utils.parseXML(Utils.java:85) at
org.alo.library.BookImpl.(BookImpl.java:33) at
org.alo.library.BookProxy.getBook(BookProxy.java:47) at
org.alo.library.BookProxy.getInfoPage(BookProxy.java:38) at
Startpage.getDocument(Startpage.java:10) at
ShowBookContent.service(ShowBookContent.java:49) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:588) at
org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
at org.apache.jserv.JServConnection.run(JServConnection.java:188) at
java.lang.Thread.run(Thread.java:475) Error:
org.apache.xerces.dom.DeferredDocumentImpl

so whats wrong. i had a closer look to the sourcecode of ozone but i
couldnt find out where this exception is throw. 

thanks for your help

alex


-- 
----------------------------------------------
 Alexander Egger
 Nibelungengasse 6, 8010 Graz, Austria
 Tel.: +43/316/845239, Fax: +43/316/845239
 email: alex@sbox.tu-graz.ac.at
----------------------------------------------