You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "PJ Fanning (Jira)" <ji...@apache.org> on 2021/03/30 07:43:00 UTC

[jira] [Commented] (XMLBEANS-556) scomp error

    [ https://issues.apache.org/jira/browse/XMLBEANS-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17311234#comment-17311234 ] 

PJ Fanning commented on XMLBEANS-556:
-------------------------------------

[~marcord700] could you try the XMLBeans 5.0.0 release?

> scomp error
> -----------
>
>                 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