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

Support enumerations with more than 64k entries

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Version 3.0.1, Version 3.1.0, Version 4.0.0, Version 5.0.0
    • Version 5.0.1
    • Compiler
    • None
    • windows 10

    Description

      I can't generate code from schema, I keep getting an error when running:

      scomp -dl -src java-src -out cfdv33.jar http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd

       

      warning: SchemaType Enumeration found with too many enumeration values to create a Java enumeration. The base SchemaType "T=c_CodigoPostal@http://www.sat.gob.mx/sitio_internet/cfd/catalogos" will be used instead
      warning: SchemaType Enumeration found with too many enumeration values to create a Java enumeration. The base SchemaType "T=c_ClaveProdServ@http://www.sat.gob.mx/sitio_internet/cfd/catalogos" will be used instead
      warning: SchemaType Enumeration found with too many enumeration values to create a Java enumeration. The base SchemaType "T=c_Colonia@http://www.sat.gob.mx/sitio_internet/cfd/catalogos" will be used instead
      Time to build schema type system: 8.391 seconds
      Exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: Value 95777 out of range: must fit in a 16-bit unsigned short. (org.apache.xmlbeans.metadata.system.s456D395FEA75638FA3D29AFED09B48F7.ccodigopostald8d2type) - code 10
      at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.writeShort(SchemaTypeSystemImpl.java:1569)
      at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.writeTypeData(SchemaTypeSystemImpl.java:2537)
      at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveType(SchemaTypeSystemImpl.java:1258)
      at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveTypesRecursively(SchemaTypeSystemImpl.java:1141)
      at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.save(SchemaTypeSystemImpl.java:1117)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:973)
      at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:333)

       

      Attachments

        Issue Links

          Activity

            People

              kiwiwings Andreas Beeker
              marcord700 Marco Rouse
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m