Restoring NodeTreeMaps

Thomas Dingler <[email protected]> Wed, 25 May 2005 09:25:44 +0200
Newsgroups gmane.comp.java.ozone.user
Message-ID <[email protected]>
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