You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by John Avery <ja...@progress.com> on 2009/02/06 17:21:58 UTC

Patches or workarounds for XMLBEANS-235 scomp fails with error "encoded string too long"?

We have hit the problem described in
http://issues.apache.org/jira/browse/XMLBEANS-235 (scomp fails with
error "encoded string too long").  In our case, group elements that
contain many annotations and/or appinfos exceed the 64K string length
limit of the .xsb files.

Does anyone know of patches to scomp or workarounds (for example scomp
options)?  Our application does not use the annotations or appinfos.
Modifying the schema is not a good option.

Thank you,
John Avery


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


Re: Patches or workarounds for XMLBEANS-235 scomp fails with error "encoded string too long"?

Posted by John Avery <ja...@progress.com>.
Unfortunately, -noann doesn't affect the content of the *modelgroup.xsb 
files.  The text of the group from the schema being compiled is 
unchanged.  It is this text that can exceed 64KB.  I verified that 
-noann was indeed set by setting a breakpoint in its only use, in 
SchemaAnnotationImpl.

Thanks, John

On 2/6/2009 6:13 PM, Radu Preotiuc wrote:
> If you don't need the annotations, then simply call scomp with the
> -noann flag and annotations will be discarded. This will obviously also
> be a performance benefit.
>
> Radu
>
> On Fri, 2009-02-06 at 11:21 -0500, John Avery wrote:
>   
>> We have hit the problem described in
>> http://issues.apache.org/jira/browse/XMLBEANS-235 (scomp fails with
>> error "encoded string too long").  In our case, group elements that
>> contain many annotations and/or appinfos exceed the 64K string length
>> limit of the .xsb files.
>>
>> Does anyone know of patches to scomp or workarounds (for example scomp
>> options)?  Our application does not use the annotations or appinfos.
>> Modifying the schema is not a good option.
>>
>> Thank you,
>> John Avery
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
>> For additional commands, e-mail: user-help@xmlbeans.apache.org
>>
>>     
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>   

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


Re: Patches or workarounds for XMLBEANS-235 scomp fails with error "encoded string too long"?

Posted by Radu Preotiuc <ra...@oracle.com>.
If you don't need the annotations, then simply call scomp with the
-noann flag and annotations will be discarded. This will obviously also
be a performance benefit.

Radu

On Fri, 2009-02-06 at 11:21 -0500, John Avery wrote:
> We have hit the problem described in
> http://issues.apache.org/jira/browse/XMLBEANS-235 (scomp fails with
> error "encoded string too long").  In our case, group elements that
> contain many annotations and/or appinfos exceed the 64K string length
> limit of the .xsb files.
> 
> Does anyone know of patches to scomp or workarounds (for example scomp
> options)?  Our application does not use the annotations or appinfos.
> Modifying the schema is not a good option.
> 
> Thank you,
> John Avery
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
> 


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