You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jon Schroeder (JIRA)" <xm...@xml.apache.org> on 2012/12/07 16:59:22 UTC

[jira] [Updated] (XMLBEANS-235) scomp fails with error "encoded string too long"

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

Jon Schroeder updated XMLBEANS-235:
-----------------------------------

    Attachment: JobSeeker.xsd
                JobSearchAgent.xsd
                Enumerations.xsd
                Document.xsd
                Common.xsd

JobSeeker.xsd is the one that needs to be compiled
                
> scomp fails with error "encoded string too long"
> ------------------------------------------------
>
>                 Key: XMLBEANS-235
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-235
>             Project: XMLBeans
>          Issue Type: Bug
>    Affects Versions: Version 2.1
>         Environment: WIndows XP, J2SE Version 1.5.0 (build 1.5.0_06-b05)
>            Reporter: Chris Isbell
>            Priority: Blocker
>         Attachments: Common.xsd, Document.xsd, Enumerations.xsd, JobSearchAgent.xsd, JobSeeker.xsd
>
>
> scomp fails with the following output:
> Time to build schema type system: 1.492 seconds
> Exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: encoded string too long: 80643 bytes (schemaorg_apache_xmlbeans.system.sD8C47734011B153A3D6BBC3BCCA9AC04.allassetsmodelgroup) - code 9
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$StringPool.writeTo(SchemaTypeSystemImpl.java:1021)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.writeRealHeader(SchemaTypeSystemImpl.java:1602)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveModelGroup(SchemaTypeSystemImpl.java:1406)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveModelGroups(SchemaTypeSystemImpl.java:1347)
> 	at org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.save(SchemaTypeSystemImpl.java:1296)
> 	at org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.java:1098)
> 	at org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java:368)
> The problem appears to be with the line "output.writeUTF(str);" in the method writeTo in class org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl (line 1016). java.io.DataOutputStream.writeUTF has an implicit 64K byte length limit (because it stores the length in a two-byte integer) and this limit is being exceeded.
> The schema I am compiling comes from a third party and it is unlikely that it can be modified to work around this problem.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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