OutOfMemoryError in SchemaFactory.newSchema

Hello,

i need to validate an xml document against an xschema. i user the following code to test this with an xml of size 4KB and an xschema of 50K.

final String sl = XMLConstants.W3C_XML_SCHEMA_NS_URI;

SchemaFactory factory = SchemaFactory.newInstance(sl);

StreamSource ss = new StreamSource("sap_remadv.xsd");

Schema schema = factory.newSchema(ss);

Validator validator =schema.newValidator();

validator.validate(new StreamSource("edixml_remadv.xml"));

factory.newSchema takes quite a lot of time and break with an OutOfMemoryError. I have set the VM parameters to -Xmx768M, which i think should be enough.

Are there an known issues? I need to use 1.4.2 JDK for this solution!

Thanks in advance

Christian

[778 byte] By [j2eeonyxa] at [2007-10-3 4:53:06]
# 1
I am sorry, this method does not throw the OutOfMemoryException, it just does not get to an end.I will open a new thread for this issue.
j2eeonyxa at 2007-7-14 22:57:56 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...