Imported from previous forum
Hi everyone,
I tried to generate XMLBean using eclipse from FIXML schemas but failed as my machine ran out of memory.
I had following error:
[xmlbean] The system is out of resources.
[xmlbean] Consult the following stack trace for details.
[xmlbean] java.lang.OutOfMemoryError
[xmlbean] Exception while building schemas: Compile failed; see the compiler error output for details.
My machine has half gig memory and I had set the max memory eclipse can use to be 1536M. It did not accept another more virtual memory as eclipse will not be able to start.
It did successfully generated the .java file but when compile it had above error.
Has anybody successfully generated XMLBean java and .jar files from FIXML? If has, could you let me know what machine requirement it is?
Many thanks,
John Yuan
johnyuan168@hotmail.com
[ original email was from Clive Browning - clive@rapidaddition.com ]
Hi John,
Can’t help you on the eclipse front but we successfully generate classes, database tables and stored procedures etc for .Net directly from the repository using our own tools and XSLT and that approach works on low spec machines (e.g. 1.5GHz machine, 512MB mem).
Clive Browning
Rapid Addition Ltd
Hi everyone,
I tried to generate XMLBean using eclipse from FIXML schemas but failed
as my machine ran out of memory.I had following error: [xmlbean] The system is out of resources.
[xmlbean] Consult the following stack trace for details. [xmlbean]
java.lang.OutOfMemoryError [xmlbean] Exception while building schemas:
Compile failed; see the compiler error output for details.My machine has half gig memory and I had set the max memory eclipse can
use to be 1536M. It did not accept another more virtual memory as
eclipse will not be able to start.It did successfully generated the .java file but when compile it had
above error.Has anybody successfully generated XMLBean java and .jar files from
FIXML? If has, could you let me know what machine requirement it is?Many thanks, John Yuan johnyuan168@hotmail.com
Try running the XMLBeans scomp command in a DOS window instead of in Ecplise. You need to boost the JVM that runs XMLBeans which is not the same JVM that Eclipse runs under. I have a machine similar to yours and was able to run using the following command line.
C:\Projects\FIXML\Schema>%XMLBEANS_HOME%\bin\scomp.cmd -d …\classes -src …\src
-out …\fixml.jar -mx 512m *.xsd
Time to build schema type system: 10.453 seconds
Time to generate code: 59.796 seconds
Time to compile code: 101.483 seconds
Compiled types to: …\fixml.jar
Its not fast, these times were very optimistic. It eventually finishes. Also, you will need to set up environment variables for XMLBeans. So check out the scomp script to see what you need to set up. Make sure that your path points to a version of javac otherwise you get a weird IOException.
Hi everyone,
I tried to generate XMLBean using eclipse from FIXML schemas but failed
as my machine ran out of memory.I had following error: [xmlbean] The system is out of resources.
[xmlbean] Consult the following stack trace for details. [xmlbean]
java.lang.OutOfMemoryError [xmlbean] Exception while building schemas:
Compile failed; see the compiler error output for details.My machine has half gig memory and I had set the max memory eclipse can
use to be 1536M. It did not accept another more virtual memory as
eclipse will not be able to start.It did successfully generated the .java file but when compile it had
above error.Has anybody successfully generated XMLBean java and .jar files from
FIXML? If has, could you let me know what machine requirement it is?Many thanks, John Yuan johnyuan168@hotmail.com