[prev in list] [next in list] [prev in thread] [next in thread] 

List:       poi-dev
Subject:    [jira] [Updated] (XMLBEANS-556) Support enumerations with more than 64k entries
From:       "Andreas Beeker (Jira)" <jira () apache ! org>
Date:       2021-05-29 15:23:00
Message-ID: JIRA.13359404.1613671610000.524464.1622301780076 () Atlassian ! JIRA
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/XMLBEANS-556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Andreas Beeker updated XMLBEANS-556:
------------------------------------
    Summary: Support enumerations with more than 64k entries  (was: scomp error)

> Support enumerations with more than 64k entries
> -----------------------------------------------
> 
> Key: XMLBEANS-556
> URL: https://issues.apache.org/jira/browse/XMLBEANS-556
> Project: XMLBeans
> Issue Type: Bug
> Components: Compiler
> Affects Versions: Version 3.0.1, Version 3.1.0, Version 4.0.0, Version 5.0.0
> Environment: windows 10
> Reporter: Marco Rouse
> Priority: Major
> 
> 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)
> 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic