Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-233

Schema compiler throws "java.lang.OutOfMemoryError: Java heap space" for some schemas

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: Version 2
    • Fix Version/s: None
    • Component/s: Compiler
    • Labels:
      None
    • Environment:
      Windows XP Professional SP2, JDK 1.5.0_04, XMLBeans Development Kit Version 2.0.0, System RAM 1 GB

      Description

      "scomp" throws the following while compiling some XSD files.

      Time to build schema type system: 2.844 seconds
      Time to generate code: 26.251 seconds

      The system is out of resources.
      Consult the following stack trace for details.
      java.lang.OutOfMemoryError: Java heap space

      BUILD FAILED

      Tried the following modifications in the scomp.cmd file in the "\xmlbeans-2.0.0\bin" folder.

      java -Xmx1024M -classpath %cp% org.apache.xmlbeans.impl.tool.SchemaCompiler %*

      and

      java -Xmx1024M -Xms512M -classpath %cp% org.apache.xmlbeans.impl.tool.SchemaCompiler %*

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mvgannu Vijayaganesh M
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: