You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-user@xml.apache.org by Raghu Subramanyam <sr...@hotmail.com> on 2003/12/02 08:53:24 UTC

java.lang.OutOfMemoryError---- Exception

hi

I am encountering following exception when compiling the XSD file.

the setting in ant file is  ,

  <target name="rms.jar" depends="rms.check, dirs, xbean" 
unless="rms.notRequired">
    <java classname="${schema_compiler}" classpathref="scomp.run.path" 
fork="true" failonerror="true">
      <jvmarg value="-ea"/>
	<jvmarg value="-Xms64m"/>
	<jvmarg value="-Xmx500m"/>
      <arg line="-out build/private/lib/rms.jar test/src/rms"/>
    </java>
  </target>

and also I tried with this config,

  <target name="rms.jar" depends="rms.check, dirs, xbean" 
unless="rms.notRequired">
    <java classname="${schema_compiler}" classpathref="scomp.run.path" 
fork="true" failonerror="true" maxmemory="500m">
      <jvmarg value="-ea"/>
      <arg line="-out build/private/lib/rms.jar test/src/rms"/>
    </java>
  </target>

the Exception is ,

xbean.jar:
      [jar] Building jar: D:\raghu\dwns\xml-xmlbeans\v2\build\lib\xbean.jar

xbean:
     [copy] Copying 1 file to D:\raghu\dwns\xml-xmlbeans\v2\build\ar

rms.jar:
     [java] Time to build schema type system: 6.828 seconds
     [java] Time to generate code: 150.218 seconds


     [java] The system is out of resources.
     [java] Consult the following stack trace for details.
     [java] java.lang.OutOfMemoryError
     [java] BUILD FAILED

     [java] Java Result: 1

I have one XSD file which inturn has reference to 30 XSD files......

It generates the java files but it throws the error when it is compiling the 
generated source files.
I tried increasing the memory size to 600Mb but no use.

And also i tried to compile the same wit JAXB with SUN-RI but not only it is 
slow but it also throws the same error , java.lang.OutOfMemoryError

Thanks for the help,

Raghu

_________________________________________________________________
Add zing to Hotmail. Get FREE newsletters. 
http://server1.msn.co.in/features/general/Newsletters/index.asp Subscribe 
now!


- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/