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

Re: Problems storing XML document




Hi Mario,

On Don, 17 Aug 2000, Zucca Mario wrote:
> 
> Hi to all,
> I've got a problem.
> Can anyone help me ?
> 
> I'm trying to store a pretty long XML document about 2000 elements using the
> XML.Store sample. If I USE the DOM loader I got the following error repeated
> many many times:
> 
> D:\Programs\ozone-0.5.4\samples\XML>java -cp
> .;D:\Programs\ozone-0.5.4\bin\ozone
> ..jar;D:\Programs\ozone-0.5.4\bin\xerces.jar;D:\Programs\ozone-0.5.4\bin\jta-
> sspec
> 1_0_1.jar XML.Store cupweb.xml

Why you do not use the ojvm script for running your application? This script
sets all needed jars and environment variables need to run ozone applications.

> 
> File name: cupweb.xml
> Document name: cupweb.xml
> Exception in thread "main" java.lang.StackOverflowError
>         at java.io.ObjectStreamClass.findDescriptorFor(Unknown Source)
>         at java.io.ObjectStreamClass.lookupInternal(Unknown Source)
>         at java.io.ObjectOutputStream.writeObject(Unknown Source)
>         at java.io.ObjectOutputStream.outputClassFields(Unknown Source)
>         at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source)
>         at org.apache.xerces.dom.NodeImpl.writeObject(NodeImpl.java:1385)
>         at java.lang.reflect.Method.invoke(Native Method)
>         at java.io.ObjectOutputStream.invokeObjectWriter(Unknown Source)
>         at java.io.ObjectOutputStream.outputObject(Unknown Source)
>         at java.io.ObjectOutputStream.writeObject(Unknown Source)
> 

Do not use XML.Store for _large_ XML files. If you want to use this class you
have to have installed a lot of RAM, because each DOM tree is build in memory
twice for serialization and deserialization. 

> If I use the SAX it works a bit and then:
> D:\Programs\ozone-0.5.4\samples\XML>java -cp
> .;D:\Programs\ozone-0.5.4\bin\ozone
> ..jar;D:\Programs\ozone-0.5.4\bin\xerces.jar;D:\Programs\ozone-0.5.4\bin\jta-
> sspec
> 1_0_1.jar XML.SAXStore cupweb.xml
> File name: cupweb.xml
> Document name: cupweb.xml
> org.ozoneDB.UnexpectedException: org.ozoneDB.OzoneInternalExc:
> java.lang.NullPoi
> nterException
>         at
> org.ozoneDB.xml.util.SAX2DOMConverterImpl_Proxy.getDocument(SAX2DOMCo
> nverterImpl_Proxy.java:68)
>         at
> org.ozoneDB.xml.util.OzoneSAXParser.storeDocument(OzoneSAXParser.java
> :119)
>         at
> org.ozoneDB.xml.util.OzoneSAXParser.storeDocument(OzoneSAXParser.java
> :96)
>         at XML.SAXStore.main(SAXStore.java:99)
> 
> I attached the XML file if anyone would generate the error :)

Do you get any error on server side? In the last two mails users reported
problems with WizardStore.

Run XML.Load to load the stored XML file. Is this file complete?

> 
> I use ozone 0.5.4 in Windows 2000 environment

Which JDK?

Regards,
Lars
-- 
___________________________________________________________________
Lars Martin                                 mailto:lars@smb-tec.com
SMB GmbH                                     http://www.smb-tec.com