Re: Restoring NodeTreeMaps
Kai Schutte <[email protected]> Thu, 26 May 2005 02:53:40 +0800
| Newsgroups | gmane.comp.java.ozone.user |
|---|---|
| Message-ID | <[email protected]> |
Hi again Thomas, I'm guessing the bug you posted about previously produced an incomplete data file, and the XML parser is choking on that in the stack trace below... perhaps try to get your system running again from a recent backup (if that's an option), then take a look at the data xml file that you're trying to recover from... if you're lucky, any decent XML editor tool can be used to validate the XML, which may show error's in the file's structure... Then it's up to you to patch up the file manually. There's probably a better solution, but I'm an Ozone newbie, and I'm more interested in the actual code than administration / backup systems... good luck -kai Thomas Dingler wrote: > Hi, > > I used NodeTreeMap in my Implementation. After my last mail, I tried > to backup and then restore the database and I got the following > InstantiationException while restoring. > > Any ideas? I tried to rebuild my database to check for a problem in > the database structure. But as you can see, this does not work at all. > > I need urgent help, because this is a productive system, and now the > nodetreemap does not work as I supposed it to work. > > Thomas Dingler > > > This is the server output: > > [org.ozoneDB.xml.util.SAXChunkConsumer] startDocument() > [org.ozoneDB.xml.util.SAXChunkConsumer] startElement() > [org.ozoneDB.xml.util.SAXChunkConsumer] namespace=, localname=ozone- > database-backup, qname=ozone-database-backup > [org.ozoneDB.xml.util.SAXChunkConsumer] startElement() > [org.ozoneDB.xml.util.SAXChunkConsumer] namespace=, localname=obj, > qname=obj > handleObjStartElement: java.lang.InstantiationException: > org.ozoneDB.collections._NodeTreeMap_OzoneNodeImpl > [org.ozoneDB.xml.util.SAXChunkConsumer] startElement() > [org.ozoneDB.xml.util.SAXChunkConsumer] namespace=, localname=member, > qname=member > [org.ozoneDB.xml.util.SAXChunkConsumer] startElement() > [org.ozoneDB.xml.util.SAXChunkConsumer] namespace=, localname=value, > qname=value > > > This is the admin output: > > java.util.EmptyStackException > at java.util.Stack.peek(Stack.java:79) > at > org.ozoneDB.core.xml.XML2ObjectContentHandler.handleMemberEndElement > (Unknown Source) > at > org.ozoneDB.core.xml.XML2ObjectContentHandler.memberEndElement > (Unknown Source) > at org.ozoneDB.core.xml.XML2ObjectContentHandler.endElement > (Unknown Source) > at org.ozoneDB.xml.util.SAXChunkConsumer.processChunk (Unknown > Source) > at org.ozoneDB.core.admin.BackupRestore.processRestoreChunk > (Unknown Source) > at org.ozoneDB.core.admin.AdminImpl.processRestoreChunk > (Unknown Source) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke > (NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke > (DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at org.ozoneDB.core.AbstractObjectContainer.invokeTarget > (Unknown Source) > at org.ozoneDB.core.Transaction.invokeObject(Unknown Source) > at org.ozoneDB.core.DbRemote.DbInvoke.perform(Unknown Source) > at org.ozoneDB.core.Transaction.performCommand(Unknown Source) > at org.ozoneDB.core.TransactionManager.performCommand (Unknown > Source) > at org.ozoneDB.core.TransactionManager.completeTransaction > (Unknown Source) > at org.ozoneDB.core.TransactionManager.handleCommand(Unknown > Source) > at org.ozoneDB.core.TransactionManager.handleCommand(Unknown > Source) > at org.ozoneDB.core.InvokeServer.handleClientEvent(Unknown > Source) > at org.ozoneDB.DxLib.net.DxMultiServerClient.run(Unknown Source) > at java.lang.Thread.run(Thread.java:552) > > An error occured while restoring the database. > The database is not entirely restored and is probably not usable! > Please completely install and restore again. > > java.lang.RuntimeException: java.util.EmptyStackException > at org.ozoneDB.xml.util.SAXChunkProducer.checkChunk(Unknown > Source) > at org.ozoneDB.xml.util.SAXChunkProducer.startElement (Unknown > Source) > at org.xml.sax.helpers.ParserAdapter.startElement > (ParserAdapter.java:597) > at org.xml.sax.helpers.XMLReaderAdapter.startElement > (XMLReaderAdapter.java:333) > at org.gjt.xpp.sax2.Driver.parseSubTree(Driver.java:362) > at org.gjt.xpp.sax2.Driver.parse(Driver.java:310) > at org.xml.sax.helpers.XMLReaderAdapter.parse > (XMLReaderAdapter.java:223) > at org.xml.sax.helpers.ParserAdapter.parse > (ParserAdapter.java:431) > at org.ozoneDB.core.admin.AdminClient.restore(Unknown Source) > at org.ozoneDB.core.admin.AdminClient.main(Unknown Source) > Error: Start the restore process first. > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit > http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 > _______________________________________________ > Ozone-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ozone-users > > > !DSPAM:4294290f298591794010766! > ------------------------------------------------------- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click