English 中文(简体)
Xerces jar is a DOM parser or SAX parser
原标题:Xerces jar is a DOM parser or SAX parser

I would like to know about Xerces.jar implementation is Xerces.jar a DOM parser or SAX parser. When I try reading a huge XML file I am getting the following error message. Please help java.lang.StackOverflowError

at org.apache.xerces.dom.ParentNode.readObject(Unknown Source)

at sun.reflect.GeneratedMethodAccessor569.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:618)

at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1098)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1756)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1948)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1872)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1756)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342)

at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1948)

at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1872)

at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1756)

at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1342)
问题回答

两者兼有。

a) It des和地板:

PS: Please post the space in the stack where the exception actually occurred. You seem to have left it out :)

PPS: Also look here:

Due to the way in which the parser constructs content models for elements with complex content, specifying large values for the minOccurs or maxOccurs attributes may cause the parser to throw a StackOverflowError. Large values for minOccurs should be avoided, and unbounded should be used instead of a large value for maxOccurs.

考虑改变对外国武装部队的检查,或改变采矿/游艇:





相关问题
.NET DataSet.GetXml() - what s the default encoding?

Existing app passes XML to a sproc in SQLServer 2000, input parameter data type is TEXT; The XML is derived from Dataset.GetXML(). But I notice it doesn t specify an encoding. So when the user ...

Problem in XML parser program

I am doing a simple XML parser program.I am running it in command prompt.The program (abc.java) compiles successfully.But it gives following error after running it: C:Program FilesJavajdk1.6.0_13...

XML parsing problems

i need to parse this such that i can get the attribute of MMV and all the attributes of all CS tags <MMV val="Configdes000110010101"> <CS protocol="SNMP" CommandString="...

nsxmlparser not solving &apos;

Im using NSXMLParser to dissect a xml package, I m receiving &apos inside the package text. I have the following defined for the xmlParser: [xmlParser setShouldResolveExternalEntities: YES]; ...

Example of ASIHTTPRequest with TouchXML

I am currently using NSXMLParser mathods to parse my data something like this : But I found some good option as TouchXML . I googled for some good example or tutorial But I can t understand the ...

Regex to get value within tag

I have a sample set of XML returned back: <rsp stat="ok"> <site> <id>1234</id> <name>testAddress</name> <hostname>anotherName</hostname> ...

BioPython: extracting sequence IDs from a Blast output file

I have a BLAST output file in XML format. It is 22 query sequences with 50 hits reported from each sequence. And I want to extract all the 50x22 hits. This is the code I currently have, but it only ...

热门标签